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 BulkItem.
MirrorStatistics shows the total operation statistics, specific replication channel statistics
and also statistics per operation - WRITE/UPDATE/REMOVE.
Example: 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 ReplicationStatistics API.
| Modifier and Type | Method and Description |
|---|---|
Map<String,? extends MirrorOperations> |
getAllSourceChannelStatistics()
Get mirror statistics for all space instances incoming channels to the mirror
|
MirrorOperations |
getSourceChannelStatistics(String channelName)
Get the mirror statistics per specific space instance replication channel that replicates
data to the mirror.
|
getChangeOperationStatistics, getRemoveOperationStatistics, getUpdateOperationStatistics, getWriteOperationStatisticsgetDiscardedOperationCount, getFailedOperationCount, getInProgressOperationCount, getOperationCount, getSuccessfulOperationCountMirrorOperations 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 : Map<String,? extends MirrorOperations> getAllSourceChannelStatistics()
Copyright © GigaSpaces.