org.apache.jk.common

Class WorkerDummy

Implemented Interfaces:
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 org.apache.jk.core.JkHandler

ERROR, HANDLE_FLUSH, HANDLE_RECEIVE_PACKET, HANDLE_SEND_PACKET, HANDLE_THREAD_END, LAST, OK, domain, id, mserver, name, next, nextName, oname, properties, wEnv

Constructor Summary

WorkerDummy()

Method Summary

void
init()
Initialize the worker.
int
invoke(Msg in, MsgContext ep)

Methods inherited from class org.apache.jk.core.JkHandler

addHandlerCallback, createMsgContext, destroy, getDomain, getId, getName, getNext, getObjectName, getProperty, handleNotification, init, invoke, pause, postDeregister, postRegister, preDeregister, preRegister, resume, setId, setName, setNext, setNext, setProperty, setWorkerEnv

Constructor Details

WorkerDummy

public WorkerDummy()

Method Details

init

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


invoke

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


Copyright B) 2000-2003 Apache Software Foundation. All Rights Reserved.