|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.rmi.server.RemoteObject
java.rmi.server.RemoteServer
java.rmi.server.UnicastRemoteObject
gov.nasa.gsfc.drl.rtstps.server.AbstractServer
public abstract class AbstractServer
This is an abstract RT-STPS server. It supports only one pipeline thread.
Field Summary | |
---|---|
private Builder |
builder
|
protected FrameSynchronizer |
fs
|
private Logger |
logger
|
protected java.lang.Thread |
runner
|
protected boolean |
running
|
private static long |
serialVersionUID
|
protected ServerState |
state
|
protected StatusBlock[] |
statusBlocks
|
private java.lang.String |
xmlDirectory
|
Fields inherited from class java.rmi.server.RemoteObject |
---|
ref |
Constructor Summary | |
---|---|
protected |
AbstractServer()
Create an RT-STPS server. |
Method Summary | |
---|---|
private void |
build(java.io.Reader r)
Build a pipeline from a configuration. |
java.lang.String |
getConfigurationName()
Get the name of the currently loaded configuration. |
StatusBlock[] |
getStatus()
Get the current status from the last-used pipeline. |
java.lang.String[] |
getStatusToString()
Get the current status pre-bundled as a String[] |
boolean |
isEnabled()
Is the server loaded and enabled? |
void |
load(char[] configuration)
Load a configuration. |
void |
load(java.lang.String configuration)
Load a configuration. |
void |
loadFile(java.lang.String filename)
Load a configuration from a file that is local to the server. |
void |
log(java.lang.String message)
Log a message. |
abstract void |
run()
This thread method gets data from the input socket and sends it down the pipeline if it exists. |
void |
setEnabled(boolean enable)
Enable or disable data processing. |
void |
stopServer()
Stop the RT-STPS server. |
void |
unload()
Unload a configuration. |
void |
zeroStatus()
Set all clearable status counters to zero. |
Methods inherited from class java.rmi.server.UnicastRemoteObject |
---|
clone, exportObject, exportObject, exportObject, unexportObject |
Methods inherited from class java.rmi.server.RemoteServer |
---|
getClientHost, getLog, setLog |
Methods inherited from class java.rmi.server.RemoteObject |
---|
equals, getRef, hashCode, toString, toStub |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
private static final long serialVersionUID
protected FrameSynchronizer fs
protected boolean running
protected java.lang.Thread runner
protected StatusBlock[] statusBlocks
protected ServerState state
private Builder builder
private Logger logger
private java.lang.String xmlDirectory
Constructor Detail |
---|
protected AbstractServer() throws java.rmi.RemoteException
java.rmi.RemoteException
Method Detail |
---|
public final void log(java.lang.String message)
public java.lang.String getConfigurationName() throws java.rmi.RemoteException
getConfigurationName
in interface RtStpsServices
java.rmi.RemoteException
public boolean isEnabled() throws java.rmi.RemoteException
isEnabled
in interface RtStpsServices
java.rmi.RemoteException
public void setEnabled(boolean enable) throws java.rmi.RemoteException
setEnabled
in interface RtStpsServices
java.rmi.RemoteException
public void unload() throws java.rmi.RemoteException
unload
in interface RtStpsServices
java.rmi.RemoteException
public void load(java.lang.String configuration) throws java.rmi.RemoteException
load
in interface RtStpsServices
java.rmi.RemoteException
public void load(char[] configuration) throws java.rmi.RemoteException
load
in interface RtStpsServices
java.rmi.RemoteException
public void loadFile(java.lang.String filename) throws java.rmi.RemoteException
loadFile
in interface RtStpsServices
java.rmi.RemoteException
private void build(java.io.Reader r) throws java.rmi.RemoteException
java.rmi.RemoteException
public void stopServer() throws java.rmi.RemoteException
stopServer
in interface RtStpsServices
java.rmi.RemoteException
public void zeroStatus() throws java.rmi.RemoteException
zeroStatus
in interface RtStpsServices
java.rmi.RemoteException
public StatusBlock[] getStatus() throws java.rmi.RemoteException
getStatus
in interface RtStpsServices
java.rmi.RemoteException
public java.lang.String[] getStatusToString() throws java.rmi.RemoteException
getStatusToString
in interface RtStpsServices
java.rmi.RemoteException
public abstract void run()
run
in interface java.lang.Runnable
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |