org.jgroups.demos
public class RelayDemoRpc extends ReceiverAdapter
Modifier and Type | Field and Description |
---|---|
protected JChannel |
ch |
protected RpcDispatcher |
disp |
protected Address |
local_addr |
protected View |
view |
Constructor and Description |
---|
RelayDemoRpc() |
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
handleMessage(java.lang.String msg,
Address sender) |
static void |
main(java.lang.String[] args) |
void |
start(java.lang.String props,
java.lang.String name) |
void |
viewAccepted(View new_view)
Called when a change in membership has occurred.
|
protected JChannel ch
protected RpcDispatcher disp
protected Address local_addr
protected View view
public static void main(java.lang.String[] args) throws java.lang.Exception
java.lang.Exception
public void start(java.lang.String props, java.lang.String name) throws java.lang.Exception
java.lang.Exception
public static java.lang.String handleMessage(java.lang.String msg, Address sender)
public void viewAccepted(View new_view)
MembershipListener
Channel.connect(String)
returns.viewAccepted
in interface MembershipListener
viewAccepted
in class ReceiverAdapter
Copyright © 1998-2009 Bela Ban / Red Hat. All Rights Reserved.