コード例 #1
0
 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;
 }
コード例 #2
0
 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);
 }
コード例 #3
0
 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;
 }
コード例 #4
0
 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;
 }
コード例 #5
0
 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;
 }
コード例 #6
0
 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;
 }
コード例 #7
0
 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;
 }
コード例 #8
0
  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;
  }
コード例 #9
0
  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;
  }