|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectkaos.core.csi.usecase.SimpleGuardedSender
public class SimpleGuardedSender
$Revision: 1.5 $
Field Summary | |
---|---|
protected KAoSAgentDescription |
_agentDescription
This class llustrates an implementation of a SimpleGuardedSender: an entity registered with KAoS via its Guard and capable of sending messages to other entities registered in the KAoS Directory Service. |
protected QueryRegistration |
_query
|
protected TransportSupport |
_transportSupport
|
Constructor Summary | |
---|---|
SimpleGuardedSender()
|
Method Summary | |
---|---|
boolean |
equals(java.lang.Object obj)
Two agents are equal if their respective hash codes are equal. |
int |
hashCode()
Determines the hash code for the SimpleGuardedSender. |
void |
initialize(java.lang.String name,
KAoSAgentDescription agentDescription,
java.lang.String transportName)
|
static void |
main(java.lang.String[] args)
|
void |
receiveMessage(TransportMessage tmsg)
Implements the receiveMessage method mandated by the MessageListener interface. |
void |
sendMessageTo(java.lang.String receiverName)
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected KAoSAgentDescription _agentDescription
protected TransportSupport _transportSupport
protected QueryRegistration _query
Constructor Detail |
---|
public SimpleGuardedSender()
Method Detail |
---|
public void initialize(java.lang.String name, KAoSAgentDescription agentDescription, java.lang.String transportName) throws java.lang.Exception
java.lang.Exception
public void receiveMessage(TransportMessage tmsg)
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
super.hashCode()
.
hashCode
in class java.lang.Object
public void sendMessageTo(java.lang.String receiverName) throws DirectoryFailure, SearchException, NotLocatableException, TransportFailure
DirectoryFailure
SearchException
NotLocatableException
TransportFailure
public static void main(java.lang.String[] args) throws java.lang.Exception
java.lang.Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |