Class WanEventCounters


  • public class WanEventCounters
    extends java.lang.Object
    Counters for WAN events for a single distributed object type (map or cache). This class may contain counters for a single WAN publisher or multiple WAN publishers, depending on its usage.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.concurrent.ConcurrentMap<java.lang.String,​WanEventCounters.DistributedObjectWanEventCounters> getEventCounterMap()
      Returns a map from distributed object name to WanEventCounters.DistributedObjectWanEventCounters.
      void incrementDropped​(java.lang.String distributedObjectName)
      Increment the number of dropped events for the distributedObjectName.
      void incrementRemove​(java.lang.String distributedObjectName)
      Increment the number of remove events for the distributedObjectName.
      void incrementSync​(java.lang.String distributedObjectName)
      Increment the number of sync events for the distributedObjectName.
      void incrementSync​(java.lang.String distributedObjectName, int count)
      Increment the number of sync events for the distributedObjectName by count.
      void incrementUpdate​(java.lang.String distributedObjectName)
      Increment the number of update events for the distributedObjectName.
      void removeCounter​(java.lang.String dataStructureName)
      Removes the counter for the given dataStructureName.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • WanEventCounters

        public WanEventCounters()
    • Method Detail

      • incrementSync

        public void incrementSync​(java.lang.String distributedObjectName)
        Increment the number of sync events for the distributedObjectName.
      • incrementSync

        public void incrementSync​(java.lang.String distributedObjectName,
                                  int count)
        Increment the number of sync events for the distributedObjectName by count.
      • incrementUpdate

        public void incrementUpdate​(java.lang.String distributedObjectName)
        Increment the number of update events for the distributedObjectName.
      • incrementRemove

        public void incrementRemove​(java.lang.String distributedObjectName)
        Increment the number of remove events for the distributedObjectName.
      • incrementDropped

        public void incrementDropped​(java.lang.String distributedObjectName)
        Increment the number of dropped events for the distributedObjectName.
      • removeCounter

        public void removeCounter​(java.lang.String dataStructureName)
        Removes the counter for the given dataStructureName.