|
||||||||||
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
com.sun.grizzly.http.jk.common.JniHandler
com.sun.grizzly.http.jk.common.Shm
public class Shm
Handle the shared memory objects.
Field Summary |
---|
Fields inherited from class com.sun.grizzly.http.jk.common.JniHandler |
---|
apr, JK_HANDLE_JNI_DISPATCH, JK_HANDLE_SHM_DISPATCH, jkHome, MB_NOTE, MSG_NOTE, nativeJkHandlerP |
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 | |
---|---|
Shm()
|
Method Summary | |
---|---|
void |
destroy()
Clean up and stop the handler |
void |
dumpScoreboard(String fname)
|
void |
execute()
|
void |
init()
You must call initNative() inside the component init() |
void |
initCli()
Local initialization - for standalone use |
int |
invoke(Msg msg,
MsgContext ep)
Base implementation for invoke. |
static void |
main(String[] args)
|
void |
registerTomcat(String host,
int port,
String unixDomain)
Register a tomcat instance XXX make it more flexible |
void |
resetScoreboard()
|
void |
setDump(String dumpFile)
Copy the scoreboard in a file for debugging Will also log a lot of information about what's in the scoreboard. |
void |
setFile(String f)
Scoreboard location |
void |
setGroup(String grp)
Mark this instance as belonging to a group |
void |
setHelp(boolean b)
|
void |
setHost(String host)
Ajp13 host |
void |
setPort(int port)
Ajp13 port |
void |
setReset(boolean b)
Set this to get the scoreboard reset. |
void |
setSize(int size)
Size. |
void |
setUnixSocket(String unixSocket)
Unix socket where tomcat is listening. |
void |
setUnregister(boolean unregister)
Set this option to mark the tomcat instance as 'down', so apache will no longer forward messages to it. |
void |
unRegisterTomcat(String host,
int port)
|
Methods inherited from class com.sun.grizzly.http.jk.common.JniHandler |
---|
appendString, createMsgContext, destroyJkComponent, getJkHome, initJkComponent, initNative, nativeDispatch, pause, recycleNative, resume, setJkHome, setNativeAttribute, setNativeEndpoint |
Methods inherited from class com.sun.grizzly.http.jk.core.JkHandler |
---|
addHandlerCallback, createMsgContext, getDomain, getId, getName, getNext, getObjectName, getProperty, handleNotification, postDeregister, postRegister, preDeregister, preRegister, 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 |
---|
public Shm()
Method Detail |
---|
public void setFile(String f)
public void setDump(String dumpFile)
public void setSize(int size)
public void setReset(boolean b)
public void setHost(String host)
public void setGroup(String grp)
public void setPort(int port)
public void setUnixSocket(String unixSocket)
public void setUnregister(boolean unregister)
public void init() throws IOException
JniHandler
init
in class JniHandler
IOException
public void resetScoreboard() throws IOException
IOException
public void dumpScoreboard(String fname) throws IOException
IOException
public void registerTomcat(String host, int port, String unixDomain) throws IOException
IOException
public void unRegisterTomcat(String host, int port) throws IOException
IOException
public void destroy() throws IOException
JkHandler
destroy
in class JkHandler
IOException
public int invoke(Msg msg, MsgContext ep) throws IOException
JniHandler
invoke
in class JniHandler
IOException
public void initCli() throws IOException
IOException
public void execute()
public void setHelp(boolean b)
public static void main(String[] args)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |