public class AddWanConfigOperation
extends com.hazelcast.spi.Operation
implements com.hazelcast.nio.serialization.IdentifiedDataSerializable, com.hazelcast.spi.BackupAwareOperation
WanReplicationConfig at runtime.
This operation should be run on partition threads to achieve ordering
with other partition operations (map and cache mutation).
The operation also sends out backup operations to ensure we cover members
which are backups for any partitions for which they are replicas.| Constructor and Description |
|---|
AddWanConfigOperation() |
AddWanConfigOperation(com.hazelcast.config.WanReplicationConfig wanReplicationConfig) |
| Modifier and Type | Method and Description |
|---|---|
int |
getAsyncBackupCount() |
com.hazelcast.spi.Operation |
getBackupOperation() |
int |
getFactoryId() |
int |
getId() |
String |
getServiceName() |
int |
getSyncBackupCount() |
protected void |
readInternal(com.hazelcast.nio.ObjectDataInput in) |
void |
run() |
boolean |
shouldBackup() |
protected void |
writeInternal(com.hazelcast.nio.ObjectDataOutput out) |
afterRun, beforeRun, call, executedLocally, getCallerAddress, getCallerUuid, getCallId, getCallTimeout, getConnection, getInvocationTime, getLogger, getNodeEngine, getOperationResponseHandler, getPartitionId, getReplicaIndex, getResponse, getService, getWaitTimeout, isUrgent, logError, onExecutionFailure, onInvocationException, onSetCallId, readData, requiresExplicitServiceName, returnsResponse, sendResponse, setCallerUuid, setNodeEngine, setOperationResponseHandler, setPartitionId, setReplicaIndex, setService, setServiceName, setValidateTarget, setWaitTimeout, toString, toString, validatesTarget, writeDataclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic AddWanConfigOperation()
public AddWanConfigOperation(com.hazelcast.config.WanReplicationConfig wanReplicationConfig)
public void run()
throws Exception
run in class com.hazelcast.spi.OperationExceptionpublic boolean shouldBackup()
shouldBackup in interface com.hazelcast.spi.BackupAwareOperationpublic int getSyncBackupCount()
getSyncBackupCount in interface com.hazelcast.spi.BackupAwareOperationpublic int getAsyncBackupCount()
getAsyncBackupCount in interface com.hazelcast.spi.BackupAwareOperationpublic com.hazelcast.spi.Operation getBackupOperation()
getBackupOperation in interface com.hazelcast.spi.BackupAwareOperationpublic String getServiceName()
getServiceName in class com.hazelcast.spi.Operationpublic int getFactoryId()
getFactoryId in interface com.hazelcast.nio.serialization.IdentifiedDataSerializablepublic int getId()
getId in interface com.hazelcast.nio.serialization.IdentifiedDataSerializableprotected void writeInternal(com.hazelcast.nio.ObjectDataOutput out)
throws IOException
writeInternal in class com.hazelcast.spi.OperationIOExceptionprotected void readInternal(com.hazelcast.nio.ObjectDataInput in)
throws IOException
readInternal in class com.hazelcast.spi.OperationIOExceptionCopyright © 2022 Hazelcast, Inc.. All Rights Reserved.