net.java.dev.vcc.ant
Class SuspendComputerTask

java.lang.Object
  extended by org.apache.tools.ant.ProjectComponent
      extended by org.apache.tools.ant.Task
          extended by net.java.dev.vcc.ant.AbstractDatacenterTask
              extended by net.java.dev.vcc.ant.AbstractComputerActionTask
                  extended by net.java.dev.vcc.ant.SuspendComputerTask

public class SuspendComputerTask
extends AbstractComputerActionTask

Pauses computers.


Field Summary
 
Fields inherited from class org.apache.tools.ant.Task
description, location, target, taskName, taskType, wrapper
 
Fields inherited from class org.apache.tools.ant.ProjectComponent
project
 
Constructor Summary
SuspendComputerTask()
           
 
Method Summary
protected  java.util.concurrent.Future<net.java.dev.vcc.api.Success> doAction(net.java.dev.vcc.api.Computer c)
          Preforms the operation on the specified computer, returning a future for completion of the operation.
protected  void recordFailure(java.lang.String name)
          Records that the operation on the named computer failed.
protected  void recordSuccess(java.lang.String name)
          Records that the operation on the named computer succeeded.
 
Methods inherited from class net.java.dev.vcc.ant.AbstractComputerActionTask
addConfiguredComputer, execute, getTimeout, setTimeout
 
Methods inherited from class net.java.dev.vcc.ant.AbstractDatacenterTask
execute, getDatacenteruri, getPassword, getUsername, setDatacenteruri, setPassword, setUsername
 
Methods inherited from class org.apache.tools.ant.Task
getDescription, getLocation, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, init, isInvalid, log, log, maybeConfigure, perform, reconfigure, setDescription, setLocation, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskType
 
Methods inherited from class org.apache.tools.ant.ProjectComponent
getProject, setProject
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SuspendComputerTask

public SuspendComputerTask()
Method Detail

recordFailure

protected void recordFailure(java.lang.String name)
Records that the operation on the named computer failed.

Specified by:
recordFailure in class AbstractComputerActionTask
Parameters:
name - The computer name.

recordSuccess

protected void recordSuccess(java.lang.String name)
Records that the operation on the named computer succeeded.

Specified by:
recordSuccess in class AbstractComputerActionTask
Parameters:
name - The computer name.

doAction

protected java.util.concurrent.Future<net.java.dev.vcc.api.Success> doAction(net.java.dev.vcc.api.Computer c)
Preforms the operation on the specified computer, returning a future for completion of the operation.

Specified by:
doAction in class AbstractComputerActionTask
Parameters:
c - The computer.
Returns:
A future for completion of the operation.


Copyright © 2009. All Rights Reserved.