本文整理汇总了Java中com.huawei.esdk.fusioncompute.local.resources.storage.DataStorageResource类的典型用法代码示例。如果您正苦于以下问题:Java DataStorageResource类的具体用法?Java DataStorageResource怎么用?Java DataStorageResource使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
DataStorageResource类属于com.huawei.esdk.fusioncompute.local.resources.storage包,在下文中一共展示了DataStorageResource类的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: setUpBeforeClass
import com.huawei.esdk.fusioncompute.local.resources.storage.DataStorageResource; //导入依赖的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);
}
示例2: setUpBeforeClass
import com.huawei.esdk.fusioncompute.local.resources.storage.DataStorageResource; //导入依赖的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);
}
示例3: setUpBeforeClass
import com.huawei.esdk.fusioncompute.local.resources.storage.DataStorageResource; //导入依赖的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);
}
示例4: intialService
import com.huawei.esdk.fusioncompute.local.resources.storage.DataStorageResource; //导入依赖的package包/类
public static void intialService()
{
//获取服务器配置信息
bean = getClientProviderBean();
//从native Jar包的ServiceFactory类中获取相应的服务
authenticateResource = ServiceFactory.getService(AuthenticateResource.class, bean);
//从native Jar包的ServiceFactory类中获取相应的服务
portGroupResource = ServiceFactory.getService(PortGroupResource.class, bean);
//从native Jar包的ServiceFactory类中获取相应的服务
dataStorageResource = ServiceFactory.getService(DataStorageResource.class, bean);
//从native Jar包的ServiceFactory类中获取相应的服务
hostResource = ServiceFactory.getService(HostResource.class, bean);
//从native Jar包的ServiceFactory类中获取相应的服务
clusterResource = ServiceFactory.getService(ClusterResource.class, bean);
//从native Jar包的ServiceFactory类中获取相应的服务
siteResource = ServiceFactory.getService(SiteResource.class, bean);
//从native Jar包的ServiceFactory类中获取相应的服务
dVSwitchResource = ServiceFactory.getService(DVSwitchResource.class, bean);
//从native Jar包的ServiceFactory类中获取相应的服务
vmResource = ServiceFactory.getService(VmResource.class, bean);
LOGGER.info("Service initialization Complete!");
}
示例5: intialService
import com.huawei.esdk.fusioncompute.local.resources.storage.DataStorageResource; //导入依赖的package包/类
public static void intialService()
{
//获取服务器配置信息
bean = getClientProviderBean();
//从native Jar包的ServiceFactory类中获取相应的服务
monitorResource=ServiceFactory.getService(MonitorResource.class, bean);
//从native Jar包的ServiceFactory类中获取相应的服务
authenticateResource = ServiceFactory.getService(AuthenticateResource.class, bean);
//从native Jar包的ServiceFactory类中获取相应的服务
portGroupResource = ServiceFactory.getService(PortGroupResource.class, bean);
//从native Jar包的ServiceFactory类中获取相应的服务
dataStorageResource = ServiceFactory.getService(DataStorageResource.class, bean);
//从native Jar包的ServiceFactory类中获取相应的服务
hostResource = ServiceFactory.getService(HostResource.class, bean);
//从native Jar包的ServiceFactory类中获取相应的服务
clusterResource = ServiceFactory.getService(ClusterResource.class, bean);
//从native Jar包的ServiceFactory类中获取相应的服务
siteResource = ServiceFactory.getService(SiteResource.class, bean);
//从native Jar包的ServiceFactory类中获取相应的服务
dVSwitchResource = ServiceFactory.getService(DVSwitchResource.class, bean);
//从native Jar包的ServiceFactory类中获取相应的服务
vmResource = ServiceFactory.getService(VmResource.class, bean);
LOGGER.info("Service initialization Complete!");
}
示例6: getDataStorageResource
import com.huawei.esdk.fusioncompute.local.resources.storage.DataStorageResource; //导入依赖的package包/类
public static DataStorageResource getDataStorageResource()
{
return dataStorageResource;
}
示例7: intialService
import com.huawei.esdk.fusioncompute.local.resources.storage.DataStorageResource; //导入依赖的package包/类
public static void intialService()
{
//获取服务器配置信息
bean = getClientProviderBean();
//从native Jar包的ServiceFactory类中获取相应的服务
authenticateResource = ServiceFactory.getService(AuthenticateResource.class, bean);
portGroupResource = ServiceFactory.getService(PortGroupResource.class, bean);
dataStorageResource = ServiceFactory.getService(DataStorageResource.class, bean);
hostResource = ServiceFactory.getService(HostResource.class, bean);
clusterResource = ServiceFactory.getService(ClusterResource.class, bean);
siteResource = ServiceFactory.getService(SiteResource.class, bean);
dVSwitchResource = ServiceFactory.getService(DVSwitchResource.class, bean);
vmResource = ServiceFactory.getService(VmResource.class, bean);
LOGGER.info("Service initialization Complete!");
}