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