de.fhg.igd.semoa.comm
Class Pod
java.lang.Object
de.fhg.igd.semoa.service.AbstractService
de.fhg.igd.semoa.net.AbstractServer
de.fhg.igd.semoa.net.RequestServer
de.fhg.igd.semoa.comm.Pod
- All Implemented Interfaces:
- AgentGateway, MessageGateway.In, Runnable, Server, Service
- Direct Known Subclasses:
- Pods
- public class Pod
- extends RequestServer
- implements MessageGateway.In
- Version:
- "$Id: Pod.java 1913 2007-08-08 02:41:53Z jpeters $"
- Author:
- Volker Roth
Field Summary |
private static String[] |
DEPEND_
The dependencies to other objects in the global
Environment . |
static String |
PROTOCOL
The protocol specifier. |
Constructor Summary |
Pod()
Creates a new instance. |
Methods inherited from class de.fhg.igd.semoa.net.AbstractServer |
author, bad, createJob, createServerSocket, exceptionInfo, getCapacity, getMaximumSize, getPort, getServerState, good, isEnabled, localURL, rebind, run, serverStateChanged, setCapacity, setEnabled, setMaximumSize, setPort, shutdown, signal, toString |
DEPEND_
private static final String[] DEPEND_
- The dependencies to other objects in the global
Environment
.
PROTOCOL
public static final String PROTOCOL
- The protocol specifier.
- See Also:
- Constant Field Values
Pod
public Pod()
- Creates a new instance.
protocol
public String protocol()
- Specified by:
protocol
in interface AgentGateway
- Specified by:
protocol
in class AbstractServer
- Returns:
- The string identifier of the protocol spoken
by this server. Something such as "HTTP"
or "RAW".
info
public String info()
- Description copied from class:
AbstractService
- Returns the informative string which should describe the
service's essence in a sentence.
- Specified by:
info
in interface Service
- Specified by:
info
in class AbstractService
- Returns:
- the String with the service's short description.
revision
public String revision()
- Description copied from class:
AbstractService
- Returns the revision number of this class as a string.
This class provides default implementations of methods
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) $".
- Specified by:
revision
in class AbstractService
dependencies
public String[] dependencies()
- Description copied from class:
AbstractService
- Returns the dependencies of this service as described in
Service
. This default
implementation returns an array of length 0.
- Specified by:
dependencies
in interface Service
- Overrides:
dependencies
in class AbstractService
- Returns:
- An array of length 0.
createRequest
protected Request createRequest(Socket con,
Request req)
- Description copied from class:
RequestServer
- Creates a
Request
instance which is ready
to be decoded.
- Specified by:
createRequest
in class RequestServer
- Parameters:
con
- The socket connection that must be handled
by the Request
generated by this
method.req
- The previous Request
or
null
if this is the first call for the given
connection.
- Returns:
- A
Request
instance that can be
decoded, and which is subsequently invoked to
handle the decoded request.
Copyright © Fraunhofer Gesellschaft. All
Rights Reserved.