|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sun.grizzly.http.jk.core.JkHandler
public class JkHandler
Field Summary | |
---|---|
protected String |
domain
|
static int |
ERROR
|
static int |
HANDLE_FLUSH
|
static int |
HANDLE_RECEIVE_PACKET
|
static int |
HANDLE_SEND_PACKET
|
static int |
HANDLE_THREAD_END
|
protected int |
id
|
static int |
LAST
|
protected MBeanServer |
mserver
|
protected String |
name
|
protected JkHandler |
next
|
protected String |
nextName
|
static int |
OK
|
protected ObjectName |
oname
|
protected Properties |
properties
|
protected WorkerEnv |
wEnv
|
Constructor Summary | |
---|---|
JkHandler()
|
Method Summary | |
---|---|
void |
addHandlerCallback(JkHandler w)
Experimental, will be replaced. |
MsgContext |
createMsgContext()
|
MsgContext |
createMsgContext(int bsize)
|
void |
destroy()
Clean up and stop the handler |
String |
getDomain()
|
int |
getId()
|
String |
getName()
|
String |
getNext()
|
ObjectName |
getObjectName()
|
String |
getProperty(String name)
|
void |
handleNotification(Notification notification,
Object handback)
|
void |
init()
Should register the request types it can handle, same style as apache2. |
int |
invoke(Msg msg,
MsgContext mc)
|
void |
pause()
|
void |
postDeregister()
|
void |
postRegister(Boolean registrationDone)
|
void |
preDeregister()
|
ObjectName |
preRegister(MBeanServer server,
ObjectName oname)
|
void |
resume()
|
void |
setId(int id)
Set the id of the worker. |
void |
setName(String s)
Set the name of the handler. |
void |
setNext(JkHandler h)
Catalina-style "recursive" invocation. |
void |
setNext(String s)
|
void |
setProperty(String name,
String value)
|
void |
setWorkerEnv(WorkerEnv we)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int OK
public static final int LAST
public static final int ERROR
protected Properties properties
protected WorkerEnv wEnv
protected JkHandler next
protected String nextName
protected String name
protected int id
public static final int HANDLE_RECEIVE_PACKET
public static final int HANDLE_SEND_PACKET
public static final int HANDLE_FLUSH
public static final int HANDLE_THREAD_END
protected String domain
protected ObjectName oname
protected MBeanServer mserver
Constructor Detail |
---|
public JkHandler()
Method Detail |
---|
public void setWorkerEnv(WorkerEnv we)
public void setName(String s)
public String getName()
public void setId(int id)
public int getId()
public void setNext(JkHandler h)
public void setNext(String s)
public String getNext()
public void init() throws IOException
IOException
public void destroy() throws IOException
IOException
public MsgContext createMsgContext()
public MsgContext createMsgContext(int bsize)
public int invoke(Msg msg, MsgContext mc) throws IOException
IOException
public void setProperty(String name, String value)
public String getProperty(String name)
public void addHandlerCallback(JkHandler w)
public void handleNotification(Notification notification, Object handback)
handleNotification
in interface NotificationListener
public ObjectName getObjectName()
public String getDomain()
public ObjectName preRegister(MBeanServer server, ObjectName oname) throws Exception
preRegister
in interface MBeanRegistration
Exception
public void postRegister(Boolean registrationDone)
postRegister
in interface MBeanRegistration
public void preDeregister() throws Exception
preDeregister
in interface MBeanRegistration
Exception
public void postDeregister()
postDeregister
in interface MBeanRegistration
public void pause() throws Exception
Exception
public void resume() throws Exception
Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |