public class UnifiedReplicationRouter extends Object implements IReplicationRouter
Modifier and Type | Class and Description |
---|---|
static class |
UnifiedReplicationRouter.Builder |
Constructor and Description |
---|
UnifiedReplicationRouter(IReplicationRouter spaceProxyReplicationRouter,
IReplicationRouter lusReplicationRouter) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
String |
dumpState() |
IReplicationRouterAdmin |
getAdmin() |
IReplicationMonitoredConnection |
getDirectConnection(RouterStubHolder remoteStubHolder)
Gets a direct connection to the router represented by the given stub.
|
IReplicationMonitoredConnection |
getMemberConnection(String memberLookupName)
Create new replication connection and establishes it.
|
IReplicationMonitoredConnection |
getMemberConnectionAsync(String memberLookupName)
Gets a replication connection to a designated replication node by its name, the received
connection is automatically managed by the router and it is in charge of detecting
disconnection and reestablish connection when available.
|
ReplicationEndpointDetails |
getMyEndpointDetails()
Gets this router endpoint details
|
String |
getMyLookupName() |
RouterStubHolder |
getMyStubHolder()
Gets a stub holder for the current router, that a remote router can use to create a
connection to this router
|
Object |
getMyUniqueId() |
IReplicationMonitoredConnection |
getUrlConnection(Object customUrl)
Gets a connection with given custom url, need to have this due to space copy with given url
which may not even reside in the cluster policy and for sink recovery
|
public UnifiedReplicationRouter(IReplicationRouter spaceProxyReplicationRouter, IReplicationRouter lusReplicationRouter)
public IReplicationMonitoredConnection getMemberConnectionAsync(String memberLookupName)
IReplicationRouter
getMemberConnectionAsync
in interface IReplicationRouter
memberLookupName
- the replication node name to create the connection topublic IReplicationMonitoredConnection getMemberConnection(String memberLookupName)
IReplicationRouter
getMemberConnection
in interface IReplicationRouter
public IReplicationMonitoredConnection getUrlConnection(Object customUrl)
IReplicationRouter
getUrlConnection
in interface IReplicationRouter
customUrl
- the url to the replication node to create the connection topublic 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 Object getMyUniqueId()
getMyUniqueId
in interface IReplicationRouter
public RouterStubHolder getMyStubHolder()
IReplicationRouter
getMyStubHolder
in interface IReplicationRouter
IReplicationRouter.getDirectConnection(RouterStubHolder)
public ReplicationEndpointDetails getMyEndpointDetails()
IReplicationRouter
getMyEndpointDetails
in interface IReplicationRouter
public IReplicationRouterAdmin getAdmin()
getAdmin
in interface IReplicationRouter
public String dumpState()
dumpState
in interface IReplicationRouter
Copyright © GigaSpaces.