|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object de.fhg.igd.semoa.service.AbstractService de.fhg.igd.semoa.net.AbstractServer de.fhg.igd.semoa.shell.RemoteShellServer
Provides a simple server that listens on incoming network connections for incoming agents.
Nested Class Summary | |
protected class |
RemoteShellServer.Job
An inner class that handles the connections. |
Field Summary | |
private static String[] |
DEPEND_
The dependencies to other objects in the global Environment . |
static String |
PROTOCOL
The protocol name. |
Fields inherited from class de.fhg.igd.semoa.net.AbstractServer |
bad_, DEFAULT_CAPACITY, good_, MAX_CAPACITY, thread_ |
Fields inherited from class de.fhg.igd.semoa.service.AbstractService |
REV_POSTFIX, REV_PREFIX |
Fields inherited from interface de.fhg.igd.semoa.net.Server |
BOUND_TO_PORT, ERROR, RUNNING, SHUTDOWN, UNDEFINED |
Constructor Summary | |
RemoteShellServer()
Creates a new instance. |
Method Summary | |
protected Runnable |
createJob(Socket connection)
Creates the job that handles the given connection. |
String[] |
dependencies()
Returns the dependencies of this service as described in Service . |
String |
info()
Returns the informative string which should describe the service's essence in a sentence. |
String |
protocol()
|
String |
revision()
Returns the revision number of this class as a string. |
Methods inherited from class de.fhg.igd.semoa.net.AbstractServer |
author, bad, createServerSocket, exceptionInfo, getCapacity, getMaximumSize, getPort, getServerState, good, handleConnection, isEnabled, localURL, rebind, run, serverStateChanged, setCapacity, setEnabled, setMaximumSize, setPort, shutdown, signal, toString |
Methods inherited from class de.fhg.igd.semoa.service.AbstractService |
checkDependencies, docs, doPrivileged, doPrivileged, getACC, getEnvironment, majorVersion, minorVersion |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final String PROTOCOL
private static final String[] DEPEND_
Environment
.
Constructor Detail |
public RemoteShellServer()
Method Detail |
public String info()
AbstractService
info
in interface Service
info
in class AbstractService
public String revision()
AbstractService
majorVersion()
, minorVersion
based on the assumption that this method returns a
revision string as generated by rcs(1) for the template
"$Revision: 1.7 $/$Date: 2007-08-08 04:41:53 +0200 (Wed, 08 Aug 2007) $".
revision
in class AbstractService
public String[] dependencies()
AbstractService
Service
. This default
implementation returns an array of length 0.
dependencies
in interface Service
dependencies
in class AbstractService
public String protocol()
protocol
in interface Server
protocol
in class AbstractServer
protected Runnable createJob(Socket connection)
null
causes
the connection to be closed without further processing.
Jobs need not close the connection; this is handled by
the calling run()
method.
createJob
in class AbstractServer
null
if the connection shall be closed immediately.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |