Overview | Package | Class | Tree | Index | Help

Oracle® Coherence Java API Reference
v3.5.3
E15583-01
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## com.tangosol.net
Class DefaultCacheServer

    java.lang.Object
      com.tangosol.util.Base
          com.tangosol.net.DefaultCacheServer

    public class DefaultCacheServer

extends Base

DefaultCacheServer is a simple command line facility that starts all services that are declared as requiring an "autostart" in the configurable factory XML descriptor.

Since:
  Coherence 2.2
Author:
  gg 2003.05.26

Nested Class Summary
`protected static class` | `DefaultCacheServer.ShutdownProcess` ShutdownHook implementation.

Field Summary
`protected static boolean` | `s_fShutdown` Flag 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

### s_fShutdown

    protected static volatile boolean s_fShutdown

  Flag that indicates whether of not the shutdown was initiated.

Constructor Detail

### DefaultCacheServer

    public DefaultCacheServer()

Method Detail

### main

    public 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).

  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

### start

    public static java.util.List start()

  Start all services that are declared as requiring an "autostart" in the default configurable factory XML descriptor.

  Returns:
    list of services that have been successfuly started

### start

    public static java.util.List start(ConfigurableCacheFactory factory)

  Start all services that are declared as requiring an "autostart" in the configurable factory XML descriptor.

  Parameters:
    `factory` - DefaultConfigurableCacheFactory to use
  Returns:
    list of services that have been successfuly started

### startDaemon

    public static void startDaemon()

  Start the cache server on a dedicated daemon thread. This method is intended to be used within managed containers.

  Since:
    Coherence 3.2

### shutdown

    public static void shutdown()

  Shutdown the cache server.

  Since:
    Coherence 3.2

Overview | Package | Class | Tree | Index | Help

Oracle® Coherence Java API Reference
v3.5.3
E15583-01
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2000, 2010, Oracle. All rights reserved.