本文整理匯總了Java中com.huawei.esdk.fusioncompute.local.model.ClientProviderBean.setUserName方法的典型用法代碼示例。如果您正苦於以下問題:Java ClientProviderBean.setUserName方法的具體用法?Java ClientProviderBean.setUserName怎麽用?Java ClientProviderBean.setUserName使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類com.huawei.esdk.fusioncompute.local.model.ClientProviderBean
的用法示例。
在下文中一共展示了ClientProviderBean.setUserName方法的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: 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]");
alarmResource = ServiceFactory.getService(AlarmResource.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.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);
}
示例3: 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(r.getErrorCode());
System.out.println(gson.toJson(r));
subnetResource = ServiceFactory.getService(SubnetResource.class, bean);
}
示例4: 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);
}
示例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("suxin", "[email protected]");
System.out.println(r.getErrorCode());
System.out.println(gson.toJson(r));
alarmResource = ServiceFactory.getService(AlarmResource.class, bean);
}
示例6: 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);
}
示例7: 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);
}
示例8: 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);
}
示例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("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);
}
示例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);
}
示例11: 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;
}
示例12: setUpBeforeClass
import com.huawei.esdk.fusioncompute.local.model.ClientProviderBean; //導入方法依賴的package包/類
@BeforeClass
public static void setUpBeforeClass()
throws Exception
{
clientProvider = new ClientProviderBean();
clientProvider.setUserName("zhangsan");
clientProvider.setServerIp("110.168.10.6");
clientProvider.setServerPort("7443");
clientProvider.setProtocol("https");
a = ServiceFactory.getService(AuthenticateResource.class, clientProvider);
String userName = "zhangsan";
String password = "[email protected]";
FCSDKResponse<LoginResp> loginResp = a.login(userName, password);
if (!"00000000".equals(loginResp.getErrorCode()))
{
System.out.println("login error code:" + loginResp.getErrorCode() + ", desc:" + loginResp.getErrorDes());
throw new Exception("authenticate failed!");
}
System.out.println("UserId:" + loginResp.getResult().getUserId());
System.out.println("UserName:" + loginResp.getResult().getUserName());
System.out.println("RightType:" + loginResp.getResult().getRightType());
System.out.println("Validity:" + loginResp.getResult().getValidity());
System.out.println("PrivilegeIds:" + loginResp.getResult().getPrivilegeIds());
System.out.println("RoleList:" + loginResp.getResult().getRoleList());
instance = (EquipmentResource)ServiceFactory.getService(EquipmentResource.class, clientProvider);
}
示例13: 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("");
AuthenticateResource a = null;
a = ServiceFactory.getService(AuthenticateResource.class, bean);
a.login("zhangsan", "[email protected]");
instance = ServiceFactory.getService(DVSwitchResource.class, bean);
}
示例14: setUpBeforeClass
import com.huawei.esdk.fusioncompute.local.model.ClientProviderBean; //導入方法依賴的package包/類
@BeforeClass
public static void setUpBeforeClass()
throws Exception
{
clientProvider = new ClientProviderBean();
clientProvider.setUserName("dingfei");
clientProvider.setServerIp("110.168.10.8");
clientProvider.setServerPort("7443");
clientProvider.setProtocol("https");
authenticateResource = ServiceFactory.getService(AuthenticateResource.class, clientProvider);
String userName = "dingfei";
String password = "[email protected]";
FCSDKResponse<LoginResp> loginResp = authenticateResource.login(userName, password);
if (!"00000000".equals(loginResp.getErrorCode()))
{
System.out.println("login error code:" + loginResp.getErrorCode() + ", desc:" + loginResp.getErrorDes());
throw new Exception("authenticate failed!");
}
System.out.println("UserId:" + loginResp.getResult().getUserId());
System.out.println("UserName:" + loginResp.getResult().getUserName());
System.out.println("RightType:" + loginResp.getResult().getRightType());
System.out.println("Validity:" + loginResp.getResult().getValidity());
System.out.println("PrivilegeIds:" + loginResp.getResult().getPrivilegeIds());
System.out.println("RoleList:" + loginResp.getResult().getRoleList());
instance = (EquipmentResource)ServiceFactory.getService(EquipmentResource.class, clientProvider);
}
示例15: 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.8");
bean.setServerPort("7443");
bean.setUserName("");
AuthenticateResource a = null;
a = ServiceFactory.getService(AuthenticateResource.class, bean);
a.login("suxin", "[email protected]");
instance = ServiceFactory.getService(DVSwitchResource.class, bean);
}