com.caucho.db.block
Class BlockManagerSubSystem

java.lang.Object
  extended by com.caucho.env.service.AbstractResinSubSystem
      extended by com.caucho.db.block.BlockManagerSubSystem
All Implemented Interfaces:
ResinSubSystem

public class BlockManagerSubSystem
extends AbstractResinSubSystem

The ShutdownSystem manages the Resin shutdown and includes a timeout thread. If the timeout takes longer than shutdown-wait-max, the ShutdownSystem will force a JVM exit.


Field Summary
static long BLOCK_FLUSH_PERIOD
           
static int START_PRIORITY
           
static int STOP_PRIORITY
           
 
Fields inherited from interface com.caucho.env.service.ResinSubSystem
START_PRIORITY_CACHE_SERVICE, START_PRIORITY_CLASSLOADER, START_PRIORITY_CLUSTER_SERVICE, START_PRIORITY_DATABASE_SYSTEM, START_PRIORITY_DEFAULT, START_PRIORITY_ENV_SYSTEM, START_PRIORITY_NETWORK_CLUSTER
 
Method Summary
static BlockManagerSubSystem createAndAddService()
           
static BlockManagerSubSystem getCurrent()
           
 int getStartPriority()
          Returns the start priority of the service, used to determine which services to start first.
 void start()
          Starts the server.
 void stop()
          Stops the server.
 
Methods inherited from class com.caucho.env.service.AbstractResinSubSystem
destroy, getStopPriority, isActive, preCreate, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

START_PRIORITY

public static final int START_PRIORITY
See Also:
Constant Field Values

STOP_PRIORITY

public static final int STOP_PRIORITY
See Also:
Constant Field Values

BLOCK_FLUSH_PERIOD

public static final long BLOCK_FLUSH_PERIOD
See Also:
Constant Field Values
Method Detail

createAndAddService

public static BlockManagerSubSystem createAndAddService()

getCurrent

public static BlockManagerSubSystem getCurrent()

getStartPriority

public int getStartPriority()
Description copied from interface: ResinSubSystem
Returns the start priority of the service, used to determine which services to start first.

Specified by:
getStartPriority in interface ResinSubSystem
Overrides:
getStartPriority in class AbstractResinSubSystem

start

public void start()
Starts the server.

Specified by:
start in interface ResinSubSystem
Overrides:
start in class AbstractResinSubSystem

stop

public void stop()
Stops the server.

Specified by:
stop in interface ResinSubSystem
Overrides:
stop in class AbstractResinSubSystem