org.globus.cog.gridshell.tasks
Class StartTask

java.lang.Object
  extended byorg.globus.cog.abstraction.impl.common.task.TaskImpl
      extended byorg.globus.cog.gridshell.tasks.AbstractTask
          extended byorg.globus.cog.gridshell.tasks.AbstractFileTask
              extended byorg.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


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
StartTask(Object credentials, String provider, String serviceContact, int port)
          Creates a task that provides a connection
 
Method Summary
 String getOperation()
           
 int getPort()
           
 String getProvider()
           
 String getServiceContact()
           
 Identity getSessionId()
           
 TaskHandler getTaskHandler()
           
 void initTask()
           
 void statusChanged(StatusEvent event)
           
 
Methods inherited from class org.globus.cog.gridshell.tasks.AbstractFileTask
createTaskHandler, getArguments, getResult, setArguments
 
Methods inherited from class org.globus.cog.gridshell.tasks.AbstractTask
addScopeStatusListener, isLocked, notifyAllLock, submitAndWait, 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

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
Method Detail

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