/** * Removes the counter for the given {@code serviceName} and {@code dataStructureName}. */ void removeCounter(String serviceName, String dataStructureName) { getWanEventCounter(serviceName).removeCounter(dataStructureName); }
@Override public void removeWanEventCounters(String serviceName, String objectName) { receivedWanEventCounters.removeCounter(serviceName, objectName); sentWanEventCounters.removeCounter(serviceName, objectName); } }
@Override public WanPublisherEventCounters createNew(String ignored) { return new WanPublisherEventCounters(); } };
@Override public DistributedServiceWanEventCounters getSentEventCounters(String wanReplicationName, String targetGroupName, String serviceName) { return sentWanEventCounters.getWanEventCounter(wanReplicationName, targetGroupName, serviceName); }
/** * Increment the number of sync events for the {@code distributedObjectName}. */ public void incrementSync(String distributedObjectName) { incrementSync(distributedObjectName, 1); }
@Override public void incrementEventCount(DistributedServiceWanEventCounters counters) { counters.incrementRemove(mapName); } }
@Override public DistributedObjectWanEventCounters createNew(String ignored) { return new DistributedObjectWanEventCounters(); } };
@Override public void incrementEventCount(DistributedServiceWanEventCounters counters) { counters.incrementUpdate(mapName); }
/** * 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); } }
/** * 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); }
@Override public DistributedServiceWanEventCounters getSentEventCounters(String wanReplicationName, String targetGroupName, String serviceName) { return sentWanEventCounters.getWanEventCounter(wanReplicationName, targetGroupName, serviceName); }
@Override public void removeWanEventCounters(String serviceName, String objectName) { receivedWanEventCounters.removeCounter(serviceName, objectName); sentWanEventCounters.removeCounter(serviceName, objectName); } }
@Override public WanPublisherEventCounters createNew(String ignored) { return new WanPublisherEventCounters(); } };
/** * Increment the number of sync events for the {@code distributedObjectName}. */ public void incrementSync(String distributedObjectName) { incrementSync(distributedObjectName, 1); }
@Override public void incrementEventCount(DistributedServiceWanEventCounters counters) { counters.incrementRemove(mapName); } }
@Override public DistributedObjectWanEventCounters createNew(String ignored) { return new DistributedObjectWanEventCounters(); } };
@Override public void incrementEventCount(DistributedServiceWanEventCounters counters) { counters.incrementUpdate(mapName); }
@Override public DistributedServiceWanEventCounters getReceivedEventCounters(String serviceName) { return receivedWanEventCounters.getWanEventCounter("", "", serviceName); }
@Override public DistributedServiceWanEventCounters getReceivedEventCounters(String serviceName) { return receivedWanEventCounters.getWanEventCounter("", "", serviceName); }