|
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_PREFIXThe prefix used when generating a directory name to contain the exploded artifacts. |
protected ContainerAdapter |
m_adapterA ContainerAdapter to start and stop a gar. |
protected java.io.File |
m_dirGarExplodedThe directory the gar file was exploded to. |
protected java.io.File |
m_fileGarThe GAR file being deployed. |
protected java.lang.String |
m_sAppNameThe 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 GAR
public 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 GAR| Method 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 DefaultCacheServercWaitMillis - the interval, in milliseconds, to monitor servicesprotected java.util.Map startServicesInternal(boolean fMonitor)
startServicesInternal in class DefaultCacheServerfMonitor - whether to monitor the started services to ensure their existenceprotected void stopMonitoring()
stopMonitoring in class DefaultCacheServerpublic void shutdownServer()
shutdownServer in class DefaultCacheServerprotected 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 | |||||||