org.globus.cog.gridshell.tasks
Class AbstractTask

java.lang.Object
  extended byorg.globus.cog.abstraction.impl.common.task.TaskImpl
      extended byorg.globus.cog.gridshell.tasks.AbstractTask
All Implemented Interfaces:
ExecutableObject, Task
Direct Known Subclasses:
AbstractFileTask, ExecTask

public abstract class AbstractTask
extends TaskImpl


Field Summary
 
Fields inherited from interface org.globus.cog.abstraction.interfaces.Task
FILE_OPERATION, FILE_TRANSFER, INFORMATION_QUERY, JOB_SUBMISSION
 
Fields inherited from interface org.globus.cog.abstraction.interfaces.ExecutableObject
TASK, TASKGRAPH
 
Constructor Summary
AbstractTask(String id, int type)
           
 
Method Summary
 void addScopeStatusListener(Scope scope, String varName)
           
abstract  String getProvider()
           
abstract  Object getResult()
           
abstract  String getServiceContact()
           
abstract  TaskHandler getTaskHandler()
           
 void initTask()
           
 boolean isLocked()
           
 void notifyAllLock()
           
 Object submitAndWait()
           
 void submitTask()
           
 
Methods inherited from class org.globus.cog.abstraction.impl.common.task.TaskImpl
addOutputListener, addService, addStatusListener, equals, getAllAttributes, getAllServices, getAttribute, getCompletedTime, getIdentity, getName, getObjectType, getRequiredServices, getService, getSpecification, getStatus, getStdError, getStdOutput, getSubmittedTime, getType, hashCode, isActive, isCanceled, isCompleted, isFailed, isSuspended, isUnsubmitted, removeAllServices, removeOutputListener, removeService, removeService, removeStatusListener, setAttribute, setIdentity, setName, setProvider, setRequiredService, setService, setSpecification, setStatus, setStatus, setStdError, setStdOutput, setType, toString, toXML
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AbstractTask

public AbstractTask(String id,
                    int type)
Method Detail

getTaskHandler

public abstract TaskHandler getTaskHandler()

getProvider

public abstract String getProvider()

getServiceContact

public abstract String getServiceContact()

getResult

public abstract Object getResult()

initTask

public void initTask()
              throws InvalidProviderException,
                     ProviderMethodException
Throws:
InvalidProviderException
ProviderMethodException

submitTask

public final void submitTask()
                      throws IllegalSpecException,
                             InvalidSecurityContextException,
                             InvalidServiceContactException,
                             TaskSubmissionException
Throws:
IllegalSpecException
InvalidSecurityContextException
InvalidServiceContactException
TaskSubmissionException

submitAndWait

public final Object submitAndWait()
                           throws IllegalSpecException,
                                  InvalidSecurityContextException,
                                  InvalidServiceContactException,
                                  TaskSubmissionException
Throws:
IllegalSpecException
InvalidSecurityContextException
InvalidServiceContactException
TaskSubmissionException

addScopeStatusListener

public void addScopeStatusListener(Scope scope,
                                   String varName)

isLocked

public boolean isLocked()

notifyAllLock

public final void notifyAllLock()