org.globus.cog.abstraction.impl.common.sandbox
Class SandboxingTaskHandlerDelegate

java.lang.Object
  extended byjava.lang.Thread
      extended byorg.globus.cog.abstraction.impl.common.sandbox.SandboxingTaskHandlerDelegate
All Implemented Interfaces:
Runnable

public class SandboxingTaskHandlerDelegate
extends Thread


Field Summary
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
SandboxingTaskHandlerDelegate()
           
SandboxingTaskHandlerDelegate(TaskHandler handler)
           
 
Method Summary
 void cancel(Task task)
           
 Collection getActiveTasks()
           
 Collection getAllTasks()
           
 String getBootClassName()
           
 Collection getCanceledTasks()
           
 Collection getCompletedTasks()
           
 Collection getFailedTasks()
           
 Collection getResumedTasks()
           
 Collection getSuspendedTasks()
           
 void remove(Task task)
           
protected  Object request(int type)
           
protected  Object request(int type, Task task)
           
protected  void request(org.globus.cog.abstraction.impl.common.sandbox.SandboxingTaskHandlerDelegate.Request request)
           
 void resume(Task task)
           
 void run()
           
 void setBootClassName(String bootClassName)
           
 void setTaskHandler(TaskHandler handler)
           
 void submit(Task task)
           
 void suspend(Task task)
           
 void terminate()
           
 
Methods inherited from class java.lang.Thread
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getContextClassLoader, getName, getPriority, getThreadGroup, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setName, setPriority, sleep, sleep, start, stop, stop, suspend, toString, yield
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SandboxingTaskHandlerDelegate

public SandboxingTaskHandlerDelegate()

SandboxingTaskHandlerDelegate

public SandboxingTaskHandlerDelegate(TaskHandler handler)
Method Detail

setTaskHandler

public void setTaskHandler(TaskHandler handler)

run

public void run()

request

protected Object request(int type)

request

protected Object request(int type,
                         Task task)
                  throws IllegalSpecException,
                         InvalidSecurityContextException,
                         InvalidServiceContactException,
                         TaskSubmissionException,
                         ActiveTaskException
Throws:
IllegalSpecException
InvalidSecurityContextException
InvalidServiceContactException
TaskSubmissionException
ActiveTaskException

request

protected void request(org.globus.cog.abstraction.impl.common.sandbox.SandboxingTaskHandlerDelegate.Request request)
                throws IllegalSpecException,
                       InvalidSecurityContextException,
                       InvalidServiceContactException,
                       TaskSubmissionException,
                       ActiveTaskException
Throws:
IllegalSpecException
InvalidSecurityContextException
InvalidServiceContactException
TaskSubmissionException
ActiveTaskException

terminate

public void terminate()

submit

public void submit(Task task)
            throws IllegalSpecException,
                   InvalidSecurityContextException,
                   InvalidServiceContactException,
                   TaskSubmissionException
Throws:
IllegalSpecException
InvalidSecurityContextException
InvalidServiceContactException
TaskSubmissionException

suspend

public void suspend(Task task)
             throws InvalidSecurityContextException,
                    TaskSubmissionException
Throws:
InvalidSecurityContextException
TaskSubmissionException

resume

public void resume(Task task)
            throws InvalidSecurityContextException,
                   TaskSubmissionException
Throws:
InvalidSecurityContextException
TaskSubmissionException

cancel

public void cancel(Task task)
            throws InvalidSecurityContextException,
                   TaskSubmissionException
Throws:
InvalidSecurityContextException
TaskSubmissionException

remove

public void remove(Task task)
            throws ActiveTaskException
Throws:
ActiveTaskException

getAllTasks

public Collection getAllTasks()

getActiveTasks

public Collection getActiveTasks()

getFailedTasks

public Collection getFailedTasks()

getCompletedTasks

public Collection getCompletedTasks()

getSuspendedTasks

public Collection getSuspendedTasks()

getResumedTasks

public Collection getResumedTasks()

getCanceledTasks

public Collection getCanceledTasks()

getBootClassName

public String getBootClassName()

setBootClassName

public void setBootClassName(String bootClassName)