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


Java AlarmDescription类代码示例

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


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

示例1: main

import com.vmware.vim25.AlarmDescription; //导入依赖的package包/类
public static void main(String[] args) throws Exception
{
  if(args.length != 3)
  {
    System.out.println("Usage: java PrintAlarmManager " 
      + "<url> <username> <password>");
    return;
  }

  ServiceInstance si = new ServiceInstance(
    new URL(args[0]), args[1], args[2], true);
   
  AlarmManager alarmMgr = si.getAlarmManager();

  System.out.println("Alarm expressions:");
  AlarmExpression[] defaultExps = alarmMgr.getDefaultExpression();
  printAlarmExpressions(defaultExps);

  System.out.println("\n\nAlarm descriptions:");
  AlarmDescription ad = alarmMgr.getDescription();
  printAlarmDescription(ad);
  
  si.getServerConnection().logout();
}
 
开发者ID:Juniper,项目名称:vijava,代码行数:25,代码来源:PrintAlarmManager.java

示例2: printAlarmDescription

import com.vmware.vim25.AlarmDescription; //导入依赖的package包/类
static void printAlarmDescription(AlarmDescription ad)
{
  System.out.println("Entity statuses:");
  printElementDescriptions(ad.getEntityStatus());
  
  System.out.println("\nHostSystem connection states:");
  printElementDescriptions(ad.getHostSystemConnectionState());
  
  System.out.println("\nMetric operators:");
  printElementDescriptions(ad.getMetricOperator());

  System.out.println("\nState operators:");
  printElementDescriptions(ad.getStateOperator());

  System.out.println("\nVirtual machine power states:");
  printElementDescriptions(ad.getVirtualMachinePowerState());
  
  System.out.println("\nAction class descriptions:");
  printTypeDescriptions(ad.getAction());
  
  System.out.println("\nDescriptions of expressioin type " +
  		"for triggers:");
  printTypeDescriptions(ad.getExpr());
}
 
开发者ID:Juniper,项目名称:vijava,代码行数:25,代码来源:PrintAlarmManager.java

示例3: getDescription

import com.vmware.vim25.AlarmDescription; //导入依赖的package包/类
AlarmDescription getDescription(); 
开发者ID:igreenfield,项目名称:jcloud-vsphere,代码行数:2,代码来源:AlarmManagerApi.java


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