|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.cougaar.pizza.relay.RSVPRelaySource
A source-side Relay for RSVPs.
PizzaPreferences object.
InvitePlugin,
PizzaPreferences,
Serialized Form| Nested Class Summary |
| Nested classes inherited from class org.cougaar.core.relay.Relay |
org.cougaar.core.relay.Relay.Source, org.cougaar.core.relay.Relay.Target, org.cougaar.core.relay.Relay.TargetFactory, org.cougaar.core.relay.Relay.Token |
| Field Summary |
| Fields inherited from interface org.cougaar.core.relay.Relay |
CONTENT_CHANGE, NO_CHANGE, RESPONSE_CHANGE |
| Constructor Summary | |
RSVPRelaySource(org.cougaar.core.util.UID uid,
org.cougaar.core.mts.MessageAddress target,
java.lang.Object query,
PizzaPreferences pizzaPreferences)
Create a new Relay Source whose content is the query, and which will accumulate responses in the given PizzaPreferences object. |
|
| Method Summary | |
java.lang.Object |
getContent()
The query in the relay. |
PizzaPreferences |
getPizzaPrefs()
|
org.cougaar.core.relay.Relay.TargetFactory |
getTargetFactory()
Get the Factory for RSVPTargets. |
java.util.Set |
getTargets()
Who gets this invitation? |
org.cougaar.core.util.UID |
getUID()
Implemented for UniqueObject interface. |
void |
setUID(org.cougaar.core.util.UID uid)
Does nothing - not allowed to reset UID. |
java.lang.String |
toString()
|
int |
updateResponse(org.cougaar.core.mts.MessageAddress target,
java.lang.Object response)
Record responses from remote agents as they come in on the PizzaPreferences
object.
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public RSVPRelaySource(org.cougaar.core.util.UID uid,
org.cougaar.core.mts.MessageAddress target,
java.lang.Object query,
PizzaPreferences pizzaPreferences)
PizzaPreferences object.
| Method Detail |
public java.util.Set getTargets()
getTargets in interface org.cougaar.core.relay.Relay.Sourcepublic java.lang.Object getContent()
getContent in interface org.cougaar.core.relay.Relay.Sourcepublic org.cougaar.core.relay.Relay.TargetFactory getTargetFactory()
If your Relay.Target was also a Relay.Source and did include target addresses, this could lead to endless pinging in this case where the target address is an ABA broadcast to all members of the community.
getTargetFactory in interface org.cougaar.core.relay.Relay.Source
public int updateResponse(org.cougaar.core.mts.MessageAddress target,
java.lang.Object response)
PizzaPreferences
object.
Note that we assume the response will be a RSVPReply.
If INFO logging is on, tells how long we had to wait until all responses
came back.
updateResponse in interface org.cougaar.core.relay.Relay.Sourcepublic PizzaPreferences getPizzaPrefs()
PizzaPreferences object in which our answers are collectedpublic org.cougaar.core.util.UID getUID()
getUID in interface org.cougaar.core.util.UniqueObjectpublic void setUID(org.cougaar.core.util.UID uid)
setUID in interface org.cougaar.core.util.UniqueObjectpublic java.lang.String toString()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||