public final Double getFilteredMessagesCount() { return filteredMessages.getActualValue().getValue(); }
public final Double getReceivedMessageCount() { return receivedMessages.getActualValue().getValue(); }
public void incrementReceivedMessages() { receivedMessages.incrementValue(); }
public void decrementRescuedMessages(int value) { double current = rescuedMessages.getActualValue().getValue(); rescuedMessages.setValue(current - value); }
public StatisticCollector() { receivedMessages = new Collector(); receivedMessages.setApplication(VersionInfo.NAME); receivedMessages.setDescriptor("Received messages"); receivedMessages.setContinuousPrint(false); receivedMessages.setContinuousPrintCount(1000.0); filteredMessages = new Collector(); filteredMessages.setApplication(VersionInfo.NAME); filteredMessages.setDescriptor("Filtered messages"); filteredMessages.setContinuousPrint(false); filteredMessages.setContinuousPrintCount(1000.0); discardedMessages = new Collector(); discardedMessages.setApplication(VersionInfo.NAME); discardedMessages.setDescriptor("Discarded messages"); discardedMessages.setContinuousPrint(false); discardedMessages.setContinuousPrintCount(1000.0); storedMessages = new Collector(); storedMessages.setApplication(VersionInfo.NAME); storedMessages.setDescriptor("Stored messages"); storedMessages.setContinuousPrint(false); storedMessages.setContinuousPrintCount(1000.0); rescuedMessages = new Collector(); rescuedMessages.setApplication(VersionInfo.NAME); rescuedMessages.setDescriptor("Rescued messages"); rescuedMessages.setContinuousPrint(false); rescuedMessages.setContinuousPrintCount(1000.0); }
public void incrementRescuedMessages() { rescuedMessages.incrementValue(); }
public void addRescuedMessages(int value) { double current = rescuedMessages.getActualValue().getValue(); rescuedMessages.setValue(value + current); }
public void addStoredMessages(int value) { double current = storedMessages.getActualValue().getValue(); storedMessages.setValue(value + current); }
public final Double getRescuedMessagesCount() { return rescuedMessages.getActualValue().getValue(); }
public void incrementStoredMessages() { storedMessages.incrementValue(); }
public final Double getStoredMessagesCount() { return storedMessages.getActualValue().getValue(); }
public void incrementDiscardedMessages() { discardedMessages.incrementValue(); }
public final Double getDiscardedMessagesCount() { return discardedMessages.getActualValue().getValue(); }
public void incrementFilteredMessages() { filteredMessages.incrementValue(); }