org.apache.jk.common
Class Shm
public
class
Shm
extends JniHandler
Handle the shared memory objects.
Author: Costin Manolache
Method Summary |
void | destroy() |
void | dumpScoreboard(String fname) |
void | execute() |
void | init() |
void | initCli() Local initialization - for standalone use |
int | invoke(Msg msg, MsgContext ep) |
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) |
public Shm()
public void destroy()
public void dumpScoreboard(String fname)
public void execute()
public void init()
public void initCli()
Local initialization - for standalone use
public static void main(String[] args)
public void registerTomcat(String host, int port, String unixDomain)
Register a tomcat instance
XXX make it more flexible
public void resetScoreboard()
public 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.
public void setFile(String f)
Scoreboard location
public void setGroup(String grp)
Mark this instance as belonging to a group
public void setHelp(boolean b)
public void setHost(String host)
Ajp13 host
public void setPort(int port)
Ajp13 port
public void setReset(boolean b)
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".
public void setSize(int size)
Size. Used only if the scoreboard is to be created.
public void setUnixSocket(String unixSocket)
Unix socket where tomcat is listening.
Use it only if tomcat is on the same host, of course
public void setUnregister(boolean unregister)
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.
public void unRegisterTomcat(String host, int port)
Copyright © 2000-2011 Apache Software Foundation. All Rights Reserved.