本文整理汇总了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;
}