public class RouterStubManager extends java.lang.Object implements RouterStub.ConnectionListener
构造器和说明 |
---|
RouterStubManager(Protocol owner,
java.lang.String channelName,
Address logicalAddress,
long interval) |
限定符和类型 | 方法和说明 |
---|---|
void |
connectionStatusChange(RouterStub stub,
RouterStub.ConnectionStatus newState) |
RouterStub |
createAndRegisterStub(java.lang.String routerHost,
int routerPort,
java.net.InetAddress bindAddress) |
void |
destroyStubs() |
void |
disconnectStubs() |
static RouterStubManager |
emptyGossipClientStubManager(Protocol p) |
java.util.List<RouterStub> |
getStubs() |
void |
registerStub(RouterStub s) |
void |
startReconnecting(RouterStub stub) |
void |
stopReconnecting(RouterStub stub) |
boolean |
unregisterAndDestroyStub(RouterStub stub) |
RouterStub |
unregisterStub(RouterStub stub) |
protected final Log log
public java.util.List<RouterStub> getStubs()
public RouterStub createAndRegisterStub(java.lang.String routerHost, int routerPort, java.net.InetAddress bindAddress)
public void registerStub(RouterStub s)
public RouterStub unregisterStub(RouterStub stub)
public boolean unregisterAndDestroyStub(RouterStub stub)
public void disconnectStubs()
public void destroyStubs()
public void startReconnecting(RouterStub stub)
public void stopReconnecting(RouterStub stub)
public void connectionStatusChange(RouterStub stub, RouterStub.ConnectionStatus newState)
public static RouterStubManager emptyGossipClientStubManager(Protocol p)