/** * Removes the counter for the given {@code serviceName} and {@code dataStructureName}. */ public void removeCounter(String serviceName, String dataStructureName) { for (WanPublisherEventCounters publisherWanCounterContainer : eventCounterMap.values()) { publisherWanCounterContainer.removeCounter(serviceName, dataStructureName); } }
/** * 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); }
@Override public WanPublisherEventCounters createNew(String ignored) { return new WanPublisherEventCounters(); } };
/** * 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}. */ public void removeCounter(String serviceName, String dataStructureName) { for (WanPublisherEventCounters publisherWanCounterContainer : eventCounterMap.values()) { publisherWanCounterContainer.removeCounter(serviceName, dataStructureName); } }
/** * Removes the counter for the given {@code serviceName} and {@code dataStructureName}. */ void removeCounter(String serviceName, String dataStructureName) { getWanEventCounter(serviceName).removeCounter(dataStructureName); }
@Override public WanPublisherEventCounters createNew(String ignored) { return new WanPublisherEventCounters(); } };