本文整理汇总了Java中com.huawei.esdk.fusioncompute.local.model.ClientProviderBean.setProtocol方法的典型用法代码示例。如果您正苦于以下问题:Java ClientProviderBean.setProtocol方法的具体用法?Java ClientProviderBean.setProtocol怎么用?Java ClientProviderBean.setProtocol使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类com.huawei.esdk.fusioncompute.local.model.ClientProviderBean
的用法示例。
在下文中一共展示了ClientProviderBean.setProtocol方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: 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);
}
示例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 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);
}
示例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.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);
}
示例4: 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.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(HostResource.class, clientProvider);
}
示例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.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);
}
示例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);
}
示例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);
}
示例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);
}
示例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);
}
示例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.setProtocol("https");
bean.setServerIp("172.22.4.4");
bean.setServerPort("7443");
// AuthenticateResource authenticateResource = null;
authenticateResource = ServiceFactory.getService(AuthenticateResource.class, bean);
FCSDKResponse<LoginResp> r = authenticateResource.login("fc01", "[email protected]");
System.out.println(r.getErrorCode());
System.out.println(gson.toJson(r));
volumeResource = ServiceFactory.getService(VolumeResource.class, bean);
}
示例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(System.getProperty("java.home"));
System.out.println(r.getErrorCode());
System.out.println(gson.toJson(r));
dataStorageResource = ServiceFactory.getService(DataStorageResource.class, bean);
}
示例12: 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);
}
示例13: 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);
}
示例14: getClientProviderBean
import com.huawei.esdk.fusioncompute.local.model.ClientProviderBean; //导入方法依赖的package包/类
private static ClientProviderBean getClientProviderBean()
{
ClientProviderBean bean = new ClientProviderBean();
bean.setUserName(ParametersUtils.userName);
//设置服务器IP地址
bean.setServerIp(ParametersUtils.serverIP);
//设置服务器端口号
bean.setServerPort(ParametersUtils.serverPort);
//设置HTTP类型
bean.setProtocol("https");
return bean;
}
示例15: main
import com.huawei.esdk.fusioncompute.local.model.ClientProviderBean; //导入方法依赖的package包/类
public static void main(String[] args)
{
ClientProviderBean bean = new ClientProviderBean();
bean.setProtocol(SCHEME_HTTP);
bean.setServerIp("1.1.1.1");
bean.setServerPort("123");
String[] paths = {"/vms", "/A/", "?", "B"};
String[] aa = {null, "a", "", "b"};
String url = makeUrl(bean, paths, aa);
System.out.println(paths.length);
System.out.println(url);
}