本文整理汇总了Java中com.huawei.esdk.fusioncompute.local.resources.alarm.AlarmResource类的典型用法代码示例。如果您正苦于以下问题:Java AlarmResource类的具体用法?Java AlarmResource怎么用?Java AlarmResource使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
AlarmResource类属于com.huawei.esdk.fusioncompute.local.resources.alarm包,在下文中一共展示了AlarmResource类的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: setUpBeforeClass
import com.huawei.esdk.fusioncompute.local.resources.alarm.AlarmResource; //导入依赖的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.resources.alarm.AlarmResource; //导入依赖的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);
}