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

How to use
getCurrentSize
method
in
rocks.inspectit.server.cache.IBuffer

Best Java code snippets using rocks.inspectit.server.cache.IBuffer.getCurrentSize (Showing top 1 results out of 315)

origin: inspectIT/inspectIT

/**
 * {@inheritDoc}
 */
@Override
@MethodLog
public CmrStatusData getCmrStatusData() {
  // cmr status data should always report in bytes!
  CmrStatusData cmrStatusData = new CmrStatusData();
  cmrStatusData.setCurrentBufferSize(buffer.getCurrentSize());
  cmrStatusData.setMaxBufferSize(buffer.getMaxSize());
  DefaultData oldestElement = buffer.getOldestElement();
  if (null != oldestElement) {
    cmrStatusData.setBufferOldestElementDate(new Date(oldestElement.getTimeStamp().getTime()));
  }
  DefaultData newestElement = buffer.getNewestElement();
  if (null != newestElement) {
    cmrStatusData.setBufferNewestElementDate(new Date(newestElement.getTimeStamp().getTime()));
  }
  cmrStatusData.setStorageDataSpaceLeft(storageManager.getBytesHardDriveOccupancyLeft());
  cmrStatusData.setStorageMaxDataSpace(storageManager.getMaxBytesHardDriveOccupancy());
  cmrStatusData.setWarnSpaceLeftActive(storageManager.isSpaceWarnActive());
  cmrStatusData.setCanWriteMore(storageManager.canWriteMore());
  cmrStatusData.setUpTime(System.currentTimeMillis() - timeStarted);
  cmrStatusData.setDateStarted(dateStarted);
  cmrStatusData.setDatabaseSize(getDatabaseSize());
  for (IExternalService service : services) {
    cmrStatusData.getExternalServiceStatusMap().put(service.getServiceType(), service.getServiceStatus());
  }
  return cmrStatusData;
}
rocks.inspectit.server.cacheIBuffergetCurrentSize

Javadoc

Returns current size of the buffer.

Popular methods of IBuffer

  • getOldestElement
  • put
    Puts one IBufferElement in the buffer.
  • analyzeNext
    Performs the size analysis of one IBufferElement in the buffer, that is next in the line for analysi
  • clearAll
    Empties buffer.
  • evict
    Performs the eviction from the buffer. The element or elements that needs to be evicted depends on b
  • getMaxSize
    Returns max size of the buffer.
  • getNewestElement
  • getOccupancyPercentage
    Returns current occupancy percentage of the buffer.
  • indexNext
    Performs the indexing of one IBufferElement in the buffer, that is next in the line for indexing.

Popular in Java

  • Making http requests using okhttp
  • findViewById (Activity)
  • onRequestPermissionsResult (Fragment)
  • getExternalFilesDir (Context)
  • ObjectMapper (com.fasterxml.jackson.databind)
    ObjectMapper provides functionality for reading and writing JSON, either to and from basic POJOs (Pl
  • Pointer (com.sun.jna)
    An abstraction for a native pointer data type. A Pointer instance represents, on the Java side, a na
  • InputStream (java.io)
    A readable source of bytes.Most clients will use input streams that read data from the file system (
  • JOptionPane (javax.swing)
  • XPath (javax.xml.xpath)
    XPath provides access to the XPath evaluation environment and expressions. Evaluation of XPath Expr
  • FileUtils (org.apache.commons.io)
    General file manipulation utilities. Facilities are provided in the following areas: * writing to a
  • Top Sublime Text plugins
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