本文整理匯總了Java中org.wso2.carbon.service.mgt.stub.types.carbon.FaultyServicesWrapper類的典型用法代碼示例。如果您正苦於以下問題:Java FaultyServicesWrapper類的具體用法?Java FaultyServicesWrapper怎麽用?Java FaultyServicesWrapper使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。
FaultyServicesWrapper類屬於org.wso2.carbon.service.mgt.stub.types.carbon包,在下文中一共展示了FaultyServicesWrapper類的5個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: isServiceFaulty
import org.wso2.carbon.service.mgt.stub.types.carbon.FaultyServicesWrapper; //導入依賴的package包/類
public boolean isServiceFaulty(String serviceName) throws RemoteException {
boolean serviceState = false;
FaultyServicesWrapper faultyServicesWrapper;
FaultyService[] faultyServiceList;
faultyServicesWrapper = listFaultyServices();
if (faultyServicesWrapper != null) {
faultyServiceList = faultyServicesWrapper.getFaultyServices();
if (faultyServiceList == null || faultyServiceList.length == 0) {
serviceState = false;
} else {
for (FaultyService faultyServiceData : faultyServiceList) {
if (faultyServiceData != null && faultyServiceData.getServiceName().equalsIgnoreCase(serviceName)) {
return true;
}
}
}
}
return serviceState;
}
示例2: getFaultyData
import org.wso2.carbon.service.mgt.stub.types.carbon.FaultyServicesWrapper; //導入依賴的package包/類
public FaultyService getFaultyData(String serviceName) throws RemoteException {
FaultyService faultyService = null;
FaultyServicesWrapper faultyServicesWrapper;
FaultyService[] faultyServiceList;
faultyServicesWrapper = listFaultyServices();
if (faultyServicesWrapper != null) {
faultyServiceList = faultyServicesWrapper.getFaultyServices();
if (faultyServiceList == null || faultyServiceList.length == 0) {
throw new RuntimeException("Service not found in faulty service list");
} else {
for (FaultyService faultyServiceData : faultyServiceList) {
if (faultyServiceData != null && faultyServiceData.getServiceName().equalsIgnoreCase(serviceName)) {
faultyService = faultyServiceData;
}
}
}
}
if (faultyService == null) {
throw new RuntimeException("Service not found in faulty service list " + serviceName);
}
return faultyService;
}
示例3: getFaultyData
import org.wso2.carbon.service.mgt.stub.types.carbon.FaultyServicesWrapper; //導入依賴的package包/類
public FaultyService getFaultyData(String serviceName) throws RemoteException {
FaultyService faultyService = null;
FaultyServicesWrapper faultyServicesWrapper;
FaultyService[] faultyServiceList;
faultyServicesWrapper = listFaultyServices();
if (faultyServicesWrapper != null) {
faultyServiceList = faultyServicesWrapper.getFaultyServices();
if (faultyServiceList == null || faultyServiceList.length == 0) {
throw new RuntimeException("Service not found in faulty service list");
} else {
for (FaultyService faultyServiceData : faultyServiceList) {
if (faultyServiceData != null && faultyServiceData.getServiceName().equalsIgnoreCase(serviceName)) {
faultyService = faultyServiceData;
}
}
}
}
if (faultyService == null) {
throw new RuntimeException("Service not found in faulty service list " + faultyService);
}
return faultyService;
}
示例4: getFaultyServiceArchives
import org.wso2.carbon.service.mgt.stub.types.carbon.FaultyServicesWrapper; //導入依賴的package包/類
public FaultyServicesWrapper getFaultyServiceArchives(int pageNumber) throws RemoteException {
FaultyServicesWrapper faultyServicesWrapper;
try {
faultyServicesWrapper = serviceAdminStub.getFaultyServiceArchives(pageNumber);
} catch (RemoteException e) {
log.error("Unable to get faulty service Archives", e);
throw new RemoteException("Unable to get faulty service Archives", e);
}
return faultyServicesWrapper;
}
示例5: listFaultyServices
import org.wso2.carbon.service.mgt.stub.types.carbon.FaultyServicesWrapper; //導入依賴的package包/類
public FaultyServicesWrapper listFaultyServices() throws RemoteException {
FaultyServicesWrapper faultyServicesWrapper;
faultyServicesWrapper = serviceAdminStub.getFaultyServiceArchives(0);
return faultyServicesWrapper;
}