public abstract class LusExportedReplicationComponent extends Object implements IReplicationLookupRegistrationListener
IReplicationLookupService
This component can be a target of replication connection IReplicationConnectionProxy
Constructor and Description |
---|
LusExportedReplicationComponent(String myLookupName,
String mySiteName,
IServiceExporter serviceExporter,
IReplicationLookupRegistrationService lookupService,
IReplicationLookupParameters lookupParametersTemplate) |
Modifier and Type | Method and Description |
---|---|
protected abstract void |
afterRegistrationInitiated()
Called once the component is registration at the lookup service is initiated.
|
void |
close() |
<T> T |
dispatch(AbstractReplicationPacket<T> packet) |
<T> T |
dispatchAsync(AbstractReplicationPacket<T> packet) |
String |
getMyLookupName() |
IReplicationLookupParameters |
getMyRegistrationParameters() |
String |
getMySiteName() |
Uuid |
getMyUuid() |
IServiceExporter |
getServiceExporter() |
void |
initRegistration()
Initialize registration via the lookup service, this method is non blocking, once the
registration is initiated
afterRegistrationInitiated() is called. |
protected boolean |
isAvailable() |
protected void |
onClose() |
protected abstract <T> T |
onDispatch(AbstractReplicationPacket<T> packet)
Called once an incoming packet is dispatched
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
onRegistered
public LusExportedReplicationComponent(String myLookupName, String mySiteName, IServiceExporter serviceExporter, IReplicationLookupRegistrationService lookupService, IReplicationLookupParameters lookupParametersTemplate)
public void initRegistration()
afterRegistrationInitiated()
is called.public IServiceExporter getServiceExporter()
public IReplicationLookupParameters getMyRegistrationParameters()
public String getMyLookupName()
public String getMySiteName()
protected boolean isAvailable()
public Uuid getMyUuid()
public void close()
protected void onClose()
public <T> T dispatch(AbstractReplicationPacket<T> packet) throws RemoteException
RemoteException
public <T> T dispatchAsync(AbstractReplicationPacket<T> packet) throws RemoteException
RemoteException
protected abstract <T> T onDispatch(AbstractReplicationPacket<T> packet) throws RemoteException
RemoteException
protected abstract void afterRegistrationInitiated()
Copyright © GigaSpaces.