public abstract class AbstractLauncher<T extends Comparable<T>> extends Object implements Runnable
Comparable
,
Runnable
,
Identifiable
Modifier and Type | Class and Description |
---|---|
static class |
AbstractLauncher.ServiceState<T extends Comparable<T>>
The ServiceState is an immutable type representing the state of the specified Locator at any given moment in time.
|
static class |
AbstractLauncher.Status
The Status enumerated type represents the various lifecycle states of a GemFire service (such as a Cache Server,
a Locator or a Manager).
|
Modifier and Type | Field and Description |
---|---|
static String |
DEFAULT_WORKING_DIRECTORY |
static String |
SIGNAL_HANDLER_REGISTRATION_SYSTEM_PROPERTY |
Constructor and Description |
---|
AbstractLauncher() |
Modifier and Type | Method and Description |
---|---|
abstract String |
getLogFileName()
Gets the name of the log file used to log information about this GemFire service.
|
String |
getMember()
Gets the name or ID of the member in the GemFire distributed system.
|
String |
getMemberId()
Gets the ID of the member in the GemFire distributed system as determined and assigned by GemFire when the member
process joins the distributed system.
|
String |
getMemberName()
Gets the name of the member in the GemFire distributed system as determined by the 'name' GemFire property.
|
abstract Integer |
getPid()
Gets the user-specified process ID (PID) of the running GemFire service that AbstractLauncher implementations
can use to determine status, or stop the service.
|
abstract String |
getServiceName()
Gets the name of the GemFire service.
|
String |
getWorkingDirectory()
Gets the working directory pathname in which the process will be run.
|
boolean |
isDebugging()
Determines whether the Locator launcher is in debug mode.
|
boolean |
isRunning()
Determines whether the Locator referenced by this launcher is running.
|
void |
setDebug(boolean debug)
Sets the debug mode of the GemFire launcher class.
|
String |
version()
Gets the version of GemFire currently running.
|
public static final String DEFAULT_WORKING_DIRECTORY
public static final String SIGNAL_HANDLER_REGISTRATION_SYSTEM_PROPERTY
public boolean isDebugging()
setDebug(boolean)
public final void setDebug(boolean debug)
debug
- a boolean used to enable or disable debug mode.isDebugging()
public boolean isRunning()
public abstract String getLogFileName()
public String getMember()
getMemberName()
,
getMemberId()
public String getMemberId()
public String getMemberName()
public abstract Integer getPid()
public abstract String getServiceName()
public String getWorkingDirectory()
public String version()
Copyright © 1997-2017 Pivotal Software, Inc. All rights reserved.