本文整理匯總了Java中org.wso2.carbon.service.mgt.stub.types.carbon.FaultyServicesWrapper.getFaultyServices方法的典型用法代碼示例。如果您正苦於以下問題:Java FaultyServicesWrapper.getFaultyServices方法的具體用法?Java FaultyServicesWrapper.getFaultyServices怎麽用?Java FaultyServicesWrapper.getFaultyServices使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類org.wso2.carbon.service.mgt.stub.types.carbon.FaultyServicesWrapper
的用法示例。
在下文中一共展示了FaultyServicesWrapper.getFaultyServices方法的3個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的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;
}