org.cougaar.pizza.plugin
Class SDRegistrationPlugin

java.lang.Object
  extended byorg.cougaar.util.GenericStateModelAdapter
      extended byorg.cougaar.core.blackboard.BlackboardClientComponent
          extended byorg.cougaar.core.plugin.ComponentPlugin
              extended byorg.cougaar.servicediscovery.plugin.SimpleSDRegistrationPlugin
                  extended byorg.cougaar.pizza.plugin.SDRegistrationPlugin
All Implemented Interfaces:
org.cougaar.core.blackboard.BlackboardClient, org.cougaar.core.component.Component, org.cougaar.util.GenericStateModel, org.cougaar.core.plugin.PluginBase

public class SDRegistrationPlugin
extends org.cougaar.servicediscovery.plugin.SimpleSDRegistrationPlugin

Extension of the SimpleSDRegistrationPlugin to use the pizza serviceprofiles. Registers this agent's services as specified in the -profile.owl file if any in the plugin parameter-named YP agent.

Remember that this version of the SDRegistration plugin is somewhat simplified -- fewer error checks for example.

Note that the only change this extension has to make, is to point the plugin at the correct directory for the service profiles for this application.

First plugin argument is the name of the agent hosting the YP that we will register with.

System Property:
org.cougaar.servicediscovery.plugin.SimpleRegistrationGracePeriodis the number of minutes after startup, during which we ignore SD registration Warnings, to allow the YP to start up. After this we complain more loudly. Default is 5 minutes.

Nested Class Summary
 
Nested classes inherited from class org.cougaar.core.blackboard.BlackboardClient
org.cougaar.core.blackboard.BlackboardClient.Local
 
Field Summary
 
Fields inherited from class org.cougaar.servicediscovery.plugin.SimpleSDRegistrationPlugin
log, OWL_IDENTIFIER
 
Fields inherited from class org.cougaar.core.blackboard.BlackboardClientComponent
agentId, agentIdentificationService, alarmService, blackboard, blackboardClientName
 
Fields inherited from interface org.cougaar.core.plugin.PluginBase
INSERTION_POINT
 
Fields inherited from interface org.cougaar.util.GenericStateModel
ACTIVE, IDLE, LOADED, UNINITIALIZED, UNLOADED
 
Fields inherited from interface org.cougaar.core.blackboard.BlackboardClient
current
 
Constructor Summary
SDRegistrationPlugin()
           
 
Method Summary
protected  java.net.URL getServiceProfileURL()
          Get the URL for the service profiles directory for this application.
 
Methods inherited from class org.cougaar.servicediscovery.plugin.SimpleSDRegistrationPlugin
execute, setCommunityService, setLoggingService, setRegistrationService, setupSubscriptions, suspend
 
Methods inherited from class org.cougaar.core.plugin.ComponentPlugin
getConfigFinder
 
Methods inherited from class org.cougaar.core.blackboard.BlackboardClientComponent
currentTimeMillis, cycle, getAgentIdentifier, getAlarmService, getBindingSite, getBlackboardClientName, getBlackboardService, getMessageAddress, getParameter, getParameters, getServiceBroker, halt, load, precycle, requestCycle, resume, setAgentIdentificationService, setAlarmService, setBindingSite, setBlackboardService, setParameter, setSchedulerService, setServiceBroker, setSuicideService, shouldExecute, start, stop, toString, unload, wasAwakened
 
Methods inherited from class org.cougaar.util.GenericStateModelAdapter
getModelState, initialize, transitState
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.cougaar.util.GenericStateModel
getModelState, halt, initialize, load, resume, start, stop, unload
 

Constructor Detail

SDRegistrationPlugin

public SDRegistrationPlugin()
Method Detail

getServiceProfileURL

protected java.net.URL getServiceProfileURL()
Get the URL for the service profiles directory for this application. This is the only method we need to over-ride to customize the base class for the pizza application.

Note that we use the method in Constants to find the directory contains the service profiles.