jgroup.relacs.gm
Interface DispatcherService

All Superinterfaces:
Layer
All Known Implementing Classes:
NewDispatcherLayer

public interface DispatcherService
extends Layer

Service interface for the dispatcher layer. It provides methods to add the start and stop the dispatcher, and to force the dispatching of a single event.

Since:
0.8
Author:
Alberto Montresor, Hein Meling

Nested Class Summary
 
Nested classes/interfaces inherited from interface jgroup.core.Layer
Layer.FinalizeLayer
 
Method Summary
 void dispatch(java.lang.Object obj)
          Dispatch a single event (can be called by an upcall method)
 RemoteDispatcher getRemoteDispatcher()
          Returns the remote dispatcher reference.
 void halt()
          Stop dispatching events
 void start(int gid)
          Start dispatching events for the given group.
 
Methods inherited from interface jgroup.core.Layer
addListener
 

Method Detail

start

void start(int gid)
Start dispatching events for the given group.


halt

void halt()
Stop dispatching events


dispatch

void dispatch(java.lang.Object obj)
Dispatch a single event (can be called by an upcall method)


getRemoteDispatcher

RemoteDispatcher getRemoteDispatcher()
                                     throws JgroupException
Returns the remote dispatcher reference.

Throws:
JgroupException - Raised if the dispatcher service could be not export for remote access by the Jgroup daemon.


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