Package org.apache.geode.distributed
Class LocatorLauncher.LocatorState
java.lang.Object
org.apache.geode.distributed.AbstractLauncher.ServiceState<String>
org.apache.geode.distributed.LocatorLauncher.LocatorState
- Enclosing class:
- LocatorLauncher
The LocatorState is an immutable type representing the state of the specified Locator at any
given moment in time. The state of the Locator is assessed at the exact moment an instance of
this class is constructed.
- See Also:
-
Field Summary
Fields inherited from class org.apache.geode.distributed.AbstractLauncher.ServiceState
JSON_CLASSPATH, JSON_GEMFIREVERSION, JSON_HOST, JSON_JAVAVERSION, JSON_JVMARGUMENTS, JSON_LOCATION, JSON_LOGFILE, JSON_MEMBERNAME, JSON_PID, JSON_PORT, JSON_STATUS, JSON_STATUSMESSAGE, JSON_TIMESTAMP, JSON_UPTIME, JSON_WORKINGDIRECTORY -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedLocatorState(AbstractLauncher.Status status, String statusMessage, long timestamp, String locatorLocation, Integer pid, Long uptime, String workingDirectory, List<String> jvmArguments, String classpath, String gemfireVersion, String javaVersion, String logFile, String host, String port, String memberName) LocatorState(LocatorLauncher launcher, AbstractLauncher.Status status) LocatorState(LocatorLauncher launcher, AbstractLauncher.Status status, String errorMessage) -
Method Summary
Modifier and TypeMethodDescriptionstatic LocatorLauncher.LocatorStatefromDirectory(String workingDirectory, String memberName) static LocatorLauncher.LocatorStateUnmarshals a LocatorState instance from the JSON String.protected StringGets the name of the GemFire service.Methods inherited from class org.apache.geode.distributed.AbstractLauncher.ServiceState
format, getClasspath, getGemFireVersion, getHost, getJavaVersion, getJvmArguments, getLogFile, getMemberName, getPid, getPort, getServiceLocation, getStatus, getStatusMessage, getTimestamp, getUptime, getWorkingDirectory, identifyPid, isStartingNotRespondingOrNull, isStartingOrNotResponding, isVmWithProcessIdRunning, toDaysHoursMinutesSeconds, toJson, toString, toString, toString, toString, toString
-
Constructor Details
-
LocatorState
-
LocatorState
-
LocatorState
protected LocatorState(AbstractLauncher.Status status, String statusMessage, long timestamp, String locatorLocation, Integer pid, Long uptime, String workingDirectory, List<String> jvmArguments, String classpath, String gemfireVersion, String javaVersion, String logFile, String host, String port, String memberName)
-
-
Method Details
-
fromJson
Unmarshals a LocatorState instance from the JSON String.- Parameters:
json- a JSON String- Returns:
- a LocatorState value unmarshalled from the JSON String.
-
fromDirectory
public static LocatorLauncher.LocatorState fromDirectory(String workingDirectory, String memberName) -
getServiceName
Description copied from class:AbstractLauncher.ServiceStateGets the name of the GemFire service.- Specified by:
getServiceNamein classAbstractLauncher.ServiceState<String>- Returns:
- a String indicating the name of the GemFire service.
-