public interface MirrorStatistics extends MirrorOperations
Interface for mirror operation statistics. All mirror operations are executed in bulks.
Each bulk can contain several operations that can be one of the following: WRITE,REMOVE,UPDATE. See
MirrorStatistics shows the total operation statistics, specific replication channel statistics and also
statistics per operation - WRITE/UPDATE/REMOVE.
SpaceInstanceStatistics statistics = spaceInstance.getStatistics();
MirrorStatistics mirrorStat =statistics.getMirrorStatistics();
long totalOperationsCount = mirrorStat.getOperationCount();
long totalSuccessfulOperationsCount = mirrorStat.getSuccessfulOperationCount();
long totalOperationsCount = mirrorStat.getFailedOperationCount();
long totalWriteCount = mirrorStat.getWriteOperationStatistics().getOperationCount();
Mirror Channels statistics shows only operations that belong to specific space. This might be useful when monitoring a connection between specific space and the mirror.
To get information about what is sent to the mirror by the cluster spaces, use the
|Modifier and Type||Method and Description|
Get mirror statistics for all space instances incoming channels to the mirror
Get the mirror statistics per specific space instance replication channel that replicates data to the mirror.
getChangeOperationStatistics, getRemoveOperationStatistics, getUpdateOperationStatistics, getWriteOperationStatistics
MirrorOperations getSourceChannelStatistics(String channelName)
SpaceInstanceStatistics statistics = spaceInstance.getStatistics(); MirrorStatistics mirrorStat =statistics.getMirrorStatistics(); MirrorBulkStatistics primaryToMirrorStatistics = mirrorStat.getSourceChannelStatistics("mySpace_container1:mySpace"); long bulkCountFromPrimary = primaryToMirrorStatistics.getOperationCount(); long writeCountFromPrimary = primaryToMirrorStatistics.getWriteOperationStatistics().getOperationCount();
channelName- the name of the source mirror channel. Format :
Copyright © GigaSpaces.