| org.apache.jk.common.JniHandler org.apache.jk.common.Shm
All known Subclasses: org.apache.jk.common.Shm14,
Shm | public class Shm extends JniHandler (Code) | | Handle the shared memory objects.
author: Costin Manolache |
Constructor Summary | |
public | Shm() |
SHM_DUMP | final static int SHM_DUMP(Code) | | |
SHM_RESET | final static int SHM_RESET(Code) | | |
SHM_WRITE_SLOT | final static int SHM_WRITE_SLOT(Code) | | |
unregister | boolean unregister(Code) | | |
execute | public void execute()(Code) | | |
initCli | public void initCli() throws IOException(Code) | | Local initialization - for standalone use
|
registerTomcat | public void registerTomcat(String host, int port, String unixDomain) throws IOException(Code) | | Register a tomcat instance
XXX make it more flexible
|
setDump | public void setDump(String dumpFile)(Code) | | Copy the scoreboard in a file for debugging
Will also log a lot of information about what's in the scoreboard.
|
setFile | public void setFile(String f)(Code) | | Scoreboard location
|
setGroup | public void setGroup(String grp)(Code) | | Mark this instance as belonging to a group
|
setHelp | public void setHelp(boolean b)(Code) | | |
setPort | public void setPort(int port)(Code) | | Ajp13 port
|
setReset | public void setReset(boolean b)(Code) | | Set this to get the scoreboard reset.
The shm segment will be destroyed and a new one created,
with the provided size.
Requires "file" and "size".
|
setSize | public void setSize(int size)(Code) | | Size. Used only if the scoreboard is to be created.
|
setUnixSocket | public void setUnixSocket(String unixSocket)(Code) | | Unix socket where tomcat is listening.
Use it only if tomcat is on the same host, of course
|
setUnregister | public void setUnregister(boolean unregister)(Code) | | Set this option to mark the tomcat instance as
'down', so apache will no longer forward messages to it.
Note that requests with a session will still try this
host first.
This can be used to implement gracefull shutdown.
Host and port are still required, since they are used
to identify tomcat.
|
|
|