protected class Relayer.Bridge extends ReceiverAdapter
Modifier and Type | Field and Description |
---|---|
protected JChannel |
channel |
protected String |
cluster_name |
protected View |
view |
Modifier | Constructor and Description |
---|---|
protected |
Relayer.Bridge(JChannel ch,
String cluster_name,
String channel_name,
AddressGenerator addr_generator) |
Modifier and Type | Method and Description |
---|---|
protected boolean |
contains(List<Relayer.Route> routes,
Address addr) |
protected Map<String,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 String cluster_name
protected View view
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
protected boolean contains(List<Relayer.Route> routes, Address addr)
Copyright © 2013 JBoss, a division of Red Hat. All rights reserved.