|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectgov.nasa.gsfc.drl.rtstps.server.ServerState
final class ServerState
This class is the current server state: unloaded, loaded, stopped, or go. Normally I would keep this information as a single state integer in the server itself, but I also need to maintain the time of each event as well as maintain a server status block.
Field Summary | |
---|---|
private LongStatusItem |
clockItem
|
private TextStatusItem |
configurationItem
|
private LongStatusItem |
goClockItem
|
private TextStatusItem |
goItem
|
private LongStatusItem |
loadClockItem
|
private static int |
LOADED_GO
|
private static int |
LOADED_STOPPED
|
private int |
state
|
private StatusBlock |
statusBlock
|
private LongStatusItem |
stopClockItem
|
private LongStatusItem |
unloadClockItem
|
private static int |
UNLOADED
|
Constructor Summary | |
---|---|
ServerState()
|
Method Summary | |
---|---|
(package private) void |
advanceClock()
Set the current time status item to the current time. |
(package private) StatusBlock |
getStatusBlock()
Get the status block that is associated with the server state. |
(package private) void |
go()
Set the server to the enabled state. |
(package private) boolean |
isEnabled()
Determine if the server is enabled to process data. |
(package private) boolean |
isLoaded()
Determine if the server is loaded with a configuration. |
(package private) void |
load(java.lang.String configurationFileName)
Change the server state so that it shows a loaded configuration. |
(package private) void |
stop()
Set the server to the disabled state. |
(package private) void |
unload()
Set the server state to be unloaded. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private StatusBlock statusBlock
private LongStatusItem clockItem
private LongStatusItem stopClockItem
private LongStatusItem goClockItem
private LongStatusItem loadClockItem
private LongStatusItem unloadClockItem
private TextStatusItem configurationItem
private TextStatusItem goItem
private static final int LOADED_GO
private static final int LOADED_STOPPED
private static final int UNLOADED
private int state
Constructor Detail |
---|
ServerState()
Method Detail |
---|
final boolean isLoaded()
final boolean isEnabled()
final StatusBlock getStatusBlock()
final void advanceClock()
void go() throws java.rmi.RemoteException
java.rmi.RemoteException
void stop() throws java.rmi.RemoteException
java.rmi.RemoteException
void load(java.lang.String configurationFileName) throws java.rmi.RemoteException
java.rmi.RemoteException
void unload()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |