|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.threerings.presents.server.ShutdownManager
@Deprecated public class ShutdownManager
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 |
|---|
@Inject protected Lifecycle _cycle
@Inject protected PresentsServer _server
| Constructor Detail |
|---|
public ShutdownManager()
| Method Detail |
|---|
public void registerShutdowner(ShutdownManager.Shutdowner downer)
public void unregisterShutdowner(ShutdownManager.Shutdowner downer)
public void addConstraint(ShutdownManager.Shutdowner lhs,
ShutdownManager.Constraint constraint,
ShutdownManager.Shutdowner rhs)
public void queueShutdown()
public boolean isShuttingDown()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||