jgroup.relacs.gmi
Class GroupRequestHandler

java.lang.Object
  extended by jgroup.relacs.gmi.GroupRequestHandler
All Implemented Interfaces:
net.jini.jeri.RequestDispatcher

public class GroupRequestHandler
extends java.lang.Object
implements net.jini.jeri.RequestDispatcher

Handles external group invocation requests.

Author:
Tor Arve Stangeland, Hein Meling

Constructor Summary
GroupRequestHandler(int gid, MemberId me)
          Constructs a new request handler for the group.
 
Method Summary
 void addProtocol(MethodSemantics semantics, ProtocolDispatcher protocol)
          Associate the given protocol with the given method invocation semantics as stored in the internal table of protocols.
 void BLOCKING_dispatch(net.jini.jeri.InboundRequest request)
          Handles inbound requests to this local endpoint (a member of a group).
 void CLIENT_BLOCKING_dispatch(net.jini.jeri.InboundRequest request)
          Handles inbound requests to this local endpoint (a member of a group).
 void dispatch(net.jini.jeri.InboundRequest request)
          Handles inbound requests to this local endpoint (a member of a group).
 boolean hasProtocol(MethodSemantics semantics)
          Returns true if the given method semantics has registered its protocol instance.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GroupRequestHandler

public GroupRequestHandler(int gid,
                           MemberId me)
Constructs a new request handler for the group.

Method Detail

hasProtocol

public boolean hasProtocol(MethodSemantics semantics)
Returns true if the given method semantics has registered its protocol instance.


addProtocol

public void addProtocol(MethodSemantics semantics,
                        ProtocolDispatcher protocol)
Associate the given protocol with the given method invocation semantics as stored in the internal table of protocols. The method will override any existing mapping for the given invocation semantics.


dispatch

public void dispatch(net.jini.jeri.InboundRequest request)
Handles inbound requests to this local endpoint (a member of a group).

Specified by:
dispatch in interface net.jini.jeri.RequestDispatcher
See Also:
RequestDispatcher.dispatch(InboundRequest)

BLOCKING_dispatch

public void BLOCKING_dispatch(net.jini.jeri.InboundRequest request)
Handles inbound requests to this local endpoint (a member of a group).

See Also:
RequestDispatcher.dispatch(InboundRequest)

CLIENT_BLOCKING_dispatch

public void CLIENT_BLOCKING_dispatch(net.jini.jeri.InboundRequest request)
Handles inbound requests to this local endpoint (a member of a group).

See Also:
RequestDispatcher.dispatch(InboundRequest)


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