jgroup.relacs.gmi.protocols
Interface ProtocolDispatcher

All Known Implementing Classes:
Anycast, Atomic, BasicDispatcher, Leadercast, Multicast

public interface ProtocolDispatcher

ProtocolDispatcher must be implemented by GMI protocols.

Author:
Hein Meling

Method Summary
 InvocationResult dispatch(java.io.InputStream in)
          Invoked to dispatch a method invocation on the local endpoint or on multiple external endpoints.
 void setServer(java.lang.Object server)
          Pass the server reference to the protocol implementation.
 

Method Detail

dispatch

InvocationResult dispatch(java.io.InputStream in)
                          throws java.io.IOException
Invoked to dispatch a method invocation on the local endpoint or on multiple external endpoints. The method may block until a result can be returned to the caller. It may also return null if problems occur, e.g. connectivity problems.

Parameters:
in - the method to invoke, encoded in the provided InputStream.
Returns:
the result of the method invocation.
Throws:
java.io.IOException - Raised if the method invocation read from the InputStream could not be executed for some reason.

setServer

void setServer(java.lang.Object server)
Pass the server reference to the protocol implementation.



Copyright © 1998-2006 The Jgroup/ARM development team. All Rights Reserved.