Handle the shared memory objects.
destroy
public void destroy()
throws IOException
Clean up and stop the handler
- destroy in interface JkHandler
dumpScoreboard
public void dumpScoreboard(String fname)
throws IOException
execute
public void execute()
init
public void init()
throws IOException
Should register the request types it can handle,
same style as apache2.
- init in interface JniHandler
initCli
public void initCli()
throws IOException
Local initialization - for standalone use
main
public static void main(args[] )
registerTomcat
public void registerTomcat(String host,
int port,
String unixDomain)
throws IOException
Register a tomcat instance
XXX make it more flexible
resetScoreboard
public void resetScoreboard()
throws IOException
setDump
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.
setFile
public void setFile(String f)
Scoreboard location
setGroup
public void setGroup(String grp)
Mark this instance as belonging to a group
setHelp
public void setHelp(boolean b)
setHost
public void setHost(String host)
Ajp13 host
setPort
public void setPort(int port)
Ajp13 port
setReset
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".
setSize
public void setSize(int size)
Size. Used only if the scoreboard is to be created.
setUnixSocket
public void setUnixSocket(String unixSocket)
Unix socket where tomcat is listening.
Use it only if tomcat is on the same host, of course
setUnregister
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.
unRegisterTomcat
public void unRegisterTomcat(String host,
int port)
throws IOException