de.fhg.igd.semoa.comm
Class Pod

java.lang.Object
  extended byde.fhg.igd.semoa.service.AbstractService
      extended byde.fhg.igd.semoa.net.AbstractServer
          extended byde.fhg.igd.semoa.net.RequestServer
              extended byde.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

Nested Class Summary
 
Nested classes inherited from class de.fhg.igd.semoa.net.AbstractServer
AbstractServer.Job
 
Nested classes inherited from class de.fhg.igd.semoa.server.AgentGateway
AgentGateway.In, AgentGateway.Out
 
Field Summary
private static String[] DEPEND_
          The dependencies to other objects in the global Environment.
static String PROTOCOL
          The protocol specifier.
 
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
Pod()
          Creates a new instance.
 
Method Summary
protected  Request createRequest(Socket con, Request req)
          Creates a Request instance which is ready to be decoded.
 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.RequestServer
handleConnection
 
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
 
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
 
Methods inherited from interface de.fhg.igd.semoa.server.MessageGateway.In
getMaximumSize, localURL, setMaximumSize
 
Methods inherited from interface de.fhg.igd.semoa.server.AgentGateway
isEnabled, setEnabled
 

Field Detail

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
Constructor Detail

Pod

public Pod()
Creates a new instance.

Method Detail

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.