public abstract class AbstractConnectionProxyBasedReplicationRouter<T,L> extends Object implements IReplicationRouter, IReplicationRouterAdmin
IReplicationConnectionProxy
to
communicate with each other.Modifier and Type | Class and Description |
---|---|
class |
AbstractConnectionProxyBasedReplicationRouter.ConnectionEndpoint |
Modifier and Type | Field and Description |
---|---|
protected Logger |
_specificLogger |
Modifier | Constructor and Description |
---|---|
protected |
AbstractConnectionProxyBasedReplicationRouter(String myLookupName,
Uuid uuid,
IConnectionMonitor<T,L> connectionMonitor,
IServiceExporter serviceExporter,
IIncomingReplicationHandler incomingReplicationHandler,
IAsyncContextProvider asyncContextProvider,
boolean setMyIdBeforeDispatch) |
protected |
AbstractConnectionProxyBasedReplicationRouter(String myLookupName,
Uuid uuid,
IConnectionMonitor<T,L> connectionMonitor,
IServiceExporter serviceExporter,
IIncomingReplicationHandler incomingReplicationHandler,
IAsyncContextProvider asyncContextProvider,
boolean setMyIdBeforeDispatch,
int replicationMonitorThreadPoolSize) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getUrlConnection
protected final Logger _specificLogger
protected AbstractConnectionProxyBasedReplicationRouter(String myLookupName, Uuid uuid, IConnectionMonitor<T,L> connectionMonitor, IServiceExporter serviceExporter, IIncomingReplicationHandler incomingReplicationHandler, IAsyncContextProvider asyncContextProvider, boolean setMyIdBeforeDispatch, int replicationMonitorThreadPoolSize)
protected AbstractConnectionProxyBasedReplicationRouter(String myLookupName, Uuid uuid, IConnectionMonitor<T,L> connectionMonitor, IServiceExporter serviceExporter, IIncomingReplicationHandler incomingReplicationHandler, IAsyncContextProvider asyncContextProvider, boolean setMyIdBeforeDispatch)
public IReplicationMonitoredConnection getMemberConnection(String lookupName)
IReplicationRouter
getMemberConnection
in interface IReplicationRouter
public IReplicationMonitoredConnection getMemberConnectionAsync(String lookupName)
IReplicationRouter
getMemberConnectionAsync
in interface IReplicationRouter
lookupName
- the replication node name to create the connection toprotected IReplicationMonitoredConnection createDirectConnection(String lookupName, boolean connectSynchronously)
protected AbstractProxyBasedReplicationMonitoredConnection<IReplicationConnectionProxy,Object> wrapDirectStubWithMonitoredConnection(boolean connectSynchronously, RouterStubHolder routerStubHolder)
protected abstract AbstractProxyBasedReplicationMonitoredConnection<T,L> createNewMemberConnection(String lookupName, boolean connectSynchronously)
public void addRemoteRouterStub(RouterStubHolder routerStubHolder)
addRemoteRouterStub
in interface IReplicationRouterAdmin
public void removeRemoteStubHolder(String routerLookupName)
removeRemoteStubHolder
in interface IReplicationRouterAdmin
public IReplicationMonitoredConnection getDirectConnection(RouterStubHolder remoteStubHolder)
IReplicationRouter
getDirectConnection
in interface IReplicationRouter
remoteStubHolder
- the target router of the connectionpublic void close()
close
in interface IReplicationRouter
public String getMyLookupName()
getMyLookupName
in interface IReplicationRouter
public Uuid getMyUniqueId()
getMyUniqueId
in interface IReplicationRouter
public boolean isSetMyIdBeforeDispatch()
public RouterStubHolder getMyStubHolder()
IReplicationRouter
getMyStubHolder
in interface IReplicationRouter
IReplicationRouter.getDirectConnection(RouterStubHolder)
public ReplicationEndpointDetails getMyEndpointDetails()
IReplicationRouter
getMyEndpointDetails
in interface IReplicationRouter
getMyEndpointDetails
in interface IReplicationRouterAdmin
public String dumpState()
dumpState
in interface IReplicationRouter
public void pingStub(IReplicationConnectionProxy proxy) throws RemoteException
RemoteException
public IReplicationConnectionProxy createStub()
public IReplicationConnectionProxy getStub()
public boolean isClosed()
public void removeUrlConnection(UrlProxyBasedReplicationMonitoredConnection<T,L> connection)
public void removeMemberConnection(MemberProxyBasedReplicationMonitoredConnection<T,L> connection)
public void removeDirectConnection(StubBasedReplicationMonitoredConnection connection)
protected IConnectionMonitor<T,L> getConnectionMonitor()
public IAsyncContextProvider getAsyncContextProvider()
public boolean hasExistingConnection(String lookupName)
public IReplicationRouterAdmin getAdmin()
getAdmin
in interface IReplicationRouter
public RouterStubHolder getMyRouterStubHolder()
getMyRouterStubHolder
in interface IReplicationRouterAdmin
public RouterStubHolder getRemoteRouterStub(String routerLookupName)
getRemoteRouterStub
in interface IReplicationRouterAdmin
public void enableIncomingCommunication()
enableIncomingCommunication
in interface IReplicationRouterAdmin
Copyright © GigaSpaces.