org.globus.cog.gridshell.tasks
Class StartTask
java.lang.Object
org.globus.cog.abstraction.impl.common.task.TaskImpl
org.globus.cog.gridshell.tasks.AbstractTask
org.globus.cog.gridshell.tasks.AbstractFileTask
org.globus.cog.gridshell.tasks.StartTask
- All Implemented Interfaces:
- ExecutableObject, StatusListener, Task
- public class StartTask
- extends AbstractFileTask
- implements StatusListener
A task to start, open, a connection
|
Constructor Summary |
StartTask(Object credentials,
String provider,
String serviceContact,
int port)
Creates a task that provides a connection |
| 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 |
StartTask
public StartTask(Object credentials,
String provider,
String serviceContact,
int port)
throws InvalidProviderException,
ProviderMethodException
- Creates a task that provides a connection
- Parameters:
credentials - provider - serviceContact - port -
- Throws:
InvalidProviderException
ProviderMethodException
initTask
public void initTask()
throws InvalidProviderException,
ProviderMethodException
- Overrides:
initTask in class AbstractFileTask
- Throws:
InvalidProviderException
ProviderMethodException
statusChanged
public void statusChanged(StatusEvent event)
- Specified by:
statusChanged in interface StatusListener
getProvider
public String getProvider()
- Specified by:
getProvider in interface Task- Specified by:
getProvider in class AbstractTask
getOperation
public String getOperation()
- Specified by:
getOperation in class AbstractFileTask
getServiceContact
public String getServiceContact()
- Specified by:
getServiceContact in class AbstractTask
getSessionId
public Identity getSessionId()
- Specified by:
getSessionId in class AbstractFileTask
getTaskHandler
public TaskHandler getTaskHandler()
- Specified by:
getTaskHandler in class AbstractTask
getPort
public int getPort()
- Specified by:
getPort in class AbstractFileTask