Class UnifiedReplicationRouter
java.lang.Object
com.gigaspaces.internal.cluster.node.impl.gateway.router.UnifiedReplicationRouter
- All Implemented Interfaces:
IReplicationRouter
A replication router that has both SpaceProxyReplicationRouter and LusReplicationRouter and
delegate the request according to the lookup name
- Since:
- 8.0.3
- Author:
- eitany
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionUnifiedReplicationRouter(IReplicationRouter spaceProxyReplicationRouter, IReplicationRouter lusReplicationRouter) -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()getAdmin()getDirectConnection(RouterStubHolder remoteStubHolder) Gets a direct connection to the router represented by the given stub.getMemberConnection(String memberLookupName) Create new replication connection and establishes it.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.Gets this router endpoint detailsGets a stub holder for the current router, that a remote router can use to create a connection to this routergetUrlConnection(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
-
Constructor Details
-
UnifiedReplicationRouter
public UnifiedReplicationRouter(IReplicationRouter spaceProxyReplicationRouter, IReplicationRouter lusReplicationRouter)
-
-
Method Details
-
getMemberConnectionAsync
Description copied from interface:IReplicationRouterGets 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. Connection is established asynchronously- Specified by:
getMemberConnectionAsyncin interfaceIReplicationRouter- Parameters:
memberLookupName- the replication node name to create the connection to- Returns:
- a connection to the specified replication node
-
getMemberConnection
Description copied from interface:IReplicationRouterCreate new replication connection and establishes it.- Specified by:
getMemberConnectionin interfaceIReplicationRouter
-
getUrlConnection
Description copied from interface:IReplicationRouterGets 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- Specified by:
getUrlConnectionin interfaceIReplicationRouter- Parameters:
customUrl- the url to the replication node to create the connection to- Returns:
- a connection to the specified replication node represented by the url
-
getDirectConnection
Description copied from interface:IReplicationRouterGets a direct connection to the router represented by the given stub.- Specified by:
getDirectConnectionin interfaceIReplicationRouter- Parameters:
remoteStubHolder- the target router of the connection- Returns:
- a connection to the specified router
-
close
public void close()- Specified by:
closein interfaceIReplicationRouter
-
getMyLookupName
- Specified by:
getMyLookupNamein interfaceIReplicationRouter
-
getMyUniqueId
- Specified by:
getMyUniqueIdin interfaceIReplicationRouter
-
getMyStubHolder
Description copied from interface:IReplicationRouterGets a stub holder for the current router, that a remote router can use to create a connection to this router- Specified by:
getMyStubHolderin interfaceIReplicationRouter- See Also:
-
getMyEndpointDetails
Description copied from interface:IReplicationRouterGets this router endpoint details- Specified by:
getMyEndpointDetailsin interfaceIReplicationRouter
-
getAdmin
- Specified by:
getAdminin interfaceIReplicationRouter
-
dumpState
- Specified by:
dumpStatein interfaceIReplicationRouter
-