de.fhg.igd.atlas.core
Class AtlasSetup

java.lang.Object
  extended byde.fhg.igd.semoa.service.AbstractService
      extended byde.fhg.igd.atlas.core.AtlasSetup
All Implemented Interfaces:
AgentFilter, Service

public class AtlasSetup
extends AbstractService
implements AgentFilter

This setup filter must be registered under the path of the AgentLauncher. Typically, WhatIs:AGENT_LAUNCHER is the path prefix.

Its task is to automatically register locally started agents within the ATLAS agent tracer. This setup filter relies on a number of additional services that must be present in the Environment.

${WhatIs:AGENT_TRACER}, de.fhg.igd.atlas.core.AgentTracer
The agent tracer maintains a list of agents that were created by the local server. The whereabouts of these agents are tracked automatically by means of Atlas, if Atlas is installed and running.
Within the launching filter pipeline, this filter has to be invoked after the de.fhg.igd.semoa.securityOwnerSetup filter.

Version:
"$Id: AtlasSetup.java 1913 2007-08-08 02:41:53Z jpeters $"
Author:
Jan Peters

Nested Class Summary
 
Nested classes inherited from class de.fhg.igd.semoa.server.AgentFilter
AgentFilter.In, AgentFilter.Out
 
Field Summary
 
Fields inherited from class de.fhg.igd.semoa.service.AbstractService
REV_POSTFIX, REV_PREFIX
 
Constructor Summary
AtlasSetup()
           
 
Method Summary
 String author()
          Returns the name of the author of the service.
 ErrorCode filter(AgentContext agentContext)
          Registers the agent with the AgentTracker, if it is installed.
 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, dependencies, 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
 

Constructor Detail

AtlasSetup

public AtlasSetup()
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

filter

public ErrorCode filter(AgentContext agentContext)
Registers the agent with the AgentTracker, if it is installed.

Specified by:
filter in interface AgentFilter
Parameters:
agentContext - The agent context of the agent that is to be filtered.
Returns:
ErrorCode.OK.


Copyright © Fraunhofer Gesellschaft. All Rights Reserved.