當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。