FileDocCategorySizeDatePackage
TaskEvent.javaAPI DocGlassfish v2 API3276Fri May 04 22:37:06 BST 2007com.sun.enterprise.web.connector.grizzly

TaskEvent

public class TaskEvent extends Object
Sample event object used by instance of TaskListener to share status information about where they are when processing a request.
author
Jean-Francois Arcand

Fields Summary
public static final int
START
public static final int
ERROR
public static final int
COMPLETED
public static final int
CONTINUE
public static final int
START_ASYNCHRONOUS
private int
status
protected E
ctx
The associated TaskContext instance. Can be null.
Constructors Summary
public TaskEvent(E ctx)
Create an instance and associated the TaskContext object.

        this.ctx = ctx;
    
public TaskEvent()
Create an empty instance.

    
Methods Summary
public voidattach(E ctx)
Set TaskContext instance. Can be null.

        this.ctx = ctx;
    
public Eattachement()
Return the TaskContext instance. Can be null.

        return ctx;
    
public intgetStatus()

    
 
      
        return status;
    
public voidsetStatus(int status)

        this.status = status;