public class GfxdServerLauncher
extends com.gemstone.gemfire.internal.cache.CacheServerLauncher
CacheServerLauncher class and initializes Gemfire using JDBC
Connection class.| Modifier and Type | Field and Description |
|---|---|
protected Properties |
bootProps |
protected static long |
DEFAULT_HEAPSIZE_GB |
protected static long |
DEFAULT_HEAPSIZE_SMALL_GB |
protected static String |
HEAP_SIZE |
protected static String |
INITIAL_HEAP |
protected String |
jvmVendor |
protected static String |
LWC_BIND_ADDRESS_ARG |
protected static String |
LWC_PORT_ARG |
protected static String |
MAX_HEAP |
protected static String |
OFF_HEAP_SIZE |
protected boolean |
processedDefaultGCParams |
protected static String |
RUN_NETSERVER |
protected static String |
THRIFT_SERVER_ADDRESS |
protected static String |
THRIFT_SERVER_PORT |
protected static String |
WAIT_FOR_SYNC |
protected boolean |
waitForData
wait for startup to complete, or exit once region GII wait begins
|
ASSIGN_BUCKETS, baseName, CLASSPATH, CRITICAL_HEAP_PERCENTAGE, CRITICAL_OFF_HEAP_PERCENTAGE, defaultLogFileName, DIR, DISABLE_DEFAULT_SERVER, disableDefaultServer, DONT_EXIT_AFTER_LAUNCH, ENVARGS, EVICTION_HEAP_PERCENTAGE, EVICTION_OFF_HEAP_PERCENTAGE, initialHeapSize, instance, isDedicatedCacheServer, LOCK_MEMORY, logger, MAX_PERM_DEFAULT, MAX_PERM_SIZE, maxHeapSize, maxPermGenSize, offHeapSize, oldErr, oldOut, pidFileName, PROPERTIES, REBALANCE, RUNNING, SERVER_BIND_ADDRESS, SERVER_PORT, serverBindAddress, serverPort, SHUTDOWN, SHUTDOWN_PENDING, SHUTDOWN_WAIT_TIME, STANDBY, STARTING, startLogFileName, status, STATUS_WAIT_TIME, statusName, useThriftServerDefault, VMARGS, WAITING, workingDir| Constructor and Description |
|---|
GfxdServerLauncher(String baseName) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addToServerCommand(List<String> cmds,
Map<String,Object> options) |
protected boolean |
checkStatusForWait(com.gemstone.gemfire.internal.cache.CacheServerLauncher.Status status) |
protected com.gemstone.gemfire.distributed.internal.InternalDistributedSystem |
connect(Properties props,
Map<String,Object> options) |
protected com.gemstone.gemfire.cache.Cache |
createCache(com.gemstone.gemfire.distributed.internal.InternalDistributedSystem system,
Map<String,Object> options) |
protected void |
disconnect(com.gemstone.gemfire.cache.Cache cache) |
protected String |
getBaseName(String name) |
protected com.pivotal.gemfirexd.FabricService |
getFabricServiceInstance() |
static Set<String> |
getGFEPropNames()
Get all the known GFE property names.
|
protected String |
getLWCAddressArgName() |
protected String |
getLWCPortArgName() |
protected String |
getThriftAddressArgName() |
protected String |
getThriftPortArgName() |
protected void |
listAddOnArgs(boolean startsWithGemfire,
boolean startsWithGemfirexd,
boolean isPrefixHyphen) |
protected void |
logSevere(String msg,
Throwable t) |
protected void |
logWarning(String msg,
Throwable t) |
static void |
main(String[] args)
Main method that parses the command line and performs an will start, stop,
or get the status of a fabric server.
|
protected List<String> |
postProcessOptions(List<String> incomingVMArgs,
Map<String,Object> map)
if
heap-size is mentioned in the
startup arguments and started within Sun JVM, following GC options are
enabled by the script. |
void |
printCommandLine(com.gemstone.gemfire.i18n.LogWriterI18n logger) |
protected void |
printCommandLine(String[] commandLine,
Map<String,String> env) |
protected com.gemstone.gemfire.distributed.internal.DistributionConfig |
printDiscoverySettings(Map<String,Object> options,
Properties props) |
protected boolean |
printLaunchCommand() |
protected void |
printStartMessage(Map<String,Object> options,
Properties props,
int pid) |
protected void |
printUsage(String usageOutput,
int maxLines) |
static Properties |
processProperties(Properties props,
Map<String,Object> options,
String defaultLogFileName) |
protected void |
processServerEnv(Properties props) |
protected void |
processStartArg(String key,
String value,
Map<String,Object> m,
List<String> vmArgs,
Properties props) |
protected void |
processStartOption(String key,
String value,
Map<String,Object> m,
List<String> vmArgs,
Map<String,String> envArgs,
Properties props) |
protected void |
processUnknownStartOption(String key,
String value,
Map<String,Object> m,
List<String> vmArgs,
Properties props) |
protected void |
readPassword(Map<String,String> envArgs) |
protected void |
run(String[] args)
Main method that parses the command line and performs an will start, stop,
or get the status of a fabric server.
|
protected boolean |
setDefaultHeapSize() |
protected void |
setRunningStatus(com.gemstone.gemfire.internal.cache.CacheServerLauncher.Status stat,
com.gemstone.gemfire.distributed.internal.InternalDistributedSystem system) |
void |
setWaitingStatus(String regionPath,
Set<com.gemstone.gemfire.internal.cache.persistence.PersistentMemberID> membersToWaitFor,
Set<Integer> missingBuckets,
com.gemstone.gemfire.internal.cache.persistence.PersistentMemberID myId,
String message) |
protected void |
startAdditionalServices(com.gemstone.gemfire.cache.Cache cache,
Map<String,Object> options,
Properties props) |
protected void |
startServerVM(Properties props)
do the actual startup of the GemFireXD VM
|
protected void |
stopAdditionalServices() |
protected void |
usage()
Prints usage information of this program.
|
createStatus, createStatus, getCriticalHeapPercent, getCriticalOffHeapPercent, getCurrentInstance, getDisableDefaultServer, getEvictionHeapPercent, getEvictionOffHeapPercent, getLogFilePath, getProcessId, getServerBindAddress, getServerOptions, getServerPort, getStartOptions, getStatus, getStopOptions, isExistingProcess, isLoggingToStdOut, makeDaemon, pollCacheServerForShutdown, processDirOption, readStatus, redirectOutputToLogFile, restoreStdOut, running, server, setServerError, spinReadStatus, start, startRebalanceFactory, status, stop, waitForRunning, waitForRunning, writeStatusprotected static final String HEAP_SIZE
protected static final String OFF_HEAP_SIZE
protected static final String INITIAL_HEAP
protected static final String MAX_HEAP
protected static final long DEFAULT_HEAPSIZE_GB
protected static final long DEFAULT_HEAPSIZE_SMALL_GB
protected static final String RUN_NETSERVER
protected static final String LWC_BIND_ADDRESS_ARG
protected static final String LWC_PORT_ARG
protected static final String WAIT_FOR_SYNC
protected static final String THRIFT_SERVER_ADDRESS
protected static final String THRIFT_SERVER_PORT
protected final String jvmVendor
protected Properties bootProps
protected boolean waitForData
protected boolean processedDefaultGCParams
public GfxdServerLauncher(String baseName)
protected void usage()
throws IOException
usage in class com.gemstone.gemfire.internal.cache.CacheServerLauncherIOExceptionprotected final void printUsage(String usageOutput, int maxLines) throws IOException
IOExceptionprotected com.gemstone.gemfire.distributed.internal.InternalDistributedSystem connect(Properties props, Map<String,Object> options)
connect in class com.gemstone.gemfire.internal.cache.CacheServerLauncherpublic static Properties processProperties(Properties props, Map<String,Object> options, String defaultLogFileName)
protected void startServerVM(Properties props) throws Exception
Exceptionprotected com.pivotal.gemfirexd.FabricService getFabricServiceInstance()
throws Exception
Exceptionprotected com.gemstone.gemfire.cache.Cache createCache(com.gemstone.gemfire.distributed.internal.InternalDistributedSystem system,
Map<String,Object> options)
createCache in class com.gemstone.gemfire.internal.cache.CacheServerLauncherprotected void disconnect(com.gemstone.gemfire.cache.Cache cache)
disconnect in class com.gemstone.gemfire.internal.cache.CacheServerLauncherprotected boolean setDefaultHeapSize()
protected void processStartArg(String key, String value, Map<String,Object> m, List<String> vmArgs, Properties props) throws Exception
processStartArg in class com.gemstone.gemfire.internal.cache.CacheServerLauncherExceptionprotected void processStartOption(String key, String value, Map<String,Object> m, List<String> vmArgs, Map<String,String> envArgs, Properties props) throws Exception
processStartOption in class com.gemstone.gemfire.internal.cache.CacheServerLauncherExceptionprotected void processServerEnv(Properties props) throws Exception
processServerEnv in class com.gemstone.gemfire.internal.cache.CacheServerLauncherExceptionprotected void readPassword(Map<String,String> envArgs) throws Exception
Exceptionprotected List<String> postProcessOptions(List<String> incomingVMArgs, Map<String,Object> map)
if heap-size is mentioned in the
startup arguments and started within Sun JVM, following GC options are
enabled by the script.
UseParNewGC)UseConcMarkSweepGC)CMSInitiatingOccupancyFraction) from
default 68% to 50%.On frequent full garbage collections with above options consider following GC options.
For beyond 1 GB of physical memory and initial-heap/max-heap padding is enough consider additional options.
MaxNewSize=24mNewSize=24mCMSParallelRemarkEnabled
postProcessOptions in class com.gemstone.gemfire.internal.cache.CacheServerLauncherincomingVMArgs - vm argument list.map - additional server arguments of command builder.protected String getLWCAddressArgName()
protected String getLWCPortArgName()
protected String getThriftAddressArgName()
protected String getThriftPortArgName()
protected void processUnknownStartOption(String key, String value, Map<String,Object> m, List<String> vmArgs, Properties props)
processUnknownStartOption in class com.gemstone.gemfire.internal.cache.CacheServerLauncherpublic static void main(String[] args)
protected String getBaseName(String name)
getBaseName in class com.gemstone.gemfire.internal.cache.CacheServerLauncherprotected void run(String[] args)
protected void listAddOnArgs(boolean startsWithGemfire,
boolean startsWithGemfirexd,
boolean isPrefixHyphen)
protected void addToServerCommand(List<String> cmds, Map<String,Object> options)
addToServerCommand in class com.gemstone.gemfire.internal.cache.CacheServerLauncherCacheServerLauncher.addToServerCommand(java.util.List<java.lang.String>, java.util.Map<java.lang.String, java.lang.Object>)protected void printStartMessage(Map<String,Object> options, Properties props, int pid) throws Exception
printStartMessage in class com.gemstone.gemfire.internal.cache.CacheServerLauncherExceptionprotected com.gemstone.gemfire.distributed.internal.DistributionConfig printDiscoverySettings(Map<String,Object> options, Properties props) throws SQLException
SQLExceptionprotected void startAdditionalServices(com.gemstone.gemfire.cache.Cache cache,
Map<String,Object> options,
Properties props)
throws Exception
startAdditionalServices in class com.gemstone.gemfire.internal.cache.CacheServerLauncherExceptionCacheServerLauncher.startAdditionalServices(com.gemstone.gemfire.cache.Cache, java.util.Map<java.lang.String, java.lang.Object>, java.util.Properties)protected void setRunningStatus(com.gemstone.gemfire.internal.cache.CacheServerLauncher.Status stat,
com.gemstone.gemfire.distributed.internal.InternalDistributedSystem system)
setRunningStatus in class com.gemstone.gemfire.internal.cache.CacheServerLauncherpublic void setWaitingStatus(String regionPath, Set<com.gemstone.gemfire.internal.cache.persistence.PersistentMemberID> membersToWaitFor, Set<Integer> missingBuckets, com.gemstone.gemfire.internal.cache.persistence.PersistentMemberID myId, String message)
setWaitingStatus in class com.gemstone.gemfire.internal.cache.CacheServerLauncherprotected void stopAdditionalServices()
throws Exception
stopAdditionalServices in class com.gemstone.gemfire.internal.cache.CacheServerLauncherExceptionCacheServerLauncher.stopAdditionalServices()protected boolean checkStatusForWait(com.gemstone.gemfire.internal.cache.CacheServerLauncher.Status status)
checkStatusForWait in class com.gemstone.gemfire.internal.cache.CacheServerLauncherprotected boolean printLaunchCommand()
printLaunchCommand in class com.gemstone.gemfire.internal.cache.CacheServerLauncherprotected void printCommandLine(String[] commandLine, Map<String,String> env) throws Exception
printCommandLine in class com.gemstone.gemfire.internal.cache.CacheServerLauncherExceptionpublic void printCommandLine(com.gemstone.gemfire.i18n.LogWriterI18n logger)
printCommandLine in class com.gemstone.gemfire.internal.cache.CacheServerLauncherCopyright © 2010-2015 Pivotal Software, Inc. All rights reserved.