com.javageeks.gjas.services
Class SocketControlService

java.lang.Object
  |
  +--com.javageeks.gjas.services.ThreadedServer
        |
        +--com.javageeks.gjas.services.SocketServer
              |
              +--com.javageeks.gjas.services.SocketControlService
All Implemented Interfaces:
java.io.Serializable, Service

public class SocketControlService
extends SocketServer

SocketControlService:

See Also:
Serialized Form

Fields inherited from class com.javageeks.gjas.services.SocketServer
m_serverSocket, PORT_PROP, TIMEOUT_PROP
 
Fields inherited from class com.javageeks.gjas.services.ThreadedServer
m_paused, m_shouldStop
 
Fields inherited from interface com.javageeks.gjas.Service
PAUSED, PAUSING, RESUMING, RUNNING, STARTING, STOPPED, STOPPING
 
Constructor Summary
SocketControlService()
           
 
Method Summary
 void serve(java.net.Socket socket)
          Derived services must override this method.
 
Methods inherited from class com.javageeks.gjas.services.SocketServer
getConfigInfo, getPort, setConfigInfo, setPort, start, stop
 
Methods inherited from class com.javageeks.gjas.services.ThreadedServer
getInstanceID, getState, getThread, isPaused, kill, pause, resume, setRunnable, setState, setThread, shouldStop
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SocketControlService

public SocketControlService()
Method Detail

serve

public void serve(java.net.Socket socket)
           throws java.lang.Exception
Description copied from class: SocketServer
Derived services must override this method. Once a client has connected to us, this method is called to "do the work" of handling the connection.
Overrides:
serve in class SocketServer