@Override public long messageSize() { return messageSize.getTotalSize(); }
@Override public long messageSize() { return this.messageSize.getTotalSize(); }
@Override public long messageSize() { return this.messageSize.getTotalSize(); }
@Override public long getInFlightMessageSize() { return subscriptionStatistics.getInflightMessageSize().getTotalSize(); }
@Override public long getMessageSize() throws IOException { return getMessageStoreStatistics().getMessageSize().getTotalSize(); }
@Override public void writePayload(final MessageStoreStatistics object, final DataOutput dataOut) throws IOException { dataOut.writeBoolean(null != object); if (object != null) { dataOut.writeLong(object.getMessageCount().getCount()); dataOut.writeLong(object.getMessageSize().getTotalSize()); dataOut.writeLong(object.getMessageSize().getMaxSize()); dataOut.writeLong(object.getMessageSize().getMinSize()); dataOut.writeLong(object.getMessageSize().getCount()); } }
@Override public long getStoreMessageSize() { MessageStore messageStore = destination.getMessageStore(); return messageStore != null ? messageStore.getMessageStoreStatistics().getMessageSize().getTotalSize() : 0; }
@Override public long getMessageSize(String clientId, String subscriptionName) throws IOException { final String subscriptionKey = subscriptionKey(clientId, subscriptionName); if (isEnableSubscriptionStatistics()) { return this.messageStoreSubStats.getMessageSize(subscriptionKey).getTotalSize(); } else { indexLock.writeLock().lock(); try { return pageFile.tx().execute(new Transaction.CallableClosure<Long, IOException>() { @Override public Long execute(Transaction tx) throws IOException { StoredDestination sd = getStoredDestination(dest, tx); LastAck cursorPos = getLastAck(tx, sd, subscriptionKey); if (cursorPos == null) { // The subscription might not exist. return 0l; } return getStoredMessageSize(tx, sd, subscriptionKey); } }); } finally { indexLock.writeLock().unlock(); } } }
public void removeSubscription(String subKey) { SubscriptionStatistics subStats = subStatistics.remove(subKey); //Subtract from the parent if (subStats != null) { getMessageCount().subtract(subStats.getMessageCount().getCount()); getMessageSize().addSize(-subStats.getMessageSize().getTotalSize()); } }
recoveredStatistics.getMessageCount().subtract(ackedAndPrepared.size()); getMessageStoreStatistics().getMessageCount().setCount(recoveredStatistics.getMessageCount().getCount()); getMessageStoreStatistics().getMessageSize().setTotalSize(recoveredStatistics.getMessageSize().getTotalSize()); } finally { indexLock.writeLock().unlock();
@Override public long messageSize() { return this.messageSize.getTotalSize(); }
@Override public long messageSize() { return this.messageSize.getTotalSize(); }
@Override public long getInFlightMessageSize() { return subscriptionStatistics.getInflightMessageSize().getTotalSize(); }
@Override public long getMessageSize() throws IOException { return getMessageStoreStatistics().getMessageSize().getTotalSize(); }
@Override public long getStoreMessageSize() { MessageStore messageStore = destination.getMessageStore(); return messageStore != null ? messageStore.getMessageStoreStatistics().getMessageSize().getTotalSize() : 0; }
@Override public long getStoreMessageSize() { MessageStore messageStore = destination.getMessageStore(); return messageStore != null ? messageStore.getMessageStoreStatistics().getMessageSize().getTotalSize() : 0; }
@Override public long getStoreMessageSize() { MessageStore messageStore = destination.getMessageStore(); return messageStore != null ? messageStore.getMessageStoreStatistics().getMessageSize().getTotalSize() : 0; }
public void removeSubscription(String subKey) { SubscriptionStatistics subStats = subStatistics.remove(subKey); //Subtract from the parent if (subStats != null) { getMessageCount().subtract(subStats.getMessageCount().getCount()); getMessageSize().addSize(-subStats.getMessageSize().getTotalSize()); } }
public void removeSubscription(String subKey) { SubscriptionStatistics subStats = subStatistics.remove(subKey); //Subtract from the parent if (subStats != null) { getMessageCount().subtract(subStats.getMessageCount().getCount()); getMessageSize().addSize(-subStats.getMessageSize().getTotalSize()); } }
public void removeSubscription(String subKey) { SubscriptionStatistics subStats = subStatistics.remove(subKey); //Subtract from the parent if (subStats != null) { getMessageCount().subtract(subStats.getMessageCount().getCount()); getMessageSize().addSize(-subStats.getMessageSize().getTotalSize()); } }