ERROR
public static final int ERROR
- 2
HANDLE_FLUSH
public static final int HANDLE_FLUSH
- 12
HANDLE_RECEIVE_PACKET
public static final int HANDLE_RECEIVE_PACKET
- 10
HANDLE_SEND_PACKET
public static final int HANDLE_SEND_PACKET
- 11
HANDLE_THREAD_END
public static final int HANDLE_THREAD_END
- 13
LAST
public static final int LAST
- 1
OK
public static final int OK
- 0
domain
protected String domain
mserver
protected MBeanServer mserver
name
protected String name
nextName
protected String nextName
oname
protected ObjectName oname
properties
protected Properties properties
addHandlerCallback
public void addHandlerCallback(JkHandler w)
Experimental, will be replaced. This allows handlers to be
notified when other handlers are added.
createMsgContext
public MsgContext createMsgContext()
destroy
public void destroy()
throws IOException
Clean up and stop the handler
getDomain
public String getDomain()
getName
public String getName()
getNext
public String getNext()
getObjectName
public ObjectName getObjectName()
getProperty
public String getProperty(String name)
handleNotification
public void handleNotification(Notification notification,
Object handback)
init
public void init()
throws IOException
Should register the request types it can handle,
same style as apache2.
invoke
public int invoke(Msg msg,
MsgContext mc)
throws IOException
pause
public void pause()
throws Exception
postDeregister
public void postDeregister()
postRegister
public void postRegister(Boolean registrationDone)
preDeregister
public void preDeregister()
throws Exception
preRegister
public ObjectName preRegister(MBeanServer server,
ObjectName oname)
throws Exception
resume
public void resume()
throws Exception
setId
public void setId(int id)
Set the id of the worker. We use an id for faster dispatch.
Since we expect a decent number of handler in system, the
id is unique - that means we may have to allocate bigger
dispatch tables. ( easy to fix if needed )
setName
public void setName(String s)
Set the name of the handler. Will allways be called by
worker env after creating the worker.
setNext
public void setNext(String s)
setNext
public void setNext(JkHandler h)
Catalina-style "recursive" invocation.
A chain is used for Apache/3.3 style iterative invocation.
setProperty
public void setProperty(String name,
String value)
setWorkerEnv
public void setWorkerEnv(WorkerEnv we)