com.hazelcast.spi
Class AbstractOperation

java.lang.Object
  extended by com.hazelcast.spi.Operation
      extended by com.hazelcast.spi.AbstractOperation
All Implemented Interfaces:
DataSerializable, RemotePropagatable<Operation>
Direct Known Subclasses:
AbstractNamedOperation, AddInterceptorOperation, AssignPartitions, AtomicLongReplicationOperation, AtomicReferenceReplicationOperation, AuthenticationFailureOperation, AuthorizationOperation, AwaitBackupOperation, AwaitOperation, BaseMigrationOperation, BeforeAwaitBackupOperation, BeforeAwaitOperation, CacheReplicationOperation, ClearExpiredOperation, ClientDisconnectionOperation, ClientReAuthOperation, CollectionReplicationOperation, ConfigMismatchOperation, CountDownLatchReplicationOperation, EventServiceImpl.DeregistrationOperation, EventServiceImpl.PostJoinRegistrationOperation, EventServiceImpl.RegistrationOperation, EventServiceImpl.SendEventOperation, GetLockCountOperation, GetRemainingLeaseTimeOperation, GroupMismatchOperation, HasOngoingMigration, HeartbeatOperation, InvalidateNearCacheOperation, IsLockedOperation, IsStillExecutingOperation, JoinCheckOperation, JoinRequestOperation, KeyValueJobOperation, LockBackupOperation, LockOperation, LockReplicationOperation, MapReplicationOperation, MasterClaimOperation, MasterConfirmationOperation, MasterDiscoveryOperation, MemberAttributeChangedOperation, MemberInfoUpdateOperation, MemberRemoveOperation, MergeClustersOperation, MultiMapMigrationOperation, NearCacheKeySetInvalidationOperation, PartitionIteratingOperation, PartitionStateOperation, PostJoinClientOperation, PostJoinMapOperation, PostJoinOperation, PrepareMergeOperation, ProcessingOperation, ProxyServiceImpl.DistributedObjectDestroyOperation, ProxyServiceImpl.PostJoinProxyOperation, QueueReplicationOperation, RemoveInterceptorOperation, ReplicatedMapClearOperation, SafeStateCheckOperation, SemaphoreReplicationOperation, SetMasterOperation, SignalBackupOperation, SignalOperation, StartProcessingJobOperation, TraceableIsStillExecutingOperation, UnlockBackupOperation, UnlockOperation

public abstract class AbstractOperation
extends Operation

Abstract Operation implementation with some basic methods implemented.


Constructor Summary
AbstractOperation()
           
 
Method Summary
 void afterRun()
           
 void beforeRun()
           
 Object getResponse()
           
protected  void readInternal(ObjectDataInput in)
           
 boolean returnsResponse()
           
protected  void writeInternal(ObjectDataOutput out)
           
 
Methods inherited from class com.hazelcast.spi.Operation
getCallerAddress, getCallerUuid, getCallId, getCallTimeout, getConnection, getExecutorName, getInvocationTime, getLogger, getNodeEngine, getPartitionId, getReplicaIndex, getResponseHandler, getService, getServiceName, getWaitTimeout, isUrgent, logError, onException, readData, run, setCallerUuid, setExecutorName, setNodeEngine, setPartitionId, setReplicaIndex, setResponseHandler, setService, setServiceName, setValidateTarget, setWaitTimeout, toString, validatesTarget, writeData
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AbstractOperation

public AbstractOperation()
Method Detail

afterRun

public void afterRun()
              throws Exception
Specified by:
afterRun in class Operation
Throws:
Exception

beforeRun

public void beforeRun()
               throws Exception
Specified by:
beforeRun in class Operation
Throws:
Exception

returnsResponse

public boolean returnsResponse()
Specified by:
returnsResponse in interface RemotePropagatable<Operation>
Specified by:
returnsResponse in class Operation

getResponse

public Object getResponse()
Specified by:
getResponse in class Operation

writeInternal

protected void writeInternal(ObjectDataOutput out)
                      throws IOException
Specified by:
writeInternal in class Operation
Throws:
IOException

readInternal

protected void readInternal(ObjectDataInput in)
                     throws IOException
Specified by:
readInternal in class Operation
Throws:
IOException


Copyright © 2015 Hazelcast, Inc.. All Rights Reserved.