public abstract static class AbstractLauncher.ServiceState<T extends Comparable<T>> extends Object
Modifier and Type | Field and Description |
---|---|
protected static String |
JSON_CLASSPATH |
protected static String |
JSON_GEMFIREVERSION |
protected static String |
JSON_HOST |
protected static String |
JSON_JAVAVERSION |
protected static String |
JSON_JVMARGUMENTS |
protected static String |
JSON_LOCATION |
protected static String |
JSON_LOGFILE |
protected static String |
JSON_MEMBERNAME |
protected static String |
JSON_PID |
protected static String |
JSON_PORT |
protected static String |
JSON_STATUS |
protected static String |
JSON_STATUSMESSAGE |
protected static String |
JSON_TIMESTAMP |
protected static String |
JSON_UPTIME |
protected static String |
JSON_WORKINGDIRECTORY |
Modifier | Constructor and Description |
---|---|
protected |
ServiceState(AbstractLauncher.Status status,
String statusMessage,
long timestamp,
String serviceLocation,
Integer pid,
Long uptime,
String workingDirectory,
List<String> jvmArguments,
String classpath,
String gemfireVersion,
String javaVersion,
String logFile,
String host,
String port,
String memberName) |
Modifier and Type | Method and Description |
---|---|
protected static String |
format(Date timestamp) |
String |
getClasspath()
Gets the Java classpath used when launching the GemFire service.
|
String |
getGemFireVersion()
Gets the version of GemFire used to launch and run the GemFire service.
|
String |
getHost()
Gets the host or IP address for the process and its service.
|
String |
getJavaVersion()
Gets the version of Java used to launch and run the GemFire service.
|
List<String> |
getJvmArguments()
Gets the arguments passed to the JVM process that is running the GemFire service.
|
String |
getLogFile()
Gets the path of the log file for the process.
|
String |
getMemberName()
Gets GemFire member's name for the process.
|
Integer |
getPid()
Gets the process ID of the running GemFire service if known, otherwise returns null.
|
String |
getPort()
Gets the port for the process and its service.
|
String |
getServiceLocation()
Gets the location of the GemFire service (usually the host in combination with the port).
|
protected abstract String |
getServiceName()
Gets the name of the GemFire service.
|
AbstractLauncher.Status |
getStatus()
Gets the state of the GemFire service.
|
String |
getStatusMessage()
Gets description of the the service's current state.
|
Timestamp |
getTimestamp()
The date and time the GemFire service was last in this state.
|
Long |
getUptime()
Gets the amount of time in milliseconds that the JVM process with the GemFire service has
been running.
|
String |
getWorkingDirectory()
Gets the directory in which the GemFire service is running.
|
protected static Integer |
identifyPid() |
static boolean |
isStartingNotRespondingOrNull(AbstractLauncher.ServiceState serviceState) |
boolean |
isStartingOrNotResponding() |
boolean |
isVmWithProcessIdRunning() |
protected static String |
toDaysHoursMinutesSeconds(Long milliseconds) |
String |
toJson()
Marshals this state object into a JSON String.
|
String |
toString()
Gets a String describing the state of the GemFire service.
|
protected String |
toString(Date dateTime) |
protected String |
toString(Number value) |
protected String |
toString(Object... values) |
protected String |
toString(String value) |
protected static final String JSON_CLASSPATH
protected static final String JSON_GEMFIREVERSION
protected static final String JSON_HOST
protected static final String JSON_JAVAVERSION
protected static final String JSON_JVMARGUMENTS
protected static final String JSON_LOCATION
protected static final String JSON_LOGFILE
protected static final String JSON_MEMBERNAME
protected static final String JSON_PID
protected static final String JSON_PORT
protected static final String JSON_STATUS
protected static final String JSON_STATUSMESSAGE
protected static final String JSON_TIMESTAMP
protected static final String JSON_UPTIME
protected static final String JSON_WORKINGDIRECTORY
protected ServiceState(AbstractLauncher.Status status, String statusMessage, long timestamp, String serviceLocation, Integer pid, Long uptime, String workingDirectory, List<String> jvmArguments, String classpath, String gemfireVersion, String javaVersion, String logFile, String host, String port, String memberName)
protected static Integer identifyPid()
public String toJson()
public static boolean isStartingNotRespondingOrNull(AbstractLauncher.ServiceState serviceState)
public boolean isStartingOrNotResponding()
public boolean isVmWithProcessIdRunning()
public String getClasspath()
with 'java.class.path'
public String getGemFireVersion()
public String getJavaVersion()
with 'java.verson'
public List<String> getJvmArguments()
RuntimeMXBean.getInputArguments()
public String getMemberName()
public Integer getPid()
public String getServiceLocation()
protected abstract String getServiceName()
public AbstractLauncher.Status getStatus()
AbstractLauncher.Status
public String getStatusMessage()
public Timestamp getTimestamp()
Timestamp
public Long getUptime()
RuntimeMXBean.getUptime()
public String getWorkingDirectory()
public String getLogFile()
public String getHost()
public String getPort()
public String toString()