public InOutStatisticsRecord getCategoryStatistics(int category) throws AxisFault {
   try {
     return stub.getCategoryStatistics(category);
   } catch (Exception e) {
     String msg = "Cannot get category statistics. Backepnd service may be unvailable";
     handleException(msg, e);
   }
   return null;
 }
 public MediationStatisticsClient(
     ConfigurationContext configCtx, String backendServerURL, String cookie) throws AxisFault {
   String serviceURL = backendServerURL + "MediationStatisticsAdmin";
   stub = new MediationStatisticsAdminStub(configCtx, serviceURL);
   ServiceClient client = stub._getServiceClient();
   Options options = client.getOptions();
   options.setManageSession(true);
   options.setProperty(org.apache.axis2.transport.http.HTTPConstants.COOKIE_STRING, cookie);
 }
 public GraphData getDataForGraph() throws AxisFault {
   try {
     return stub.getDataForGraph();
   } catch (Exception e) {
     String msg = "Cannot get graph data. Backepnd service may be unvailable";
     handleException(msg, e);
   }
   return null;
 }
 public InOutStatisticsRecord getServerStatistics() throws AxisFault {
   try {
     return stub.getServerStatistics();
   } catch (Exception e) {
     String msg = "Cannot get server data. Backend service may be unvailable";
     handleException(msg, e);
   }
   return null;
 }
 public InOutStatisticsRecord getProxyServiceStatistics(String name) throws AxisFault {
   try {
     return stub.getProxyServiceStatistics(name);
   } catch (RemoteException e) {
     String msg = "Cannot get proxy service data. Backend service may be unavailable.";
     handleException(msg, e);
   }
   return null;
 }
 public InOutStatisticsRecord getEndPointStatistics(String name) throws AxisFault {
   try {
     return stub.getEndPointStatistics(name);
   } catch (Exception e) {
     String msg = "Cannot get endpoint data. Backepnd service may be unvailable";
     handleException(msg, e);
   }
   return null;
 }
 public String[] listServers() throws AxisFault {
   try {
     return stub.listServers();
   } catch (Exception e) {
     String msg = "Cannot list servers. Backepnd service may be unvailable";
     handleException(msg, e);
   }
   return null;
 }
  public String[] listSequence() throws AxisFault {
    String[] sequences = null;
    try {
      sequences = stub.listSequence();
    } catch (Exception e) {
      String msg = "Cannot list sequences. Backepnd service may be unvailable";
      handleException(msg, e);
    }

    if (sequences == null || sequences.length == 0 || sequences[0] == null) {
      return null;
    }
    return sequences;
  }
  public String[] listEndPoints() throws AxisFault {
    String[] endpoints = null;
    try {
      endpoints = stub.listEndPoint();
    } catch (Exception e) {
      String msg = "Cannot list endpoints. Backend service may be unvailable";
      handleException(msg, e);
    }

    if (endpoints == null || endpoints.length == 0 || endpoints[0] == null) {
      return null;
    }
    return endpoints;
  }