com.sun.grizzly.http.jk.common
Class WorkerDummy

java.lang.Object
  extended by com.sun.grizzly.http.jk.core.JkHandler
      extended by com.sun.grizzly.http.jk.common.WorkerDummy
All Implemented Interfaces:
EventListener, MBeanRegistration, NotificationListener

public class WorkerDummy
extends JkHandler

A dummy worker, will just send back a dummy response. Used for testing and tunning.


Field Summary
 
Fields inherited from class com.sun.grizzly.http.jk.core.JkHandler
domain, ERROR, HANDLE_FLUSH, HANDLE_RECEIVE_PACKET, HANDLE_SEND_PACKET, HANDLE_THREAD_END, id, LAST, mserver, name, next, nextName, OK, oname, properties, wEnv
 
Constructor Summary
WorkerDummy()
           
 
Method Summary
 void init()
          Initialize the worker.
 int invoke(Msg in, MsgContext ep)
           
 
Methods inherited from class com.sun.grizzly.http.jk.core.JkHandler
addHandlerCallback, createMsgContext, createMsgContext, destroy, getDomain, getId, getName, getNext, getObjectName, getProperty, handleNotification, pause, postDeregister, postRegister, preDeregister, preRegister, resume, setId, setName, setNext, setNext, setProperty, setWorkerEnv
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WorkerDummy

public WorkerDummy()
Method Detail

init

public void init()
          throws IOException
Initialize the worker. After this call the worker will be ready to accept new requests.

Overrides:
init in class JkHandler
Throws:
IOException

invoke

public int invoke(Msg in,
                  MsgContext ep)
           throws IOException
Overrides:
invoke in class JkHandler
Throws:
IOException


Copyright © 2012 Oracle Corporation. All Rights Reserved.