protected class Relayer.Bridge extends ReceiverAdapter
Modifier and Type | Field and Description |
---|---|
protected JChannel |
channel |
protected java.lang.String |
cluster_name |
protected View |
view |
Modifier | Constructor and Description |
---|---|
protected |
Bridge(JChannel ch,
java.lang.String cluster_name,
java.lang.String channel_name,
AddressGenerator addr_generator) |
Modifier and Type | Method and Description |
---|---|
protected boolean |
contains(java.util.List<Route> routes,
Address addr) |
protected java.util.Map<java.lang.String,java.util.List<Address>> |
extract(View view)
Returns a map containing the site keys and addresses as values
|
void |
receive(Message msg)
Called when a message is received.
|
protected void |
start() |
protected void |
stop() |
void |
viewAccepted(View new_view)
The view contains a list of SiteUUIDs.
|
protected JChannel channel
protected final java.lang.String cluster_name
protected View view
protected Bridge(JChannel ch, java.lang.String cluster_name, java.lang.String channel_name, AddressGenerator addr_generator) throws java.lang.Exception
java.lang.Exception
protected void start() throws java.lang.Exception
java.lang.Exception
protected void stop()
public void receive(Message msg)
ReceiverAdapter
receive
in interface MessageListener
receive
in class ReceiverAdapter
public void viewAccepted(View new_view)
viewAccepted
in interface MembershipListener
viewAccepted
in class ReceiverAdapter
Copyright © 1998-2020 Red Hat. All Rights Reserved.