|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.cougaar.util.GenericStateModelAdapter
org.cougaar.core.blackboard.BlackboardClientComponent
org.cougaar.core.plugin.ComponentPlugin
org.cougaar.core.relay.PingSender
public class PingSender
This plugin is an example ping source that sends relays to a remote agent.
There can be multiple copies of this plugin in a single agent, but
every PingSender must have a unique target. The target is
specified as a plugin parameter:
log4j.category.org.cougaar.core.relay.PingSender=FATAL
log4j.category.org.cougaar.core.relay.PingReceiver=FATAL
For simplicity we support this as a plugin parameter, so new users
don't need to configure the logging service. If enabled, also
consider turning off "+/-" message send/receive logging by
setting:
-Dorg.cougaar.core.agent.quiet=true
Required plugin for every agent that will receive
ping relays.,
Optional browser-based GUI.
| org.cougaar.core.relay.ping.delayMillis=5000 | PingSender delay between ping iterations, if not set as a plugin parameter. |
| org.cougaar.core.relay.ping.verbose=true | PingSender 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 |
|---|
BlackboardClient.Local |
| Field Summary |
|---|
| 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 | |
|---|---|
PingSender()
|
|
| Method Summary | |
|---|---|
protected void |
execute()
This method is called whenever a subscription changes. |
void |
load()
This method is called when the agent is created |
protected void |
setupSubscriptions()
This method is called when the agent starts. |
| 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, 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, resume, start, stop, suspend, unload |
| Constructor Detail |
|---|
public PingSender()
| Method Detail |
|---|
public void load()
load in interface org.cougaar.util.GenericStateModelload in class BlackboardClientComponentprotected void setupSubscriptions()
setupSubscriptions in class ComponentPluginprotected void execute()
execute in class ComponentPlugin
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||