Class MirrorOperationStatisticsImpl
java.lang.Object
com.gigaspaces.cluster.replication.async.mirror.MirrorOperationStatisticsImpl
- All Implemented Interfaces:
MirrorOperationStatistics,IReplicationInOperation,SmartExternalizable,Externalizable,Serializable
public class MirrorOperationStatisticsImpl
extends Object
implements SmartExternalizable, MirrorOperationStatistics
Statistics for single operation type
- Since:
- 7.1
- Author:
- anna
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidadd(MirrorOperationStatistics operationStatistics) longReturns the count of operations that were discarded by the mirror.longReturns the count of operations that failed on the mirrorlongReturns the count of operations that are currently in progress on the mirrorlongReturns the total count of operations that were executed on the mirrorlongReturns the count of operations that were successfully executed on the mirrorvoidvoidvoidvoidvoidvoidregister(MetricRegistrator registrator, String prefix) toString()voidMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.gigaspaces.serialization.SmartExternalizable
enabledSmartExternalizableWithReference
-
Constructor Details
-
MirrorOperationStatisticsImpl
public MirrorOperationStatisticsImpl()Required for Externalizable
-
-
Method Details
-
getOperationCount
public long getOperationCount()Description copied from interface:MirrorOperationStatisticsReturns the total count of operations that were executed on the mirror- Specified by:
getOperationCountin interfaceIReplicationInOperation- Specified by:
getOperationCountin interfaceMirrorOperationStatistics
-
getSuccessfulOperationCount
public long getSuccessfulOperationCount()Description copied from interface:MirrorOperationStatisticsReturns the count of operations that were successfully executed on the mirror- Specified by:
getSuccessfulOperationCountin interfaceIReplicationInOperation- Specified by:
getSuccessfulOperationCountin interfaceMirrorOperationStatistics
-
getFailedOperationCount
public long getFailedOperationCount()Description copied from interface:MirrorOperationStatisticsReturns the count of operations that failed on the mirror- Specified by:
getFailedOperationCountin interfaceIReplicationInOperation- Specified by:
getFailedOperationCountin interfaceMirrorOperationStatistics
-
getDiscardedOperationCount
public long getDiscardedOperationCount()Description copied from interface:MirrorOperationStatisticsReturns the count of operations that were discarded by the mirror. This applies to transient objects.- Specified by:
getDiscardedOperationCountin interfaceIReplicationInOperation- Specified by:
getDiscardedOperationCountin interfaceMirrorOperationStatistics
-
getInProgressOperationCount
public long getInProgressOperationCount()Description copied from interface:MirrorOperationStatisticsReturns the count of operations that are currently in progress on the mirror- Specified by:
getInProgressOperationCountin interfaceIReplicationInOperation- Specified by:
getInProgressOperationCountin interfaceMirrorOperationStatistics
-
incrementOperationCount
public void incrementOperationCount() -
incrementSuccessfulOperationCount
public void incrementSuccessfulOperationCount() -
incrementFailedOperationCount
public void incrementFailedOperationCount() -
incrementDiscardedOperationCount
public void incrementDiscardedOperationCount() -
add
-
toString
-
register
-
writeExternal
- Specified by:
writeExternalin interfaceExternalizable- Throws:
IOException
-
readExternal
- Specified by:
readExternalin interfaceExternalizable- Throws:
IOExceptionClassNotFoundException
-