|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.jk.core.JkHandler org.apache.jk.common.JniHandler org.apache.jk.common.Shm
Handle the shared memory objects.
Field Summary |
Fields inherited from class org.apache.jk.common.JniHandler |
apr, JK_HANDLE_JNI_DISPATCH, JK_HANDLE_SHM_DISPATCH, jkHome, MB_NOTE, MSG_NOTE, nativeJkHandlerP |
Fields inherited from class org.apache.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(java.lang.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(java.lang.String[] args)
|
void |
registerTomcat(java.lang.String host,
int port,
java.lang.String unixDomain)
Register a tomcat instance XXX make it more flexible |
void |
resetScoreboard()
|
void |
setDump(java.lang.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(java.lang.String f)
Scoreboard location |
void |
setGroup(java.lang.String grp)
Mark this instance as belonging to a group |
void |
setHelp(boolean b)
|
void |
setHost(java.lang.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(java.lang.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(java.lang.String host,
int port)
|
Methods inherited from class org.apache.jk.common.JniHandler |
appendString, createMsgContext, destroyJkComponent, getJkHome, initJkComponent, initNative, nativeDispatch, pause, recycleNative, resume, setJkHome, setNativeAttribute, setNativeEndpoint |
Methods inherited from class org.apache.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(java.lang.String f)
public void setDump(java.lang.String dumpFile)
public void setSize(int size)
public void setReset(boolean b)
public void setHost(java.lang.String host)
public void setGroup(java.lang.String grp)
public void setPort(int port)
public void setUnixSocket(java.lang.String unixSocket)
public void setUnregister(boolean unregister)
public void init() throws java.io.IOException
JniHandler
init
in class JniHandler
java.io.IOException
public void resetScoreboard() throws java.io.IOException
java.io.IOException
public void dumpScoreboard(java.lang.String fname) throws java.io.IOException
java.io.IOException
public void registerTomcat(java.lang.String host, int port, java.lang.String unixDomain) throws java.io.IOException
java.io.IOException
public void unRegisterTomcat(java.lang.String host, int port) throws java.io.IOException
java.io.IOException
public void destroy() throws java.io.IOException
JkHandler
destroy
in class JkHandler
java.io.IOException
public int invoke(Msg msg, MsgContext ep) throws java.io.IOException
JniHandler
invoke
in class JniHandler
java.io.IOException
public void initCli() throws java.io.IOException
java.io.IOException
public void execute()
public void setHelp(boolean b)
public static void main(java.lang.String[] args)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |