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


Java ClientProviderBean类代码示例

本文整理汇总了Java中com.huawei.esdk.fusioncompute.local.model.ClientProviderBean的典型用法代码示例。如果您正苦于以下问题:Java ClientProviderBean类的具体用法?Java ClientProviderBean怎么用?Java ClientProviderBean使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


ClientProviderBean类属于com.huawei.esdk.fusioncompute.local.model包,在下文中一共展示了ClientProviderBean类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: saveClientCache

import com.huawei.esdk.fusioncompute.local.model.ClientProviderBean; //导入依赖的package包/类
public static void saveClientCache(ClientProviderBean bean, RestletClient restClient)
{
    if (!StringUtils.isEmpty(bean.getServerIp()))
    {
        //LOGGER.info("saveClientCache success :" + bean.getServerIp());
        StringBuffer sb = new StringBuffer();
        sb.append(bean.getServerIp())
            .append(bean.getProtocol())
            .append(bean.getKeyStoreName())
            .append(bean.getKeyStorePassword())
            .append(bean.getServerPort())
            .append(bean.getTimes())
            .append(bean.getValidateCertificate())
            .append(bean.getUserName());
        clientCacheMap.put(sb.toString(), restClient);
    }
}
 
开发者ID:Huawei,项目名称:eSDK_FC_SDK_Java,代码行数:18,代码来源:FCCacheHolder.java

示例2: setUpBeforeClass

import com.huawei.esdk.fusioncompute.local.model.ClientProviderBean; //导入依赖的package包/类
@BeforeClass
public static void setUpBeforeClass()
{
    
    //        System.setProperty("javax.net.ssl.trustStore", "D:\\workspace\\esdk_fc_neadp_1.3_native_java\\src\\main\\java");
    ClientProviderBean bean = new ClientProviderBean();
    bean.setProtocol("https");
    bean.setServerIp("110.168.10.8");
    bean.setServerPort("7443");
    bean.setUserName("");
    
    AuthenticateResource a = null;
    a = ServiceFactory.getService(AuthenticateResource.class, bean);
    
    FCSDKResponse<LoginResp> r = a.login("duhuadong", "[email protected]");
    
    System.out.println(System.getProperty("java.home"));
    System.out.println(r.getErrorCode());
    System.out.println(gson.toJson(r));
    
    dataStorageResource = ServiceFactory.getService(DataStorageResource.class, bean);
    
}
 
开发者ID:eSDK,项目名称:esdk_cloud_fc_cli,代码行数:24,代码来源:DataStorageResourceTest.java

示例3: setUpBeforeClass

import com.huawei.esdk.fusioncompute.local.model.ClientProviderBean; //导入依赖的package包/类
@BeforeClass
    public static void setUpBeforeClass()
    {
        
        //System.setProperty("javax.net.ssl.trustStore", "D:\\workspace\\esdk_fc_neadp_1.3_native_java\\src\\main\\java");
        ClientProviderBean bean = new ClientProviderBean();
        bean.setProtocol("https");
        bean.setServerIp("110.168.10.8");
        bean.setServerPort("7443");
        bean.setUserName("");
        
//        AuthenticateResource authenticateResource = null;
        authenticateResource = ServiceFactory.getService(AuthenticateResource.class, bean);
        
        FCSDKResponse<LoginResp> r = authenticateResource.login("suxin", "[email protected]");
        
        System.out.println(r.getErrorCode());
        System.out.println(gson.toJson(r));
        volumeResource = ServiceFactory.getService(VolumeResource.class, bean);
        
    }
 
开发者ID:eSDK,项目名称:esdk_cloud_fc_native_java,代码行数:22,代码来源:VolumeResourceTest.java

示例4: setUpBeforeClass

import com.huawei.esdk.fusioncompute.local.model.ClientProviderBean; //导入依赖的package包/类
@BeforeClass
public static void setUpBeforeClass()
{
    
    //        System.setProperty("javax.net.ssl.trustStore", "D:\\workspace\\esdk_fc_neadp_1.3_native_java\\src\\main\\java");
    ClientProviderBean bean = new ClientProviderBean();
    bean.setProtocol("https");
    bean.setServerIp("110.168.10.8");
    bean.setServerPort("7443");
    bean.setUserName("");
    
    AuthenticateResource a = null;
    a = ServiceFactory.getService(AuthenticateResource.class, bean);
    
    FCSDKResponse<LoginResp> r = a.login("suxin", "[email protected]");
    
    System.out.println(r.getErrorCode());
    System.out.println(gson.toJson(r));
    
    portGroupResource = ServiceFactory.getService(PortGroupResource.class, bean);
    
}
 
开发者ID:eSDK,项目名称:esdk_cloud_fc_native_java,代码行数:23,代码来源:PortGroupResourceTest.java

示例5: setUpBeforeClass

import com.huawei.esdk.fusioncompute.local.model.ClientProviderBean; //导入依赖的package包/类
@BeforeClass
public static void setUpBeforeClass()
{
    
    //        System.setProperty("javax.net.ssl.trustStore", "D:\\workspace\\esdk_fc_neadp_1.3_native_java\\src\\main\\java");
    ClientProviderBean bean = new ClientProviderBean();
    bean.setProtocol("https");
    bean.setServerIp("110.168.10.6");
    bean.setServerPort("7443");
    bean.setUserName("suxin");
    
    AuthenticateResource a = null;
    a = ServiceFactory.getService(AuthenticateResource.class, bean);
    
    FCSDKResponse<LoginResp> r = a.login("suxin", "[email protected]");
    
    System.out.println(r.getErrorCode());
    System.out.println(gson.toJson(r));
    
    portGroupResource = ServiceFactory.getService(PortGroupResource.class, bean);
    
}
 
开发者ID:eSDK,项目名称:esdk_cloud_fc_cli,代码行数:23,代码来源:PortGroupResourceTest.java

示例6: setUpBeforeClass

import com.huawei.esdk.fusioncompute.local.model.ClientProviderBean; //导入依赖的package包/类
@BeforeClass
public static void setUpBeforeClass()
{
    ClientProviderBean clientProvider = new ClientProviderBean();
    clientProvider.setServerIp("112.168.10.62");
    clientProvider.setServerPort("7443");
    clientProvider.setProtocol("https");
    AuthenticateResource a = ServiceFactory.getService(AuthenticateResource.class, clientProvider);
    
    FCSDKResponse<LoginResp> r = a.login("gesysman", "[email protected]");
    
    System.out.println(r.getErrorCode());
    System.out.println(g.toJson(r));
    
    service = ServiceFactory.getService(MonitorResource.class, clientProvider);
    service1 = ServiceFactory.getService(TaskResource.class, clientProvider);
    
}
 
开发者ID:eSDK,项目名称:esdk_cloud_fc_cli,代码行数:19,代码来源:MonitorResourceTest.java

示例7: setUpBeforeClass

import com.huawei.esdk.fusioncompute.local.model.ClientProviderBean; //导入依赖的package包/类
@BeforeClass
public static void setUpBeforeClass()
{
    ClientProviderBean bean = new ClientProviderBean();
    bean.setProtocol("https");
    bean.setServerIp("110.168.10.6");
    bean.setServerPort("7443");
    bean.setUserName("suxin");
    
    AuthenticateResource a = null;
    a = ServiceFactory.getService(AuthenticateResource.class, bean);
    
    FCSDKResponse<LoginResp> r = a.login("suxin", "[email protected]");
    
    System.out.println(System.getProperty("java.home"));
    System.out.println(r.getErrorCode());
    System.out.println(g.toJson(r));
    
    service = ServiceFactory.getService(ClusterResource.class, bean);
    
}
 
开发者ID:eSDK,项目名称:esdk_cloud_fc_cli,代码行数:22,代码来源:ClusterResourceTest.java

示例8: setUpBeforeClass

import com.huawei.esdk.fusioncompute.local.model.ClientProviderBean; //导入依赖的package包/类
@BeforeClass
public static void setUpBeforeClass()
{
    System.setProperty("javax.net.ssl.trustStore",
        "D:\\IDE\\worksapce_maven\\esdk_fc_neadp_1.3_native_java\\src\\main\\java");
    ClientProviderBean clientProvider = new ClientProviderBean();
    clientProvider.setServerIp("110.168.10.6");
    clientProvider.setServerPort("7443");
    clientProvider.setProtocol("https");
    AuthenticateResource a = ServiceFactory.getService(AuthenticateResource.class, clientProvider);
    
    FCSDKResponse<LoginResp> r = a.login("zhangsan", "[email protected]");
    
    System.out.println(System.getProperty("java.home"));
    System.out.println(r.getErrorCode());
    System.out.println(g.toJson(r));
    
    service = ServiceFactory.getService(HostResource.class, clientProvider);
    
}
 
开发者ID:eSDK,项目名称:esdk_cloud_fc_cli,代码行数:21,代码来源:HostResourceTest.java

示例9: setUpBeforeClass

import com.huawei.esdk.fusioncompute.local.model.ClientProviderBean; //导入依赖的package包/类
@BeforeClass
public static void setUpBeforeClass()
{
    
    //        System.setProperty("javax.net.ssl.trustStore", "D:\\workspace\\esdk_fc_neadp_1.3_native_java\\src\\main\\java");
    ClientProviderBean bean = new ClientProviderBean();
    bean.setProtocol("https");
    bean.setServerIp("112.168.10.62");
    bean.setServerPort("7443");
    //        bean.setUserName("suxin");
    
    AuthenticateResource a = null;
    a = ServiceFactory.getService(AuthenticateResource.class, bean);
    
    FCSDKResponse<LoginResp> r = a.login("suxin", "[email protected]");
    
    //        System.out.println(System.getProperty("java.home"));
    System.out.println(r.getErrorCode());
    System.out.println(gson.toJson(r));
    
    dataStorageResource = ServiceFactory.getService(DataStorageResource.class, bean);
    
}
 
开发者ID:eSDK,项目名称:esdk_cloud_fc_cli,代码行数:24,代码来源:DataStorageResourceTest.java

示例10: setUpBeforeClass

import com.huawei.esdk.fusioncompute.local.model.ClientProviderBean; //导入依赖的package包/类
@BeforeClass
public static void setUpBeforeClass()
{
    
    //        System.setProperty("javax.net.ssl.trustStore", "D:\\workspace\\esdk_fc_neadp_1.3_native_java\\src\\main\\java");
    ClientProviderBean bean = new ClientProviderBean();
    bean.setProtocol("https");
    bean.setServerIp("110.168.10.8");
    bean.setServerPort("7443");
    bean.setUserName("");
    
    AuthenticateResource a = null;
    a = ServiceFactory.getService(AuthenticateResource.class, bean);
    
    FCSDKResponse<LoginResp> r = a.login("suxin", "[email protected]");
    
    System.out.println(System.getProperty("java.home"));
    System.out.println(r.getErrorCode());
    System.out.println(gson.toJson(r));
    
    dataStorageResource = ServiceFactory.getService(DataStorageResource.class, bean);
    
}
 
开发者ID:eSDK,项目名称:esdk_cloud_fc_native_java,代码行数:24,代码来源:DataStorageResourceTest.java

示例11: setUpBeforeClass

import com.huawei.esdk.fusioncompute.local.model.ClientProviderBean; //导入依赖的package包/类
@BeforeClass
public static void setUpBeforeClass()
{
    
    //        System.setProperty("javax.net.ssl.trustStore", "D:\\workspace\\esdk_fc_neadp_1.3_native_java\\src\\main\\java");
    ClientProviderBean bean = new ClientProviderBean();
    bean.setProtocol("https");
    bean.setServerIp("110.168.10.8");
    bean.setServerPort("7443");
    bean.setUserName("");
    
    AuthenticateResource a = null;
    a = ServiceFactory.getService(AuthenticateResource.class, bean);
    
    FCSDKResponse<LoginResp> r = a.login("suxin", "[email protected]");
    
    System.out.println(r.getErrorCode());
    System.out.println(gson.toJson(r));
    alarmResource = ServiceFactory.getService(AlarmResource.class, bean);
    
}
 
开发者ID:eSDK,项目名称:esdk_cloud_fc_native_java,代码行数:22,代码来源:AlarmResourceTest.java

