org.openmuc.mux.dataserver
Class Connection

java.lang.Object
  extended by java.lang.Thread
      extended by org.openmuc.mux.dataserver.Connection
All Implemented Interfaces:
java.lang.Runnable

public class Connection
extends java.lang.Thread

Client connection handler. For each connected client a Connection object will be created. Handles the client requests.
The following commands are currently supported:

  • ?org.openmuc.core.datamanager.dataserver
  • ?get [label]
  • ?get_age [label]
  • ?get_value
  • ?set_value
  • ?get_values
  • ?configure_report
  • ?get_directory
  • ?disconnect

    FIXME Reporting doesn't work with the current version!


    Nested Class Summary
     
    Nested classes/interfaces inherited from class java.lang.Thread
    java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler
     
    Field Summary
     
    Fields inherited from class java.lang.Thread
    MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
     
    Constructor Summary
    Connection(DataManagerServiceTracker store, Authentication auth, java.net.Socket sock, DataSocketServer server)
               
     
    Method Summary
     void close()
               
     void run()
               
     
    Methods inherited from class java.lang.Thread
    activeCount, checkAccess, 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
    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
     

    Constructor Detail

    Connection

    public Connection(DataManagerServiceTracker store,
                      Authentication auth,
                      java.net.Socket sock,
                      DataSocketServer server)
               throws java.io.IOException
    Throws:
    java.io.IOException
    Method Detail

    close

    public void close()

    run

    public void run()
    Specified by:
    run in interface java.lang.Runnable
    Overrides:
    run in class java.lang.Thread