Examples of AlarmTriggeringAction


Examples of com.vmware.vim.binding.vim.alarm.AlarmTriggeringAction

      clearExpression.setObjectType(new TypeNameImpl("vim.VirtualMachine"));

      OrAlarmExpression or = new OrAlarmExpressionImpl();
      or.setExpression(new AlarmExpression[] {raiseExpression, clearExpression});

      AlarmTriggeringAction alarmAction = new AlarmTriggeringActionImpl();
      alarmAction.setAction(null);
      TransitionSpec tSpec = new AlarmTriggeringActionImpl.TransitionSpecImpl();
      tSpec.setRepeats(false);
      tSpec.setStartState(Status.green);
      tSpec.setFinalState(Status.yellow);
      alarmAction.setTransitionSpecs(new TransitionSpec[] { tSpec });
      alarmAction.setGreen2yellow(true);

      AlarmSpec spec = new AlarmSpecImpl();
      spec.setActionFrequency(0);
      spec.setExpression(or);
View Full Code Here

Examples of com.vmware.vim25.AlarmTriggeringAction

  }

  static AlarmTriggeringAction createAlarmTriggerAction(
      Action action)
  {
    AlarmTriggeringAction alarmAction =
      new AlarmTriggeringAction();
    alarmAction.setYellow2red(true);
    alarmAction.setAction(action);
    return alarmAction;
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.