| java.lang.Object org.jgroups.tests.RpcDispatcherSimpleTest
RpcDispatcherSimpleTest | public class RpcDispatcherSimpleTest (Code) | | Example for RpcDispatcher (see also MessageDispatcher). A remote method (print()) is group-invoked
periodically. The method is defined in each instance and is invoked whenever a remote method call
is received. The callee (although in this example, each callee is also a caller (peer principle))
has to define the public methods, and the caller uses one of the callRemoteMethods() methods to
invoke a remote method. CallRemoteMethods uses the core reflection API to lookup and dispatch
methods.
author: Bela Ban version: $Id: RpcDispatcherSimpleTest.java,v 1.1.2.1 2006/12/04 13:46:38 belaban Exp $ |
Method Summary | |
public static void | main(String[] args) | public int | print(int number) | public void | start(String props, int num, long interval) |
|
|