Exemplo n.º 1
0
 public ServiceMetaDataWrapper listServices(String serviceName, String filerType)
     throws RemoteException {
   ServiceMetaDataWrapper serviceMetaDataWrapper;
   serviceMetaDataWrapper = serviceAdminStub.listServices(filerType, serviceName, 0);
   serviceAdminStub.getFaultyServiceArchives(0);
   return serviceMetaDataWrapper;
 }
Exemplo n.º 2
0
  public String getMatchingServiceName(String serviceFileName) throws RemoteException {

    ServiceMetaDataWrapper serviceMetaDataWrapper;
    serviceMetaDataWrapper = serviceAdminStub.listServices("ALL", serviceFileName, 0);

    ServiceMetaData[] serviceMetaDataList;
    if (serviceMetaDataWrapper != null) {
      serviceMetaDataList = serviceMetaDataWrapper.getServices();
      if (serviceMetaDataList != null && serviceMetaDataList.length > 0) {

        for (ServiceMetaData serviceData : serviceMetaDataList) {
          if (serviceData != null && serviceData.getName().contains(serviceFileName)) {
            return serviceData.getName();
          }
        }
      }
    }
    return null;
  }
Exemplo n.º 3
0
  public String deleteAllServicesByType(String type) throws RemoteException {
    ServiceMetaDataWrapper serviceMetaDataWrapper;

    serviceMetaDataWrapper = serviceAdminStub.listServices("ALL", null, 0);

    ServiceMetaData[] serviceMetaDataList;
    if (serviceMetaDataWrapper != null) {
      serviceMetaDataList = serviceMetaDataWrapper.getServices();

      String[] serviceGroup;
      if (serviceMetaDataList != null && serviceMetaDataList.length > 0) {

        for (ServiceMetaData serviceData : serviceMetaDataList) {
          if (serviceData.getServiceType().equalsIgnoreCase(type)) {
            serviceGroup = new String[] {serviceData.getServiceGroupName()};
            deleteService(serviceGroup);
          }
        }
      }
    }
    return null;
  }