com.threerings.presents.server
Class ShutdownManager

java.lang.Object
  extended by com.threerings.presents.server.ShutdownManager

Deprecated. use Lifecycle

@Deprecated
public class ShutdownManager
extends Object

Handles the orderly shutdown of all server services.


Nested Class Summary
static class ShutdownManager.Constraint
          Deprecated. Constraints for use with addConstraint(com.threerings.presents.server.ShutdownManager.Shutdowner, com.threerings.presents.server.ShutdownManager.Constraint, com.threerings.presents.server.ShutdownManager.Shutdowner).
static interface ShutdownManager.Shutdowner
          Deprecated. Implementers of this interface will be notified when the server is shutting down.
 
Field Summary
protected  Lifecycle _cycle
          Deprecated.  
protected  PresentsServer _server
          Deprecated.  
 
Constructor Summary
ShutdownManager()
          Deprecated.  
 
Method Summary
 void addConstraint(ShutdownManager.Shutdowner lhs, ShutdownManager.Constraint constraint, ShutdownManager.Shutdowner rhs)
          Deprecated. Adds a constraint that a certain shutdowner must be run before another.
 boolean isShuttingDown()
          Deprecated. Returns true if we're in the process of shutting down.
 void queueShutdown()
          Deprecated. Queues up a request to shutdown on the dobjmgr thread.
 void registerShutdowner(ShutdownManager.Shutdowner downer)
          Deprecated. Registers an entity that will be notified when the server is shutting down.
 void unregisterShutdowner(ShutdownManager.Shutdowner downer)
          Deprecated. Unregisters the shutdowner from hearing when the server is shutdown.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_cycle

@Inject
protected Lifecycle _cycle
Deprecated. 

_server

@Inject
protected PresentsServer _server
Deprecated. 
Constructor Detail

ShutdownManager

public ShutdownManager()
Deprecated. 
Method Detail

registerShutdowner

public void registerShutdowner(ShutdownManager.Shutdowner downer)
Deprecated. 
Registers an entity that will be notified when the server is shutting down.


unregisterShutdowner

public void unregisterShutdowner(ShutdownManager.Shutdowner downer)
Deprecated. 
Unregisters the shutdowner from hearing when the server is shutdown.


addConstraint

public void addConstraint(ShutdownManager.Shutdowner lhs,
                          ShutdownManager.Constraint constraint,
                          ShutdownManager.Shutdowner rhs)
Deprecated. 
Adds a constraint that a certain shutdowner must be run before another.


queueShutdown

public void queueShutdown()
Deprecated. 
Queues up a request to shutdown on the dobjmgr thread. This method may be safely called from any thread.


isShuttingDown

public boolean isShuttingDown()
Deprecated. 
Returns true if we're in the process of shutting down.