public class UnicastTestRpc extends ReceiverAdapter
限定符和类型 | 字段和说明 |
---|---|
protected java.util.concurrent.atomic.AtomicInteger |
num_requests |
构造器和说明 |
---|
UnicastTestRpc() |
限定符和类型 | 方法和说明 |
---|---|
void |
eventLoop() |
protected static java.util.List<java.lang.String> |
getSites(JChannel channel) |
void |
init(java.lang.String props,
java.lang.String name,
java.lang.String cluster_name) |
static void |
main(java.lang.String[] args) |
void |
receiveData(byte[] buffer) |
void |
viewAccepted(View new_view)
Called when a change in membership has occurred.
|
public void init(java.lang.String props, java.lang.String name, java.lang.String cluster_name) throws java.lang.Exception
java.lang.Exception
public void viewAccepted(View new_view)
ReceiverAdapter
Channel.connect(String)
returns.viewAccepted
在接口中 MembershipListener
viewAccepted
在类中 ReceiverAdapter
public void receiveData(byte[] buffer)
public void eventLoop() throws java.lang.Throwable
java.lang.Throwable
protected static java.util.List<java.lang.String> getSites(JChannel channel)
public static void main(java.lang.String[] args)