|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.lang.Thread
org.openmuc.mux.dataserver.DataSocketServer
public class DataSocketServer
Simple ASCII based socket server for access to measured data. The protocol is kept simple so it can be used my humans via telnet. The IP and port the server will listen can be configured by the OSGi/Java properties "org.openmuc.mux.dataserver.ip" and "org.openmuc.mux.dataserver.port". The default port is 9200. If no IP address is configuered the server will listen to all IPs of the system.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class java.lang.Thread |
---|
java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler |
Field Summary | |
---|---|
static int |
STATE_ERROR
|
static int |
STATE_LISTEN
|
static int |
STATE_UNBOUND
|
Fields inherited from class java.lang.Thread |
---|
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
Constructor Summary | |
---|---|
DataSocketServer(DataManagerServiceTracker store,
java.util.Properties props)
Create new Server and connect to a DataManagerServiceTracker |
Method Summary | |
---|---|
protected void |
connectionClosed(Connection con)
Callback method to be called by Connection objects if the connection is closed by timeout or on clients request. |
int |
getServerState()
Get the state of the server. |
void |
run()
The main server thread. |
protected void |
stopServer()
Stop the server. |
Methods inherited from class java.lang.Thread |
---|
activeCount, checkAccess, clone, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static int STATE_UNBOUND
public static int STATE_LISTEN
public static int STATE_ERROR
Constructor Detail |
---|
public DataSocketServer(DataManagerServiceTracker store, java.util.Properties props)
store
- Method Detail |
---|
public int getServerState()
public void run()
run
in interface java.lang.Runnable
run
in class java.lang.Thread
protected void connectionClosed(Connection con)
con
- The calling Connection objectprotected void stopServer()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |