public class RelayDemoRpc extends ReceiverAdapter
Modifier and Type | Field and Description |
---|---|
protected JChannel |
ch |
protected RpcDispatcher |
disp |
protected java.lang.String |
local_addr |
protected static long |
RPC_TIMEOUT |
protected View |
view |
Constructor and Description |
---|
RelayDemoRpc() |
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
handleMessage(java.lang.String msg,
java.lang.String sender) |
static void |
main(java.lang.String[] args) |
protected static java.util.Collection<java.lang.String> |
parseSiteMasters(java.lang.String line) |
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 java.lang.String local_addr
protected View view
protected static final long RPC_TIMEOUT
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
protected static java.util.Collection<java.lang.String> parseSiteMasters(java.lang.String line)
public static java.lang.String handleMessage(java.lang.String msg, java.lang.String sender)
public void viewAccepted(View new_view)
ReceiverAdapter
Note that on reception of the first view (a new member just joined), the channel will not yet
be in the connected state. This only happens when Channel.connect(String)
returns.
viewAccepted
in interface MembershipListener
viewAccepted
in class ReceiverAdapter
Copyright © 1998-2020 Red Hat. All Rights Reserved.