Class ReplicationConnectionDelegator
java.lang.Object
com.gigaspaces.internal.cluster.node.impl.gateway.lus.LusExportedReplicationComponent
com.gigaspaces.internal.cluster.node.impl.gateway.delegator.ReplicationConnectionDelegator
- All Implemented Interfaces:
IReplicationLookupRegistrationListener,IConnectionStateListener,IIncomingReplicationHandler
public class ReplicationConnectionDelegator
extends LusExportedReplicationComponent
implements IIncomingReplicationHandler, IConnectionStateListener
Delegates incoming replication to a different replication connection The source of this
connection proxy "thinks" he is working directly with the delegated target
- Since:
- 8.0.2
- Author:
- eitany
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionReplicationConnectionDelegator(String mySiteName, String targetLookupName, String routingLookupName, IReplicationLookupFinderService finderService, IReplicationLookupRegistrationService registrationService, IReplicationLookupParameters lookupParametersTemplate, IReplicationLookupParameters registrationParameters, IServiceExporter serviceExporter) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidCalled once the component is registration at the lookup service is initiated.protected voidonClose()voidonConnected(boolean newTarget) voidprotected <T> TonDispatch(AbstractReplicationPacket<T> packet) Called once an incoming packet is dispatchedvoid<T> TonReplication(AbstractReplicationPacket<T> packet) Handles incoming replication packetMethods inherited from class com.gigaspaces.internal.cluster.node.impl.gateway.lus.LusExportedReplicationComponent
close, dispatch, dispatchAsync, getMyLookupName, getMyRegistrationParameters, getMySiteName, getMyUuid, getServiceExporter, initRegistration, isAvailable
-
Constructor Details
-
ReplicationConnectionDelegator
public ReplicationConnectionDelegator(String mySiteName, String targetLookupName, String routingLookupName, IReplicationLookupFinderService finderService, IReplicationLookupRegistrationService registrationService, IReplicationLookupParameters lookupParametersTemplate, IReplicationLookupParameters registrationParameters, IServiceExporter serviceExporter)
-
-
Method Details
-
getTargetLookupName
-
onDispatch
Description copied from class:LusExportedReplicationComponentCalled once an incoming packet is dispatched- Specified by:
onDispatchin classLusExportedReplicationComponent- Throws:
RemoteException
-
afterRegistrationInitiated
protected void afterRegistrationInitiated()Description copied from class:LusExportedReplicationComponentCalled once the component is registration at the lookup service is initiated.- Specified by:
afterRegistrationInitiatedin classLusExportedReplicationComponent
-
onRegistered
public void onRegistered()- Specified by:
onRegisteredin interfaceIReplicationLookupRegistrationListener
-
onConnected
public void onConnected(boolean newTarget) - Specified by:
onConnectedin interfaceIConnectionStateListener
-
onDisconnected
public void onDisconnected()- Specified by:
onDisconnectedin interfaceIConnectionStateListener
-
onClose
protected void onClose()- Overrides:
onClosein classLusExportedReplicationComponent
-
onReplication
Description copied from interface:IIncomingReplicationHandlerHandles incoming replication packet- Specified by:
onReplicationin interfaceIIncomingReplicationHandler- Parameters:
packet- incoming packet- Returns:
- incoming replication result
- Throws:
RemoteException
-
getStatistics
-
dumpState
-