|
GemFire 7.0 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.gemstone.gemfire.distributed.AbstractLauncher<String>
com.gemstone.gemfire.distributed.ServerLauncher
public final class ServerLauncher
The ServerLauncher class is a launcher class with main method to start a GemFire Server (implying a GemFire Cache server process).
LocatorLauncher,
Serialized Form| Nested Class Summary | |
|---|---|
static class |
ServerLauncher.Builder
The Builder class, modeled after the Builder creational design pattern, is used to construct a properly configured and initialized instance of the ServerLauncher to control and run GemFire servers (in particular, cache servers). |
static class |
ServerLauncher.Command
An enumerated type representing valid commands to the Server launcher. |
static class |
ServerLauncher.ServerState
The ServerState is an immutable type representing the state of the specified Locator at any given moment in time. |
| Nested classes/interfaces inherited from class com.gemstone.gemfire.distributed.AbstractLauncher |
|---|
AbstractLauncher.ServiceState<T extends Comparable<T>>, AbstractLauncher.Status |
| Field Summary | |
|---|---|
static String |
DEFAULT_SERVER_PID_FILE
|
| Fields inherited from class com.gemstone.gemfire.distributed.AbstractLauncher |
|---|
DEFAULT_WORKING_DIRECTORY, SIGNAL_HANLDER_REGISTRATION_SYSTEM_PROPERTY |
| Method Summary | |
|---|---|
ServerLauncher.Command |
getCommand()
Get the Server launcher command used to invoke the Server. |
String |
getId()
Gets an identifier that uniquely identifies and represents the Server associated with this launcher. |
static ServerLauncher |
getInstance()
Gets the instance of the ServerLauncher used to launch the GemFire Cache Server, or null if this VM does not have an instance of ServerLauncher indicating no GemFire Cache Server is running. |
String |
getLogFileName()
Gets the name of the log file used to log information about this Server. |
String |
getMemberName()
Gets the name of this member (this Server) in the GemFire distributed system as determined by the 'name' GemFire property. |
Integer |
getPid()
Gets the user-specified process ID (PID) of the running Server that ServerLauncher uses to issue status and stop commands to the Server. |
InetAddress |
getServerBindAddress()
Gets the IP address to which the Server is bound listening for and accepting cache client connections. |
String |
getServerBindAddressAsString()
Gets the host, as either hostname or IP address, on which the Server was bound and running. |
Integer |
getServerPort()
Gets the port on which the Server is listening for cache client connections. |
String |
getServerPortAsString()
Gets the server port on which the Server is listening for client requests represented as a String value. |
static ServerLauncher.ServerState |
getServerState()
Gets the ServerState for this process or null if this process was not launched using this VM's ServerLauncher reference . |
String |
getServiceName()
Gets the name for a GemFire Server. |
String |
getWorkingDirectory()
Gets the working directory pathname in which the Server will be run. |
void |
help(ServerLauncher.Command command)
Displays help for the specified Server launcher command to standard err. |
boolean |
isAssignBuckets()
Determines whether buckets should be assigned to partitioned regions in the cache upon Server start. |
boolean |
isDisableDefaultServer()
Determines whether a default cache server will be added when the GemFire Server comes online. |
boolean |
isForcing()
Determines whether the PID file is allowed to be overwritten when the Server is started and a PID file already exists in the Server's specified working directory. |
boolean |
isHelping()
Determines whether this launcher will be used to display help information. |
boolean |
isRebalancing()
Determines whether a rebalance operation on the cache will occur upon starting the GemFire server using this launcher. |
boolean |
isRedirectingOutput()
Determines whether this launcher will redirect output to system logs when starting a new Locator process. |
static void |
main(String... args)
Launches a GemFire Server from the command-line configured with the given arguments. |
void |
run()
A Runnable method used to invoke the GemFire server (cache server) with the specified command. |
ServerLauncher.ServerState |
start()
Invokes the 'start' command and operation to startup a GemFire server (a cache server). |
ServerLauncher.ServerState |
status()
|
ServerLauncher.ServerState |
stop()
|
void |
usage()
Displays usage information on the proper invocation of the ServerLauncher from the command-line to standard err. |
| Methods inherited from class com.gemstone.gemfire.distributed.AbstractLauncher |
|---|
getMember, getMemberId, isDebugging, isRunning, setDebug, version |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String DEFAULT_SERVER_PID_FILE
| Method Detail |
|---|
public static void main(String... args)
args - the command-line arguments used to configure the GemFire Server at runtime.public static ServerLauncher getInstance()
public static ServerLauncher.ServerState getServerState()
public final String getId()
getServerBindAddressAsString(),
getServerPortAsString()public ServerLauncher.Command getCommand()
ServerLauncher.Commandpublic boolean isAssignBuckets()
public boolean isDisableDefaultServer()
public boolean isForcing()
public boolean isHelping()
ServerLauncher.Commandpublic boolean isRebalancing()
public boolean isRedirectingOutput()
public String getLogFileName()
getLogFileName in class AbstractLauncher<String>public String getMemberName()
getMemberName in class AbstractLauncher<String>public Integer getPid()
getPid in class AbstractLauncher<String>public InetAddress getServerBindAddress()
public String getServerBindAddressAsString()
InetAddress,
getServerBindAddress()public Integer getServerPort()
public String getServerPortAsString()
getServerPort()public String getServiceName()
getServiceName in class AbstractLauncher<String>public String getWorkingDirectory()
getWorkingDirectory in class AbstractLauncher<String>public void help(ServerLauncher.Command command)
command - the Server launcher command in which to display help information.usage()public void usage()
help(com.gemstone.gemfire.distributed.ServerLauncher.Command)public void run()
Runnablepublic ServerLauncher.ServerState start()
run()public ServerLauncher.ServerState status()
public ServerLauncher.ServerState stop()
|
GemFire 7.0 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||