org.apache.lokahi.core.agent
Class AbstractAgentTask<V>
java.lang.Object
org.apache.lokahi.core.agent.AbstractAgentTask<V>
- All Implemented Interfaces:
- AgentTask
- Direct Known Subclasses:
- AddContextTask, GetSessionsTask, HttpsdctlTask, ListContextTask, MakeDirTask, PutFileTask, RedeployContextTask, ReloadContextTask, RemoveContextTask, RestartTomcatTask, StartContextTask, StartTomcatTask, StopContextTask, StopTomcatTask
public abstract class AbstractAgentTask<V>
- extends java.lang.Object
- implements AgentTask
- Version:
- $Id: AbstractAgentTask.java,v 1.1 2006/03/02 19:19:44 drtobes Exp $
- Author:
- Stephen Toback
Field Summary |
protected java.util.concurrent.FutureTask<V> |
task
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.apache.lokahi.core.agent.interfaces.AgentTask |
getResult |
task
protected java.util.concurrent.FutureTask<V> task
AbstractAgentTask
public AbstractAgentTask()
getJobId
public int getJobId()
- Specified by:
getJobId
in interface AgentTask
setJobId
protected void setJobId(int id)
isDone
public boolean isDone()
- Specified by:
isDone
in interface AgentTask
cancel
public boolean cancel(boolean mayInterruptIfRunning)
- Specified by:
cancel
in interface AgentTask
isCanceled
public boolean isCanceled()
- Specified by:
isCanceled
in interface AgentTask
getRunnable
public java.lang.Runnable getRunnable()
- Specified by:
getRunnable
in interface AgentTask
getType
public TaskType getType()
- Specified by:
getType
in interface AgentTask
setType
protected void setType(TaskType t)