public class PartitionWideEntryBackupOperation extends MapOperation implements BackupOperation
Modifier and Type | Class and Description |
---|---|
protected static class |
AbstractMultipleEntryOperation.WanEventWrapper |
Modifier and Type | Field and Description |
---|---|
protected EntryBackupProcessor |
backupProcessor |
protected EntryProcessor |
entryProcessor |
protected RecordStore |
recordStore |
protected MapEntries |
responses |
protected List<AbstractMultipleEntryOperation.WanEventWrapper> |
wanEventList |
mapContainer, mapService, mapServiceContext
name
CALL_ID_LOCAL_SKIPPED, GENERIC_PARTITION_ID
Constructor and Description |
---|
PartitionWideEntryBackupOperation() |
PartitionWideEntryBackupOperation(String name,
EntryBackupProcessor backupProcessor) |
Modifier and Type | Method and Description |
---|---|
protected void |
addToResponses(Data key,
Data response) |
void |
afterRun() |
protected Map.Entry |
createMapEntry(Data key,
Object value) |
protected void |
doPostOps(Data key,
Object oldValue,
Map.Entry entry) |
protected boolean |
entryAddedOrUpdated(Map.Entry entry,
Data key,
Object oldValue,
long now) |
protected boolean |
entryAddedOrUpdatedBackup(Map.Entry entry,
Data key) |
protected boolean |
entryRemoved(Map.Entry entry,
Data key,
Object oldValue,
long now) |
protected boolean |
entryRemovedBackup(Map.Entry entry,
Data key) |
protected void |
evict() |
protected long |
getLatencyFrom(long begin) |
protected LocalMapStatsImpl |
getLocalMapStats() |
protected MapEventPublisher |
getMapEventPublisher() |
protected MapServiceContext |
getMapServiceContext() |
protected long |
getNow() |
protected Predicate |
getPredicate() |
protected RecordStore |
getRecordStore() |
Object |
getResponse() |
protected boolean |
hasRegisteredListenerForThisMap() |
void |
innerBeforeRun() |
protected boolean |
keyNotOwnedByThisPartition(Data key) |
protected boolean |
noOp(Map.Entry entry,
Object oldValue)
Entry has not exist and no add operation has been done.
|
protected Object |
nullifyOldValueIfNecessary(Object oldValue,
EntryEventType eventType)
Nullify old value if in memory format is object and operation is not removal
since old and new value in fired event
EntryEvent
may be same due to the object in memory format. |
protected Data |
process(Map.Entry entry) |
protected void |
processBackup(Map.Entry entry) |
protected void |
publishEntryEvent(Data key,
Object value,
Object oldValue,
EntryEventType eventType) |
protected void |
publishWanReplicationEvent(Data key,
Data value,
EntryEventType eventType) |
protected void |
publishWanReplicationEventBackup(Data key,
Object value,
EntryEventType eventType) |
protected void |
publishWanReplicationEventBackups() |
protected void |
put(Data key,
Object value) |
protected void |
readInternal(ObjectDataInput in) |
void |
run() |
void |
setWanEventList(List<AbstractMultipleEntryOperation.WanEventWrapper> wanEventList) |
protected Data |
toData(Object obj) |
protected Object |
toObject(Object data) |
protected void |
writeInternal(ObjectDataOutput out) |
beforeRun, clearNearCache, getServiceName, getThreadId, invalidateNearCache, invalidateNearCache, setMapContainer, setMapService, setThreadId
getName, toString
returnsResponse
getCallerAddress, getCallerUuid, getCallId, getCallTimeout, getConnection, getInvocationTime, getLogger, getNodeEngine, getOperationResponseHandler, getPartitionId, getReplicaIndex, getResponseHandler, getService, getWaitTimeout, isUrgent, logError, onException, onExecutionFailure, onInvocationException, onSetCallId, readData, sendResponse, setCallerUuid, setNodeEngine, setOperationResponseHandler, setPartitionId, setReplicaIndex, setResponseHandler, setService, setServiceName, setValidateTarget, setWaitTimeout, toString, validatesTarget, writeData
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getPartitionId
protected MapEntries responses
protected EntryProcessor entryProcessor
protected EntryBackupProcessor backupProcessor
protected transient RecordStore recordStore
protected List<AbstractMultipleEntryOperation.WanEventWrapper> wanEventList
public PartitionWideEntryBackupOperation()
public PartitionWideEntryBackupOperation(String name, EntryBackupProcessor backupProcessor)
protected Predicate getPredicate()
public Object getResponse()
getResponse
in class AbstractOperation
protected void readInternal(ObjectDataInput in) throws IOException
IOException
protected void writeInternal(ObjectDataOutput out) throws IOException
IOException
public void afterRun() throws Exception
afterRun
in class MapOperation
Exception
protected void publishWanReplicationEventBackups()
protected void publishWanReplicationEventBackup(Data key, Object value, EntryEventType eventType)
public void innerBeforeRun() throws Exception
innerBeforeRun
in class MapOperation
Exception
protected RecordStore getRecordStore()
protected boolean hasRegisteredListenerForThisMap()
protected Object nullifyOldValueIfNecessary(Object oldValue, EntryEventType eventType)
EntryEvent
may be same due to the object in memory format.protected MapEventPublisher getMapEventPublisher()
protected LocalMapStatsImpl getLocalMapStats()
protected boolean noOp(Map.Entry entry, Object oldValue)
protected boolean entryAddedOrUpdated(Map.Entry entry, Data key, Object oldValue, long now)
protected long getNow()
protected void publishEntryEvent(Data key, Object value, Object oldValue, EntryEventType eventType)
protected void publishWanReplicationEvent(Data key, Data value, EntryEventType eventType)
protected MapServiceContext getMapServiceContext()
protected long getLatencyFrom(long begin)
protected void processBackup(Map.Entry entry)
protected boolean keyNotOwnedByThisPartition(Data key)
protected void evict()
public void setWanEventList(List<AbstractMultipleEntryOperation.WanEventWrapper> wanEventList)
Copyright © 2016 Hazelcast, Inc.. All Rights Reserved.