|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectkaos.core.csi.usecase.SimpleSender
public class SimpleSender
$Revision: 1.3 $
| Field Summary | |
|---|---|
protected KAoSAgentDescription |
_agentDescription
This class llustrates an implementation of a SimpleSender: an entity capable of sending messages. |
protected QueryRegistration |
_query
|
protected TransportSupport |
_transportSupport
|
| Constructor Summary | |
|---|---|
SimpleSender()
|
|
| 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 SimpleSender. |
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 SimpleSender()
| Method Detail |
|---|
public void initialize(java.lang.String name,
KAoSAgentDescription agentDescription,
java.lang.String transportName)
throws java.lang.Exception
java.lang.Exceptionpublic void receiveMessage(TransportMessage tmsg)
public boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic 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 | ||||||||