|
Oracle® Coherence Java API Reference v3.5 E14977-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
public class DefaultCacheServer
DefaultCacheServer is a simple command line facility that starts all services that are declared as requiring an "autostart" in the configurable factory XML descriptor.
| Nested Class Summary | |
|---|---|
protected static class |
DefaultCacheServer.ShutdownProcessShutdownHook implementation. |
| Field Summary | |
|---|---|
protected static boolean |
s_fShutdownFlag that indicates whether of not the shutdown was initiated. |
| Constructor Summary | |
|---|---|
DefaultCacheServer() |
|
| Method Summary | |
|---|---|
static void |
main(java.lang.String[] asArg)Entry point: start the cache server using the specified path to the "cache-config.dtd" compliant configuration file and checking the service status every N seconds (keep alive interval). |
static void |
shutdown()Shutdown the cache server. |
static java.util.List |
start()Start all services that are declared as requiring an "autostart" in the default configurable factory XML descriptor. |
static java.util.List |
start(ConfigurableCacheFactory factory)Start all services that are declared as requiring an "autostart" in the configurable factory XML descriptor. |
static void |
startDaemon()Start the cache server on a dedicated daemon thread. |
| Field Detail |
|---|
protected static volatile boolean s_fShutdown
| Constructor Detail |
|---|
public DefaultCacheServer()
| Method Detail |
|---|
public static void main(java.lang.String[] asArg)
Default configuration file is "coherence-cache-config.xml"; default keep alive interval is 5 sec.
Example: java -server -Xms512m -Xmx512m com.tangosol.net.DefaultCacheServer coherence-cache-config.xml 5
public static java.util.List start()
public static java.util.List start(ConfigurableCacheFactory factory)
factory - DefaultConfigurableCacheFactory to usepublic static void startDaemon()
public static void shutdown()
|
Oracle® Coherence Java API Reference v3.5 E14977-01 |
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||