Class LusExportedReplicationComponent
java.lang.Object
com.gigaspaces.internal.cluster.node.impl.gateway.lus.LusExportedReplicationComponent
- All Implemented Interfaces:
IReplicationLookupRegistrationListener
- Direct Known Subclasses:
ReplicationConnectionDelegator,ReplicationSink
public abstract class LusExportedReplicationComponent
extends Object
implements IReplicationLookupRegistrationListener
Base class for replication components that are exported via the
IReplicationLookupService
This component can be a target of replication connection IReplicationConnectionProxy- Since:
- 8.0.3
- Author:
- eitany
-
Constructor Summary
ConstructorsConstructorDescriptionLusExportedReplicationComponent(String myLookupName, String mySiteName, IServiceExporter serviceExporter, IReplicationLookupRegistrationService lookupService, IReplicationLookupParameters lookupParametersTemplate) -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract voidCalled once the component is registration at the lookup service is initiated.voidclose()<T> Tdispatch(AbstractReplicationPacket<T> packet) <T> TdispatchAsync(AbstractReplicationPacket<T> packet) voidInitialize registration via the lookup service, this method is non blocking, once the registration is initiatedafterRegistrationInitiated()is called.protected booleanprotected voidonClose()protected abstract <T> TonDispatch(AbstractReplicationPacket<T> packet) Called once an incoming packet is dispatchedMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.gigaspaces.internal.cluster.node.impl.gateway.lus.IReplicationLookupRegistrationListener
onRegistered
-
Constructor Details
-
LusExportedReplicationComponent
public LusExportedReplicationComponent(String myLookupName, String mySiteName, IServiceExporter serviceExporter, IReplicationLookupRegistrationService lookupService, IReplicationLookupParameters lookupParametersTemplate)
-
-
Method Details
-
initRegistration
public void initRegistration()Initialize registration via the lookup service, this method is non blocking, once the registration is initiatedafterRegistrationInitiated()is called. -
getServiceExporter
-
getMyRegistrationParameters
-
getMyLookupName
-
getMySiteName
-
isAvailable
protected boolean isAvailable() -
getMyUuid
-
close
public void close() -
onClose
protected void onClose() -
dispatch
- Throws:
RemoteException
-
dispatchAsync
- Throws:
RemoteException
-
onDispatch
Called once an incoming packet is dispatched- Throws:
RemoteException
-
afterRegistrationInitiated
protected abstract void afterRegistrationInitiated()Called once the component is registration at the lookup service is initiated.
-