当前位置: 首页>>代码示例>>Java>>正文


Java FaultyServicesWrapper.getFaultyServices方法代码示例

本文整理汇总了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;
}
 
开发者ID:wso2,项目名称:product-ei,代码行数:20,代码来源:ServiceAdminClient.java

示例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;
}
 
开发者ID:wso2,项目名称:product-ei,代码行数:23,代码来源:ServiceAdminClient.java

示例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;
}
 
开发者ID:wso2,项目名称:product-ei,代码行数:23,代码来源:ServiceAdminClient.java


注:本文中的org.wso2.carbon.service.mgt.stub.types.carbon.FaultyServicesWrapper.getFaultyServices方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。