org.apache.lokahi.core.agent.interfaces
Interface AgentTask

All Known Implementing Classes:
AbstractAgentTask, AddContextTask, ConfigtestApacheTask, GetSessionsTask, GracefulApacheTask, HttpsdctlTask, ListContextTask, MakeDirTask, PutFileTask, RedeployContextTask, ReloadContextTask, RemoveContextTask, RestartApacheTask, RestartTomcatTask, StartApacheTask, StartContextTask, StartTomcatTask, StopApacheTask, StopContextTask, StopTomcatTask

public interface AgentTask

Version:
$Id: AgentTask.java,v 1.1 2006/03/02 19:19:40 drtobes Exp $
Author:
Stephen Toback

Method Summary
 boolean cancel(boolean mayInterruptIfRunning)
           
 int getJobId()
           
 java.lang.String getResult()
           
 java.lang.Runnable getRunnable()
           
 TaskType getType()
           
 boolean isCanceled()
           
 boolean isDone()
           
 

Method Detail

getResult

java.lang.String getResult()
                           throws java.util.concurrent.ExecutionException,
                                  java.lang.InterruptedException,
                                  TMCTaskException
Throws:
java.util.concurrent.ExecutionException
java.lang.InterruptedException
TMCTaskException

getJobId

int getJobId()

isDone

boolean isDone()

cancel

boolean cancel(boolean mayInterruptIfRunning)

isCanceled

boolean isCanceled()

getRunnable

java.lang.Runnable getRunnable()

getType

TaskType getType()