FileDocCategorySizeDatePackage
TaskWrapper.javaAPI DocGlassfish v2 API5097Fri May 04 22:37:02 BST 2007com.sun.enterprise.web.ara

TaskWrapper

public abstract class TaskWrapper extends Object implements com.sun.enterprise.web.connector.grizzly.Task
Wrap an instance of a Task
author
Jeanfrancois Arcand

Fields Summary
protected com.sun.enterprise.web.connector.grizzly.Task
wrappedTask
The wrapped Task instance.
Constructors Summary
public TaskWrapper()

Methods Summary
public voidaddTaskListener(com.sun.enterprise.web.connector.grizzly.TaskListener task)

        wrappedTask.addTaskListener(task);
    
public java.lang.Objectcall()

        return wrappedTask.call();
    
public voidcancelTask(java.lang.String message, java.lang.String httpCode)

        wrappedTask.cancelTask(message,httpCode);
    
public voidclearTaskListeners()

        wrappedTask.clearTaskListeners();
    
public abstract voiddoTask()
Execute the Task

public abstract voidexecute()
Execute the Task< using this thread or a Pipeline.

public com.sun.enterprise.web.connector.grizzly.KeepAliveStatsgetKeepAliveStats()

        return wrappedTask.getKeepAliveStats();
    
public booleangetRecycle()

        return wrappedTask.getRecycle();
    
public org.apache.coyote.RequestGroupInfogetRequestGroupInfo()

        return wrappedTask.getRequestGroupInfo();
    
public java.nio.channels.SelectionKeygetSelectionKey()

        return wrappedTask.getSelectionKey();
    
public com.sun.enterprise.web.connector.grizzly.SelectorThreadgetSelectorThread()

        return wrappedTask.getSelectorThread();
    
public java.util.ArrayListgetTaskListeners()

        return wrappedTask.getTaskListeners();
    
public intgetType()

        return wrappedTask.getType();
    
public com.sun.enterprise.web.connector.grizzly.TaskgetWrappedTask()
Return the wrapped Task

        return wrappedTask;
    
public booleanisMonitoringEnabled()

        return wrappedTask.isMonitoringEnabled();
    
public voidrecycle()

        wrappedTask.recycle();
    
public voidremoveTaskListener(com.sun.enterprise.web.connector.grizzly.TaskListener task)

        wrappedTask.removeTaskListener(task);
    
public abstract voidrun()
Execute the Task< using this thread or a Pipeline.

public voidsetRecycle(boolean recycle)

        wrappedTask.setRecycle(recycle);
    
public voidsetSelectionKey(java.nio.channels.SelectionKey key)

        wrappedTask.setSelectionKey(key);
    
public voidsetSelectorThread(com.sun.enterprise.web.connector.grizzly.SelectorThread selectorThread)

        wrappedTask.setSelectorThread(selectorThread);
    
public abstract com.sun.enterprise.web.connector.grizzly.Taskwrap(com.sun.enterprise.web.connector.grizzly.Task task)
Wrap an instance of a Task