|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.apache.tools.ant.ProjectComponent
org.apache.tools.ant.Task
net.java.dev.vcc.ant.AbstractDatacenterTask
net.java.dev.vcc.ant.AbstractComputerActionTask
public abstract class AbstractComputerActionTask
Created by IntelliJ IDEA. User: connollys Date: Aug 11, 2009 Time: 3:42:14 PM To change this template use File | Settings | File Templates.
| 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 | |
|---|---|
AbstractComputerActionTask()
|
|
| Method Summary | |
|---|---|
void |
addConfiguredComputer(ComputerElement aComputer)
|
protected abstract java.util.concurrent.Future<net.java.dev.vcc.api.Success> |
doAction(net.java.dev.vcc.api.Computer computer)
Preforms the operation on the specified computer, returning a future for completion of the operation. |
protected void |
execute(net.java.dev.vcc.api.Datacenter datacenter)
Execute the task on the specified datacenter. |
int |
getTimeout()
|
protected abstract void |
recordFailure(java.lang.String name)
Records that the operation on the named computer failed. |
protected abstract void |
recordSuccess(java.lang.String name)
Records that the operation on the named computer succeeded. |
void |
setTimeout(int timeout)
|
| 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 |
|---|
public AbstractComputerActionTask()
| Method Detail |
|---|
protected final void execute(net.java.dev.vcc.api.Datacenter datacenter)
throws org.apache.tools.ant.BuildException
execute in class AbstractDatacenterTaskdatacenter - The datacenter connection.
org.apache.tools.ant.BuildException - when things go bad.protected abstract void recordFailure(java.lang.String name)
name - The computer name.protected abstract void recordSuccess(java.lang.String name)
name - The computer name.protected abstract java.util.concurrent.Future<net.java.dev.vcc.api.Success> doAction(net.java.dev.vcc.api.Computer computer)
computer - The computer.
public final int getTimeout()
public final void setTimeout(int timeout)
public final void addConfiguredComputer(ComputerElement aComputer)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||