congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
SizeStatisticImpl.getTotalSize
Code IndexAdd Tabnine to your IDE (free)

How to use
getTotalSize
method
in
org.apache.activemq.management.SizeStatisticImpl

Best Java code snippets using org.apache.activemq.management.SizeStatisticImpl.getTotalSize (Showing top 20 results out of 315)

origin: apache/activemq

@Override
public long messageSize() {
  return messageSize.getTotalSize();
}
origin: apache/activemq

@Override
public long messageSize() {
  return this.messageSize.getTotalSize();
}
origin: apache/activemq

@Override
public long messageSize() {
  return this.messageSize.getTotalSize();
}
origin: apache/activemq

@Override
public long getInFlightMessageSize() {
  return subscriptionStatistics.getInflightMessageSize().getTotalSize();
}
origin: apache/activemq

@Override
public long getMessageSize() throws IOException {
  return getMessageStoreStatistics().getMessageSize().getTotalSize();
}
origin: apache/activemq

@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());
  }
}
origin: apache/activemq

@Override
public long getStoreMessageSize() {
  MessageStore messageStore = destination.getMessageStore();
  return messageStore != null ? messageStore.getMessageStoreStatistics().getMessageSize().getTotalSize() : 0;
}
origin: apache/activemq

@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();
    }
  }
}
origin: apache/activemq

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());
  }
}
origin: apache/activemq

  recoveredStatistics.getMessageCount().subtract(ackedAndPrepared.size());
  getMessageStoreStatistics().getMessageCount().setCount(recoveredStatistics.getMessageCount().getCount());
  getMessageStoreStatistics().getMessageSize().setTotalSize(recoveredStatistics.getMessageSize().getTotalSize());
} finally {
  indexLock.writeLock().unlock();
origin: org.apache.activemq/activemq-broker

@Override
public long messageSize() {
  return this.messageSize.getTotalSize();
}
origin: org.apache.activemq/activemq-broker

@Override
public long messageSize() {
  return this.messageSize.getTotalSize();
}
origin: org.apache.activemq/activemq-broker

@Override
public long getInFlightMessageSize() {
  return subscriptionStatistics.getInflightMessageSize().getTotalSize();
}
origin: org.apache.activemq/activemq-broker

@Override
public long getMessageSize() throws IOException {
  return getMessageStoreStatistics().getMessageSize().getTotalSize();
}
origin: org.apache.activemq/activemq-broker

@Override
public long getStoreMessageSize() {
  MessageStore messageStore = destination.getMessageStore();
  return messageStore != null ? messageStore.getMessageStoreStatistics().getMessageSize().getTotalSize() : 0;
}
origin: org.apache.activemq/activemq-all

@Override
public long getStoreMessageSize() {
  MessageStore messageStore = destination.getMessageStore();
  return messageStore != null ? messageStore.getMessageStoreStatistics().getMessageSize().getTotalSize() : 0;
}
origin: org.apache.activemq/activemq-osgi

@Override
public long getStoreMessageSize() {
  MessageStore messageStore = destination.getMessageStore();
  return messageStore != null ? messageStore.getMessageStoreStatistics().getMessageSize().getTotalSize() : 0;
}
origin: org.apache.activemq/activemq-broker

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());
  }
}
origin: org.apache.activemq/activemq-all

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());
  }
}
origin: org.apache.activemq/activemq-osgi

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());
  }
}
org.apache.activemq.managementSizeStatisticImplgetTotalSize

Popular methods of SizeStatisticImpl

  • addSize
  • <init>
  • getAverageSize
  • getMaxSize
  • getMinSize
  • reset
  • setEnabled
  • setTotalSize
    Reset the total size to the new value
  • getAveragePerSecond
  • getAveragePerSecondExcludingMinMax
  • getAverageSizeExcludingMinMax
  • isDoReset
  • getAverageSizeExcludingMinMax,
  • isDoReset,
  • setParent,
  • updateSampleTime,
  • getCount,
  • setCount,
  • setMaxSize,
  • setMinSize

Popular in Java

  • Finding current android device location
  • setRequestProperty (URLConnection)
  • setContentView (Activity)
  • compareTo (BigDecimal)
  • Rectangle (java.awt)
    A Rectangle specifies an area in a coordinate space that is enclosed by the Rectangle object's top-
  • RandomAccessFile (java.io)
    Allows reading from and writing to a file in a random-access manner. This is different from the uni-
  • SocketException (java.net)
    This SocketException may be thrown during socket creation or setting options, and is the superclass
  • BitSet (java.util)
    The BitSet class implements abit array [http://en.wikipedia.org/wiki/Bit_array]. Each element is eit
  • Cipher (javax.crypto)
    This class provides access to implementations of cryptographic ciphers for encryption and decryption
  • Scheduler (org.quartz)
    This is the main interface of a Quartz Scheduler. A Scheduler maintains a registry of org.quartz.Job
  • Top 12 Jupyter Notebook extensions
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now