viceroy.net
Interface FindRelativeListener

All Superinterfaces:
Listener
All Known Implementing Classes:
LocalViceroyPeer.MyFindRelativeListener

public interface FindRelativeListener
extends Listener

Describes a listener for the message FindrelativeMessage. A listener is set per message and object. The naming convension for it: the listener and the object are bounded.

Author:
Anat Talmy
, Oren Dobzinski
See Also:
viceroy.net.FindrelativeMessage

Method Summary
 void onFindRelativeMessage(FindRelativeMessage message)
          The method should be called only when a FindrelativeMessage arrives for the bounded object.
 

Method Detail

onFindRelativeMessage

public void onFindRelativeMessage(FindRelativeMessage message)
                           throws java.lang.IllegalStateException,
                                  ResourceNotFoundException
The method should be called only when a FindrelativeMessage arrives for the bounded object. It activates the right method on the bounded object.

Parameters:
message - The message that arrived
Throws:
java.lang.IllegalStateException - if the state the peer's state is illegal
ResourceNotFoundException - if the resource was not found