org.globus.cog.gridshell.tasks
Class AbstractTask
java.lang.Object
org.globus.cog.abstraction.impl.common.task.TaskImpl
org.globus.cog.gridshell.tasks.AbstractTask
- All Implemented Interfaces:
- ExecutableObject, Task
- Direct Known Subclasses:
- AbstractFileTask, ExecTask
- public abstract class AbstractTask
- extends TaskImpl
| 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 |
AbstractTask
public AbstractTask(String id,
int type)
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()