public static class DefaultCacheServer.GarServer extends DefaultCacheServer
DefaultCacheServer.GarServer, DefaultCacheServer.SimpleContextBase.LoggingWriter, Base.StackFrame| Modifier and Type | Field and Description |
|---|---|
protected String[] |
f_asTenant
An array of tenant IDs.
|
protected File |
f_fileGar
The GAR file being deployed.
|
protected String |
f_sAppName
The name of the application.
|
protected static String |
GAR_DIR_PREFIX
The prefix used when generating a directory name to contain the exploded artifacts.
|
protected ContainerAdapter[] |
m_aAdapter
An array of ContainerAdapters managed by this GarServer.
|
protected File |
m_dirGarExploded
The directory the gar file was exploded to.
|
DEFAULT_WAIT_MILLIS, m_fServicesStarted, m_fShutdown, m_serviceMon, m_threadShutdown| Constructor and Description |
|---|
GarServer(File fileGar)
Construct a GarServer using the provided GAR file or directory containing the contents complying to the GAR structure.
|
GarServer(File fileGar, String sAppName, String[] asTenant)
Construct a GarServer using the provided GAR file or directory containing the contents complying to the GAR structure.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
checkExplodedDir()
Check the number of exploded directories is not considerably more than the number of cluster members on this machine.
|
List<ContainerAdapter> |
getContainers()
Return the list of
ContainerAdapters activated by this GarServer. |
protected void |
initialStartServices(long cWaitMillis)
Set up any necessary resources including the extraction of a GAR file to a temporary location and the parsing of the GAR's descriptor, create and activate a ContainerAdapter.
|
boolean |
isMonitorStopped()
Return the
ServiceMonitor used by the cache server. |
void |
shutdownServer()
Shutdown the DefaultCacheServer.
|
protected Map<Service,String> |
startServicesInternal()
Starts the services marked with autostart returning a map of a service name to the started service.
|
protected boolean |
stopMonitoring()
Ensures the DCS instance has shutdown and the associated ServiceMonitor is no longer monitoring services.
|
ensureInstance, ensureInstance, getConfigurableCacheFactory, getInstance, getServiceBanner, handleEnsureServiceException, instantiateContext, main, markServicesStarted, monitorServices, reportStarted, shutdown, start, start, startAndMonitor, startDaemon, startDaemon, startDaemon, startDaemon, startDaemon, startServerDaemon, startServerDaemon, startServerDaemon, startServerDaemon, startServices, waitForServiceStartazzert, azzert, azzert, azzertFailed, breakLines, breakLines, capitalize, checkNotEmpty, checkNotNull, checkRange, computeSafeWaitTime, decimalValue, dup, dup, ensureBigDecimal, ensureClassLoader, ensureRuntimeException, ensureRuntimeException, equals, equalsDeep, err, err, err, err, err, escape, formatDateTime, getCallerStackFrame, getCommonMonitor, getCommonMonitor, getCommonMonitor, getContextClassLoader, getContextClassLoader, getDeepMessage, getErr, getLastSafeTimeMillis, getLog, getMaxDecDigits, getMaxHexDigits, getOriginalException, getOut, getRandom, getRandomBinary, getRandomBinary, getRandomString, getSafeTimeMillis, getStackFrame, getStackFrames, getStackTrace, getStackTrace, getThreadFactory, getTimeZone, getUpTimeMillis, hashCode, hexValue, indentString, indentString, isDecimal, isHex, isLogEcho, isOctal, log, log, log, log, log, makeInteger, makeLong, makeThread, mod, mod, octalValue, out, out, out, out, out, pad, parseBandwidth, parseBandwidth, parseDelimitedString, parseHex, parseHex, parseMemorySize, parseMemorySize, parsePercentage, parseTime, parseTime, parseTimeNanos, parseTimeNanos, printStackTrace, randomize, randomize, randomize, read, read, read, read, read, read, read, replace, setErr, setLog, setLogEcho, setOut, sleep, toBandwidthString, toBandwidthString, toCharEscape, toCrc, toCrc, toCrc, toCrc, toCrc, toDecString, toDelimitedString, toDelimitedString, toDelimitedString, toDelimitedString, toHex, toHex, toHexDump, toHexEscape, toHexEscape, toHexEscape, toHexEscape, toHexString, toMemorySizeString, toMemorySizeString, toQuotedCharEscape, toQuotedStringEscape, toSqlString, toString, toString, toStringEscape, toUnicodeEscape, trace, trace, trace, trace, trace, trace, trace, trace, trace, truncateString, truncateString, waitprotected static final String GAR_DIR_PREFIX
protected final File f_fileGar
protected final String f_sAppName
protected final String[] f_asTenant
protected ContainerAdapter[] m_aAdapter
protected File m_dirGarExploded
public GarServer(File fileGar)
fileGar - file reference to either a GAR file or a directory containing the contents of the GARpublic GarServer(File fileGar, String sAppName, String[] asTenant)
fileGar - file reference to either a GAR file or a directory containing the contents of the GARsAppName - (optional) application nameasTenant - (optional) Domain Partition namespublic List<ContainerAdapter> getContainers()
ContainerAdapters activated by this GarServer.ContainerAdapters activated by this GarServerprotected void initialStartServices(long cWaitMillis)
initialStartServices in class DefaultCacheServercWaitMillis - the interval, in milliseconds, to monitor servicesprotected Map<Service,String> startServicesInternal()
startServicesInternal in class DefaultCacheServerprotected boolean stopMonitoring()
stopMonitoring in class DefaultCacheServerpublic void shutdownServer()
shutdownServer in class DefaultCacheServerpublic boolean isMonitorStopped()
ServiceMonitor used by the cache server.isMonitorStopped in class DefaultCacheServerprotected void checkExplodedDir()