|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectkaos.core.csi.usecase.SimpleReceiver
public class SimpleReceiver
$Revision: 1.7 $
| Field Summary | |
|---|---|
protected KAoSAgentDescription |
_agentDescription
This class illustrates an implementation of a SimpleReceiver: an entity capable of receiving messages. |
protected TransportSupport |
_transportSupport
|
| Constructor Summary | |
|---|---|
SimpleReceiver()
|
|
| Method Summary | |
|---|---|
boolean |
equals(java.lang.Object obj)
Two agents are equal if their respective hash codes are equal. |
int |
hashCode()
|
void |
initialize(java.lang.String name,
KAoSAgentDescription agentDescription,
java.lang.String transportName)
|
boolean |
isListeningForEvent(DirectoryEvent event)
Determines if this Listener is listening for the specified event. |
static void |
main(java.lang.String[] args)
|
void |
receiveDirectoryEvent(DirectoryEvent event)
Notifies the listener about a directory event. |
void |
receiveMessage(TransportMessage tmsg)
Implements the receiveMessage method mandated by the MessageListener interface. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected KAoSAgentDescription _agentDescription
protected TransportSupport _transportSupport
| Constructor Detail |
|---|
public SimpleReceiver()
| 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()
hashCode in class java.lang.Object
public static void main(java.lang.String[] args)
throws java.lang.Exception
java.lang.Exceptionpublic boolean isListeningForEvent(DirectoryEvent event)
DirectoryEventListener
isListeningForEvent in interface DirectoryEventListenerevent - A directory event to be sent to the appropriate listeners.
public void receiveDirectoryEvent(DirectoryEvent event)
DirectoryEventListener
receiveDirectoryEvent in interface DirectoryEventListenerevent - A directory event
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||