public class ServerStatusFile extends Object
ServerStatusMessages.
The format of the file is simple:
[STATUS] State Date [/STATUS] [STATUS] State Date DetailLine1 DetailLine2 [/STATUS]
| Modifier and Type | Field and Description |
|---|---|
static String |
BEGIN_LINE |
static String |
END_LINE |
static String |
FILENAME |
| Constructor and Description |
|---|
ServerStatusFile(File serverHome) |
| Modifier and Type | Method and Description |
|---|---|
void |
append(ServerState state,
String detail) |
void |
appendError(ServerState state,
Throwable detail) |
void |
clear() |
boolean |
exists() |
ServerStatusMessage[] |
getMessages(ServerStatusMessage afterMessage)
Get all messages in the status file, or only those after the given
message if it is non-null.
|
String |
getPath() |
public static final String FILENAME
public static final String BEGIN_LINE
public static final String END_LINE
public String getPath()
public boolean exists()
public void appendError(ServerState state, Throwable detail) throws Exception
Exceptionpublic void append(ServerState state, String detail) throws Exception
Exceptionpublic ServerStatusMessage[] getMessages(ServerStatusMessage afterMessage) throws Exception
ExceptionCopyright © 2013 DuraSpace. All Rights Reserved.