Timer schedules a callback to a job or joblet method. Timers can schedule a one time or a repeated callback on an interval basis. Any Timers created in a job or joblet are shut down on job or joblet completion.
Timer Construct a one-time Timer instance
Construct a one-time Timer instance
Construct a Timer that repeatedly calls the method.
Stop this timer.
VmSpec here is used for creating a clone on a named host from a template resource:
resource = getMatrix().getGridObject(TYPE_RESOURCE,"myTemplate") spec = VmSpec() spec.setNewName("newvm") spec.setHost('vmhost-qa') resource.clone(spec)
Javadoc: Timer