org.cougaar.demo.ping
Class PingReceiver

java.lang.Object
  extended by org.cougaar.util.GenericStateModelAdapter
      extended by org.cougaar.core.blackboard.BlackboardClientComponent
          extended by org.cougaar.core.plugin.ComponentPlugin
              extended by org.cougaar.core.plugin.ParameterizedPlugin
                  extended by org.cougaar.core.plugin.AnnotatedSubscriptionsPlugin
                      extended by org.cougaar.demo.ping.PingReceiver
All Implemented Interfaces:
org.cougaar.core.blackboard.BlackboardClient, org.cougaar.core.component.Component, org.cougaar.core.plugin.PluginBase, org.cougaar.util.GenericStateModel

public class PingReceiver
extends org.cougaar.core.plugin.AnnotatedSubscriptionsPlugin

This plugin is an example ping target that receives relays and sends back a reply.

A "verbose=boolean" plugin parameter and System property is supported, exactly as documented in PingSender.

There must be one instance of this plugin in every agent that will receive PingSender relays. For simplicity, it's easiest to load a copy of this plugin into every agent.

See Also:
Remote plugin that sends the ping relays to this plugin, Optional browser-based GUI.
System Property:
org.cougaar.demo.ping.PingReceiver.verbose=truePingReceiver should output SHOUT-level logging messages, if not set as a plugin parameter.

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.cougaar.core.blackboard.BlackboardClient
org.cougaar.core.blackboard.BlackboardClient.Local
 
Field Summary
 boolean verbose
           
 
Fields inherited from class org.cougaar.core.plugin.ParameterizedPlugin
args, log, uids
 
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
PingReceiver()
           
 
Method Summary
 void executeRelay(org.cougaar.core.relay.SimpleRelay relay)
           
 boolean isRelayForAgent(org.cougaar.core.relay.SimpleRelay relay)
           
 
Methods inherited from class org.cougaar.core.plugin.AnnotatedSubscriptionsPlugin
execute, getSubscription, setupSubscriptions
 
Methods inherited from class org.cougaar.core.plugin.ParameterizedPlugin
getParameter, getParameter, getParameter, getParameter, getParameterMap, getParameterValues, setArguments
 
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, suspend, 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, suspend, unload
 

Field Detail

verbose

public boolean verbose
Constructor Detail

PingReceiver

public PingReceiver()
Method Detail

executeRelay

public void executeRelay(org.cougaar.core.relay.SimpleRelay relay)

isRelayForAgent

public boolean isRelayForAgent(org.cougaar.core.relay.SimpleRelay relay)