|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.fcrepo.server.utilities.status.ServerStatusTool
public class ServerStatusTool
| Field Summary | |
|---|---|
static int |
DEFAULT_SHUTDOWN_TIMEOUT
Default number of seconds watch-shutdown should wait for the state to change from STOPPING to STOPPED or STOPPED_WITH_ERR before giving up. |
static int |
DEFAULT_STARTING_TIMEOUT
Default number of seconds watch-startup should wait for the state to change from NOT_STARTING to STARTING before giving up. |
static int |
DEFAULT_STARTUP_TIMEOUT
Default number of seconds watch-startup should wait for the state to change from STARTING to STARTED or STARTUP_FAILED before giving up. |
static int |
DEFAULT_STOPPING_TIMEOUT
Default number of seconds watch-shutdown should wait for the state to change from STARTED to STOPPING before giving up. |
| Constructor Summary | |
|---|---|
ServerStatusTool(File serverHome)
|
|
| Method Summary | |
|---|---|
void |
init()
If the server appears not to be running, initialize the status file to indicate that the server is not running and has not yet indicated that it is starting (NOT_STARTING). |
static void |
main(String[] args)
|
void |
showStatus()
Show a human-readable form of the latest message in the server status file. |
void |
watchShutdown(int stoppingTimeout,
int shutdownTimeout)
Watch the status file and print details to standard output until the STOPPED or STOPPED_WITH_ERR state is encountered. |
void |
watchStartup(int startingTimeout,
int startupTimeout)
Watch the status file and print details to standard output until the STARTED or STARTUP_FAILED state is encountered. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int DEFAULT_STARTING_TIMEOUT
public static final int DEFAULT_STARTUP_TIMEOUT
public static final int DEFAULT_STOPPING_TIMEOUT
public static final int DEFAULT_SHUTDOWN_TIMEOUT
| Constructor Detail |
|---|
public ServerStatusTool(File serverHome)
throws Exception
Exception| Method Detail |
|---|
public void init()
throws Exception
Exception
public void watchStartup(int startingTimeout,
int startupTimeout)
throws Exception
Exception
public void watchShutdown(int stoppingTimeout,
int shutdownTimeout)
throws Exception
Exception
public void showStatus()
throws Exception
STATE : Some State AS OF : 2006-03-29 06:44:23AM EST DETAIL : Detail line 1, if it exists Detail line 2, if it exists Detail line 3, etc..
Exceptionpublic static void main(String[] args)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||