Class MirrorStatisticsImpl
java.lang.Object
com.gigaspaces.cluster.replication.async.mirror.AbstractMirrorOperations
com.gigaspaces.cluster.replication.async.mirror.MirrorStatisticsImpl
- All Implemented Interfaces:
MirrorOperations,MirrorOperationStatistics,MirrorStatistics,IReplicationInOperation,IReplicationInOperations<MirrorOperationStatistics>,IReplicationInOperationsStatistics<MirrorOperations>,SmartExternalizable,Externalizable,Serializable
public class MirrorStatisticsImpl
extends AbstractMirrorOperations
implements MirrorStatistics, SmartExternalizable, IReplicationInOperationsStatistics<MirrorOperations>
Default implementation of the mirror space statistics. Contains the operation statistics for all
the cluster operations and also statistcis per channel.
- Since:
- 7.1.1
- Author:
- anna
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionMap<String,? extends MirrorOperations> Get mirror statistics for all space instances incoming channels to the mirrorReturn statistics on change operationsReturn statistics on remove operationsgetSourceChannelStatistics(String channelName) Get the mirror statistics per specific space instance replication channel that replicates data to the mirror.Return statistics on update operationsReturn statistics on write operationsvoidvoidsetMetricRegistrator(MetricRegistrator metricRegistrator) toString()voidMethods inherited from class com.gigaspaces.cluster.replication.async.mirror.AbstractMirrorOperations
getDiscardedOperationCount, getFailedOperationCount, getInProgressOperationCount, getOperationCount, getSuccessfulOperationCountMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.gigaspaces.cluster.replication.async.mirror.MirrorOperationStatistics
getDiscardedOperationCount, getFailedOperationCount, getInProgressOperationCount, getOperationCount, getSuccessfulOperationCountMethods inherited from interface com.gigaspaces.serialization.SmartExternalizable
enabledSmartExternalizableWithReference
-
Constructor Details
-
MirrorStatisticsImpl
public MirrorStatisticsImpl()
-
-
Method Details
-
toString
- Overrides:
toStringin classAbstractMirrorOperations
-
setMetricRegistrator
-
getAllSourceChannelStatistics
Description copied from interface:MirrorStatisticsGet mirror statistics for all space instances incoming channels to the mirror- Specified by:
getAllSourceChannelStatisticsin interfaceIReplicationInOperationsStatistics<MirrorOperations>- Specified by:
getAllSourceChannelStatisticsin interfaceMirrorStatistics
-
getSourceChannelStatistics
Description copied from interface:MirrorStatisticsGet the mirror statistics per specific space instance replication channel that replicates data to the mirror. Each space instance has it's own replication channel to the mirror. For example:SpaceInstanceStatistics statistics = spaceInstance.getStatistics(); MirrorStatistics mirrorStat =statistics.getMirrorStatistics(); MirrorBulkStatistics primaryToMirrorStatistics = mirrorStat.getSourceChannelStatistics("mySpace_container1:mySpace"); long bulkCountFromPrimary = primaryToMirrorStatistics.getOperationCount(); long writeCountFromPrimary = primaryToMirrorStatistics.getWriteOperationStatistics().getOperationCount();- Specified by:
getSourceChannelStatisticsin interfaceIReplicationInOperationsStatistics<MirrorOperations>- Specified by:
getSourceChannelStatisticsin interfaceMirrorStatistics- Parameters:
channelName- the name of the source mirror channel. Format : <space-containerName:spaceName>
-
getWriteOperationStatistics
Description copied from interface:MirrorOperationsReturn statistics on write operations- Specified by:
getWriteOperationStatisticsin interfaceIReplicationInOperations<MirrorOperationStatistics>- Specified by:
getWriteOperationStatisticsin interfaceMirrorOperations
-
getUpdateOperationStatistics
Description copied from interface:MirrorOperationsReturn statistics on update operations- Specified by:
getUpdateOperationStatisticsin interfaceIReplicationInOperations<MirrorOperationStatistics>- Specified by:
getUpdateOperationStatisticsin interfaceMirrorOperations
-
getRemoveOperationStatistics
Description copied from interface:MirrorOperationsReturn statistics on remove operations- Specified by:
getRemoveOperationStatisticsin interfaceIReplicationInOperations<MirrorOperationStatistics>- Specified by:
getRemoveOperationStatisticsin interfaceMirrorOperations
-
getChangeOperationStatistics
Description copied from interface:MirrorOperationsReturn statistics on change operations- Specified by:
getChangeOperationStatisticsin interfaceMirrorOperations
-
writeExternal
- Specified by:
writeExternalin interfaceExternalizable- Throws:
IOException
-
readExternal
- Specified by:
readExternalin interfaceExternalizable- Throws:
IOExceptionClassNotFoundException
-