本文整理汇总了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();
}
示例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());
}
示例3: getDescription
import com.vmware.vim25.AlarmDescription; //导入依赖的package包/类
AlarmDescription getDescription();