|
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.ServerLauncher.Builder
public 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).
| Constructor Summary | |
|---|---|
ServerLauncher.Builder()
Default constructor used to create an instance of the Builder class for programmatical access. |
|
ServerLauncher.Builder(String... args)
Constructor used to create and configure an instance of the Builder class with the specified arguments, passed in from the command-line when launching an instance of this class from the command-line using the Java launcher. |
|
| Method Summary | |
|---|---|
ServerLauncher |
build()
Validates the Builder configuration settings and then constructs an instance of the ServerLauncher class to invoke operations on a GemFire Server. |
Boolean |
getAssignBuckets()
Determines whether buckets should be assigned to partitioned regions in the cache upon Server start. |
ServerLauncher.Command |
getCommand()
Gets the Server launcher command used during the invocation of the ServerLauncher. |
Boolean |
getDebug()
Determines whether the new instance of the ServerLauncher will be set to debug mode. |
Boolean |
getDisableDefaultServer()
Determines whether a default cache server will be added when the GemFire Server comes online. |
Boolean |
getForce()
Gets the boolean value used by the Server to determine if it should overwrite the PID file if it already exists. |
Boolean |
getHelp()
Determines whether the new instance of the ServerLauncher will be used to output help information for either a specific command, or for using ServerLauncher in general. |
String |
getMemberName()
Gets the member name of this Server in GemFire. |
Integer |
getPid()
Gets the process ID (PID) of the running Server indicated by the user as an argument to the ServerLauncher. |
Boolean |
getRebalance()
Determines whether a rebalance operation on the cache will occur upon starting the GemFire server. |
Boolean |
getRedirectOutput()
Determines whether the new instance of LocatorLauncher will redirect output to system logs when starting a Locator. |
InetAddress |
getServerBindAddress()
Gets the IP address to which the Server will be bound listening for and accepting cache client connections in a client/server topology. |
Integer |
getServerPort()
Gets the port on which the Server will listen for and accept cache client connections in a client/server topology. |
String |
getWorkingDirectory()
Gets the working directory pathname in which the Server will be ran. |
ServerLauncher.Builder |
setAssignBuckets(Boolean assignBuckets)
Sets whether buckets should be assigned to partitioned regions in the cache upon Server start. |
ServerLauncher.Builder |
setCommand(ServerLauncher.Command command)
Sets the Sever launcher command used during the invocation of the ServerLauncher |
ServerLauncher.Builder |
setDebug(Boolean debug)
Sets whether the new instance of the ServerLauncher will be set to debug mode. |
ServerLauncher.Builder |
setDisableDefaultServer(Boolean disableDefaultServer)
Sets a boolean value indicating whether to add a default cache when the GemFire Server comes online. |
ServerLauncher.Builder |
setForce(Boolean force)
Sets the boolean value used by the Server to determine if it should overwrite the PID file if it already exists. |
ServerLauncher.Builder |
setHelp(Boolean help)
Sets whether the new instance of ServerLauncher will be used to output help information for either a specific command, or for using ServerLauncher in general. |
ServerLauncher.Builder |
setMemberName(String memberName)
Sets the member name of the Server in GemFire. |
ServerLauncher.Builder |
setPid(Integer pid)
Sets the process ID (PID) of the running Server indicated by the user as an argument to the ServerLauncher. |
ServerLauncher.Builder |
setRebalance(Boolean rebalance)
Set a boolean value indicating whether a rebalance operation on the cache should occur upon starting the GemFire server. |
ServerLauncher.Builder |
setRedirectOutput(Boolean redirectOutput)
Sets whether the new instance of LocatorLauncher will redirect output to system logs when starting a Locator. |
ServerLauncher.Builder |
setServerBindAddress(String serverBindAddress)
Sets the IP address to which the Server will be bound listening for and accepting cache client connections in a client/server topology. |
ServerLauncher.Builder |
setServerPort(Integer serverPort)
Sets the port on which the Server will listen for and accept cache client connections in a client/server topology. |
ServerLauncher.Builder |
setWorkingDirectory(String workingDirectory)
Sets the working directory in which the Server will be ran. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ServerLauncher.Builder()
public ServerLauncher.Builder(String... args)
args - the array of arguments used to configure the Builder.parseArguments(String...)| Method Detail |
|---|
public ServerLauncher.Command getCommand()
setCommand(com.gemstone.gemfire.distributed.ServerLauncher.Command),
ServerLauncher.Commandpublic ServerLauncher.Builder setCommand(ServerLauncher.Command command)
command - the targeted Server launcher command used during the invocation (run) of ServerLauncher.
getCommand(),
ServerLauncher.Commandpublic Boolean getAssignBuckets()
setAssignBuckets(Boolean)public ServerLauncher.Builder setAssignBuckets(Boolean assignBuckets)
assignBuckets - a boolean indicating if buckets should be assigned upon Server start.
getAssignBuckets()public Boolean getDebug()
setDebug(Boolean)public ServerLauncher.Builder setDebug(Boolean debug)
debug - a boolean value indicating whether debug mode is to be enabled or disabled.
getDebug()public Boolean getDisableDefaultServer()
setDisableDefaultServer(Boolean)public ServerLauncher.Builder setDisableDefaultServer(Boolean disableDefaultServer)
disableDefaultServer - a boolean value indicating whether to add a default cache server.
getDisableDefaultServer()public Boolean getForce()
LocalProcessLauncher,
setForce(Boolean)public ServerLauncher.Builder setForce(Boolean force)
force - a boolean value indicating whether to overwrite the PID file when it already exists.
LocalProcessLauncher,
getForce()public Boolean getHelp()
setHelp(Boolean)public ServerLauncher.Builder setHelp(Boolean help)
help - a boolean indicating whether help information is to be displayed during invocation of ServerLauncher.
getHelp()public Boolean getRebalance()
setRebalance(Boolean)public ServerLauncher.Builder setRebalance(Boolean rebalance)
rebalance - a boolean indicating if the cache will be rebalanced when the GemFire server starts.
getRebalance()public String getMemberName()
setMemberName(String)public ServerLauncher.Builder setMemberName(String memberName)
memberName - a String indicating the member name of this Server in GemFire.
IllegalArgumentException - if the member name is invalid.getMemberName()public Integer getPid()
setPid(Integer)public ServerLauncher.Builder setPid(Integer pid)
pid - a user specified Integer value indicating the process ID of the running Server.
IllegalArgumentException - if the process ID (PID) is not valid (greater than zero if not null).getPid()public Boolean getRedirectOutput()
setRedirectOutput(Boolean)public ServerLauncher.Builder setRedirectOutput(Boolean redirectOutput)
redirectOutput - a boolean value indicating if output will be redirected to system logs when starting
a Locator.
getRedirectOutput()public InetAddress getServerBindAddress()
setServerBindAddress(String)public ServerLauncher.Builder setServerBindAddress(String serverBindAddress)
serverBindAddress - a String specifying the IP address or hostname that the Server will be bound to listen
for and accept cache client connections in a client/server topology.
IllegalArgumentException - wrapping the UnknownHostException if the IP address or hostname for the
server bind address is unknown.getServerBindAddress()public Integer getServerPort()
setServerPort(Integer)public ServerLauncher.Builder setServerPort(Integer serverPort)
serverPort - an Integer value specifying the port the Server will listen on and accept cache client
connections in a client/server topology.
IllegalArgumentException - if the port number is not valid.getServerPort()public String getWorkingDirectory()
setWorkingDirectory(String)public ServerLauncher.Builder setWorkingDirectory(String workingDirectory)
workingDirectory - a String indicating the pathname of the directory in which the Server will be ran.
IllegalArgumentException - wrapping a FileNotFoundException if the working directory pathname cannot be
found.getWorkingDirectory(),
FileNotFoundExceptionpublic ServerLauncher build()
validate(),
ServerLauncher
|
GemFire 7.0 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||