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


Java FaultyServicesWrapper类代码示例

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

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

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


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