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.Exceptionprotected void start()
throws java.lang.Exception
java.lang.Exceptionprotected void stop()
public void receive(Message msg)
ReceiverAdapterreceive in interface MessageListenerreceive in class ReceiverAdapterpublic void viewAccepted(View new_view)
viewAccepted in interface MembershipListenerviewAccepted in class ReceiverAdapterCopyright © 1998-2020 Red Hat. All Rights Reserved.