protected class Relayer.Bridge extends ReceiverAdapter
限定符和类型 | 字段和说明 |
---|---|
protected JChannel |
channel |
protected java.lang.String |
cluster_name |
protected View |
view |
限定符 | 构造器和说明 |
---|---|
protected |
Relayer.Bridge(JChannel ch,
java.lang.String cluster_name,
java.lang.String channel_name,
AddressGenerator addr_generator) |
限定符和类型 | 方法和说明 |
---|---|
protected boolean |
contains(java.util.List<Relayer.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 Relayer.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
在接口中 MessageListener
receive
在类中 ReceiverAdapter
public void viewAccepted(View new_view)
viewAccepted
在接口中 MembershipListener
viewAccepted
在类中 ReceiverAdapter
protected boolean contains(java.util.List<Relayer.Route> routes, Address addr)