de.fhg.igd.semoa.server
Class LocalSetup

java.lang.Object
  extended byde.fhg.igd.semoa.service.AbstractService
      extended byde.fhg.igd.semoa.server.LocalSetup
All Implemented Interfaces:
AgentFilter, Service

public class LocalSetup
extends AbstractService
implements AgentFilter

This setup filter passes the agent on to the ingate. Hence, it should be the last filter in the pipeline of agent launcher filters.

Version:
"$Id: LocalSetup.java 1913 2007-08-08 02:41:53Z jpeters $"
Author:
Volker Roth
See Also:
AgentStructure

Nested Class Summary
 
Nested classes inherited from class de.fhg.igd.semoa.server.AgentFilter
AgentFilter.In, AgentFilter.Out
 
Field Summary
private static String[] DEPEND_
          The dependencies to other objects in the global Environment.
 
Fields inherited from class de.fhg.igd.semoa.service.AbstractService
REV_POSTFIX, REV_PREFIX
 
Constructor Summary
LocalSetup()
           
 
Method Summary
 String author()
          Returns the name of the author of the service.
 String[] dependencies()
          Returns the dependencies of this service as described in Service.
 ErrorCode filter(AgentContext agentContext)
          Calls the filter procedure with the given agent context.
 String info()
          Returns the informative string which should describe the service's essence in a sentence.
 String revision()
          Returns the revision number of this class as a string.
 
Methods inherited from class de.fhg.igd.semoa.service.AbstractService
checkDependencies, docs, doPrivileged, doPrivileged, getACC, getEnvironment, majorVersion, minorVersion, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

DEPEND_

private static final String[] DEPEND_
The dependencies to other objects in the global Environment.

Constructor Detail

LocalSetup

public LocalSetup()
Method Detail

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.

author

public String author()
Description copied from class: AbstractService
Returns the name of the author of the service. The format to be used should be John Doe <jdoe@zilch.net>.

Specified by:
author in interface Service
Specified by:
author in class AbstractService
Returns:
the String with the author's name.

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.

filter

public ErrorCode filter(AgentContext agentContext)
Description copied from interface: AgentFilter
Calls the filter procedure with the given agent context. The agent must already be in the AgentState#LOADED state.

Specified by:
filter in interface AgentFilter
Parameters:
agentContext - The agent context of the agent that is to be filtered.
Returns:
The ErrorCode that resulted from this filter. If everything went fine then ErrorCode.OK is returned.


Copyright © Fraunhofer Gesellschaft. All Rights Reserved.