/** * Removes the counter for the given {@code serviceName} and {@code dataStructureName}. */ void removeCounter(String serviceName, String dataStructureName) { getWanEventCounter(serviceName).removeCounter(dataStructureName); }
/** * Returns the {@link DistributedServiceWanEventCounters} for the given {@code serviceName} */ public DistributedServiceWanEventCounters getWanEventCounter(String wanReplicationName, String targetGroupName, String serviceName) { final String wanPublisherId = wanReplicationName + ":" + targetGroupName; final WanPublisherEventCounters serviceWanEventCounters = getOrPutIfAbsent(eventCounterMap, wanPublisherId, WAN_EVENT_COUNTER_CONSTRUCTOR_FN); return serviceWanEventCounters.getWanEventCounter(serviceName); }
/** * Removes the counter for the given {@code serviceName} and {@code dataStructureName}. */ void removeCounter(String serviceName, String dataStructureName) { getWanEventCounter(serviceName).removeCounter(dataStructureName); }
/** * Returns the {@link DistributedServiceWanEventCounters} for the given {@code serviceName} */ public DistributedServiceWanEventCounters getWanEventCounter(String wanReplicationName, String targetGroupName, String serviceName) { final String wanPublisherId = wanReplicationName + ":" + targetGroupName; final WanPublisherEventCounters serviceWanEventCounters = getOrPutIfAbsent(eventCounterMap, wanPublisherId, WAN_EVENT_COUNTER_CONSTRUCTOR_FN); return serviceWanEventCounters.getWanEventCounter(serviceName); }