示例12: saveClientCache

import com.huawei.esdk.fusioncompute.local.model.ClientProviderBean; //导入依赖的package包/类
public static void saveClientCache(ClientProviderBean bean, RestletClient restClient)
{
    if (!StringUtils.isEmpty(bean.getServerIp()))
    {
        StringBuffer sb = new StringBuffer();
        sb.append(bean.getServerIp())
            .append(bean.getProtocol())
            .append(bean.getKeyStoreName())
            .append(bean.getKeyStorePassword())
            .append(bean.getServerPort())
            .append(bean.getTimes())
            .append(bean.getValidateCertificate())
            .append(bean.getUserName());
        clientCacheMap.put(sb.toString(), restClient);
    }
}
 
开发者ID:eSDK,项目名称:esdk_cloud_fc_cli,代码行数:17,代码来源:FCCacheHolder.java

示例13: setUpBeforeClass

import com.huawei.esdk.fusioncompute.local.model.ClientProviderBean; //导入依赖的package包/类
@BeforeClass
public static void setUpBeforeClass()
{
    ClientProviderBean clientProvider = new ClientProviderBean();
    clientProvider.setServerIp("110.168.10.8");
    clientProvider.setServerPort("7443");
    clientProvider.setProtocol("https");
    AuthenticateResource a = ServiceFactory.getService(AuthenticateResource.class, clientProvider);
    
    FCSDKResponse<LoginResp> r = a.login("duhuadong","[email protected]");
    
    System.out.println(System.getProperty("java.home"));
    System.out.println(r.getErrorCode());
    System.out.println(g.toJson(r));
    
    
     service = ServiceFactory.getService(ClusterResource.class, clientProvider);
    
}
 
开发者ID:eSDK,项目名称:esdk_cloud_fc_native_java,代码行数:20,代码来源:ClusterResourceTest.java

示例14: setUpBeforeClass

import com.huawei.esdk.fusioncompute.local.model.ClientProviderBean; //导入依赖的package包/类
@BeforeClass
public static void setUpBeforeClass()
{
    
    //        System.setProperty("javax.net.ssl.trustStore", "D:\\workspace\\esdk_fc_neadp_1.3_native_java\\src\\main\\java");
    ClientProviderBean bean = new ClientProviderBean();
    bean.setProtocol("https");
    bean.setServerIp("110.168.10.8");
    bean.setServerPort("7443");
    bean.setUserName("");
    
    AuthenticateResource a = null;
    a = ServiceFactory.getService(AuthenticateResource.class, bean);
    
    FCSDKResponse<LoginResp> r = a.login("duhuadong", "[email protected]");
    
    System.out.println(r.getErrorCode());
    System.out.println(gson.toJson(r));
    
    portGroupResource = ServiceFactory.getService(PortGroupResource.class, bean);
    
}
 
开发者ID:eSDK,项目名称:esdk_cloud_fc_cli,代码行数:23,代码来源:PortGroupResourceTest.java

示例15: setUpBeforeClass

import com.huawei.esdk.fusioncompute.local.model.ClientProviderBean; //导入依赖的package包/类
@BeforeClass
public static void setUpBeforeClass()
{
    System.setProperty("javax.net.ssl.trustStore", "D:\\IDE\\worksapce_maven\\esdk_fc_neadp_1.3_native_java\\src\\main\\java");
    ClientProviderBean clientProvider = new ClientProviderBean();
    clientProvider.setServerIp("110.168.10.6");
    clientProvider.setServerPort("7443");
    clientProvider.setProtocol("https");
    AuthenticateResource a = ServiceFactory.getService(AuthenticateResource.class, clientProvider);
    
    FCSDKResponse<LoginResp> r = a.login("zhangsan","[email protected]");
    
    System.out.println(System.getProperty("java.home"));
    System.out.println(r.getErrorCode());
    System.out.println(g.toJson(r));
    
    
     service = ServiceFactory.getService(MonitorResource.class, clientProvider);
    
}
 
开发者ID:eSDK,项目名称:esdk_cloud_fc_cli,代码行数:21,代码来源:MonitorResourceTest.java


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