GigaSpaces XAP 9.7.2 API

com.gigaspaces.cluster.replication.async.mirror
Interface MirrorStatistics

All Superinterfaces:
IReplicationInOperation, IReplicationInOperations<MirrorOperationStatistics>, MirrorOperations, MirrorOperationStatistics

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.

Since:
7.1.1
Author:
anna

Method Summary
 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.
 
Methods inherited from interface com.gigaspaces.cluster.replication.async.mirror.MirrorOperations
getChangeOperationStatistics, getRemoveOperationStatistics, getUpdateOperationStatistics, getWriteOperationStatistics
 
Methods inherited from interface com.gigaspaces.cluster.replication.async.mirror.MirrorOperationStatistics
getDiscardedOperationCount, getFailedOperationCount, getInProgressOperationCount, getOperationCount, getSuccessfulOperationCount
 

Method Detail

getSourceChannelStatistics

MirrorOperations getSourceChannelStatistics(String channelName)
Get 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();

Parameters:
channelName - the name of the source mirror channel. Format :

getAllSourceChannelStatistics

Map<String,? extends MirrorOperations> getAllSourceChannelStatistics()
Get mirror statistics for all space instances incoming channels to the mirror


GigaSpaces XAP 9.7.2 API

Copyright © GigaSpaces.