|
Oracle® Fusion Middleware Java API Reference for Oracle Coherence 12c (12.1.3.0.0) E47890-01 |
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object
com.tangosol.util.Base
com.tangosol.net.DefaultCacheServer
com.tangosol.net.DefaultCacheServer.GarServer
public static class DefaultCacheServer.GarServer
GarServer provides the functionality of DefaultCacheServer under the context of a GAR file. The GAR provided to an instance of GarServer can either be a GAR file complying to the GAR file structure or a directory containing contents complying to the same structure. In the former case the GAR file is extracted to a temporary directory and removed iff a graceful shutdown has occurred.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class com.tangosol.net.DefaultCacheServer |
---|
DefaultCacheServer.GarServer, DefaultCacheServer.ShutdownProcess |
Field Summary | |
---|---|
protected static java.lang.String |
GAR_DIR_PREFIX The prefix used when generating a directory name to contain the exploded artifacts. |
protected ContainerAdapter |
m_adapter A ContainerAdapter to start and stop a gar. |
protected java.io.File |
m_dirGarExploded The directory the gar file was exploded to. |
protected java.io.File |
m_fileGar The GAR file being deployed. |
protected java.lang.String |
m_sAppName The name of the application. |
Fields inherited from class com.tangosol.net.DefaultCacheServer |
---|
DEFAULT_WAIT_MILLIS, m_fServicesStarted, m_fShutdown, m_serviceMon, m_threadShutdown |
Constructor Summary | |
---|---|
DefaultCacheServer.GarServer(java.io.File fileGar) Construct a GarServer using the provided GAR file or directory containing the contents complying to the GAR structure. |
|
DefaultCacheServer.GarServer(java.io.File fileGar, java.lang.String sAppName) Construct a GarServer using the provided GAR file or directory containing the contents complying to the GAR structure. |
Method Summary | |
---|---|
protected void |
checkExplodedDir() Check the number of exploded directories is not considerably more than the number of cluster members on this machine. |
java.lang.ClassLoader |
getClassLoader() Return the ClassLoader used by the GarServer. |
protected void |
setUp(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. |
void |
shutdownServer() Shutdown the DefaultCacheServer. |
protected java.util.Map |
startServicesInternal(boolean fMonitor) Starts the services marked with autostart returning a map of service name to the created service. |
protected void |
stopMonitoring() Ensures the DCS instance has shutdown and the associated ServiceMonitor is no longer monitoring services. |
Methods inherited from class com.tangosol.net.DefaultCacheServer |
---|
ensureInstance, ensureInstance, getConfigurableCacheFactory, getInstance, getServiceBanner, getServiceName, handleEnsureServiceException, initialStartServices, main, monitorServices, shutdown, start, start, startAndMonitor, startDaemon, startDaemon, startDaemon, startDaemon, startDaemon, startServerDaemon, startServerDaemon, startServerDaemon, startServices, startServicesInternal, waitForServiceStart |
Field Detail |
---|
protected static final java.lang.String GAR_DIR_PREFIX
protected ContainerAdapter m_adapter
protected java.io.File m_fileGar
protected java.lang.String m_sAppName
protected java.io.File m_dirGarExploded
Constructor Detail |
---|
public DefaultCacheServer.GarServer(java.io.File fileGar)
fileGar
- file reference to either a GAR file or a directory containing the contents of the GARpublic DefaultCacheServer.GarServer(java.io.File fileGar, java.lang.String sAppName)
fileGar
- file reference to either a GAR file or a directory containing the contents of the GARMethod Detail |
---|
public java.lang.ClassLoader getClassLoader()
Note: iff the GarServer has not been started this method may return null.
protected void setUp(long cWaitMillis)
setUp
in class DefaultCacheServer
cWaitMillis
- the interval, in milliseconds, to monitor servicesprotected java.util.Map startServicesInternal(boolean fMonitor)
startServicesInternal
in class DefaultCacheServer
fMonitor
- whether to monitor the started services to ensure their existenceprotected void stopMonitoring()
stopMonitoring
in class DefaultCacheServer
public void shutdownServer()
shutdownServer
in class DefaultCacheServer
protected void checkExplodedDir()
|
Oracle® Fusion Middleware Java API Reference for Oracle Coherence 12c (12.1.3.0.0) E47890-01 |
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |