FileSystemUsage.getFree
Code IndexAdd Codota to your IDE (free)

Best Java code snippets using org.hyperic.sigar.FileSystemUsage.getFree (Showing top 11 results out of 315)

  • Common ways to obtain FileSystemUsage
private void myMethod () {
FileSystemUsage f =
  • Sigar sigar;String str;sigar.getFileSystemUsage(str)
  • SigarProxy sigarProxy;String str;sigarProxy.getFileSystemUsage(str)
  • Smart code suggestions by Codota
}
origin: stagemonitor/stagemonitor

  @Override
  public Long getValue() {
    return getSnapshot().getFree() * 1024;
  }
});
origin: scouter-project/scouter

used = usage.getTotal() - usage.getFree();
avail = usage.getAvail();
total = usage.getTotal();
origin: Graylog2/graylog2-server

if (fileSystemUsage != null) {
  total = fileSystemUsage.getTotal() * 1024;
  free = fileSystemUsage.getFree() * 1024;
  available = fileSystemUsage.getAvail() * 1024;
  used = fileSystemUsage.getUsed() * 1024;
origin: scouter-project/scouter

used = usage.getTotal() - usage.getFree();
avail = usage.getAvail();
total = usage.getTotal();
origin: org.graylog2/graylog2-server

if (fileSystemUsage != null) {
  total = fileSystemUsage.getTotal() * 1024;
  free = fileSystemUsage.getFree() * 1024;
  available = fileSystemUsage.getAvail() * 1024;
  used = fileSystemUsage.getUsed() * 1024;
origin: org.stagemonitor/stagemonitor-os

  @Override
  public Long getValue() {
    return getSnapshot().getFree() * 1024;
  }
});
origin: org.graylog2/graylog2-shared

if (fileSystemUsage != null) {
  total = fileSystemUsage.getTotal() * 1024;
  free = fileSystemUsage.getFree() * 1024;
  available = fileSystemUsage.getAvail() * 1024;
  used = fileSystemUsage.getUsed() * 1024;
origin: cb372/metrics-sigar

public List<FileSystem> filesystems() {
  List<FileSystem> result = new ArrayList<FileSystem>();
  org.hyperic.sigar.FileSystem[] fss = null;
  try {
    fss = sigar.getFileSystemList(); 
  } catch (SigarException e) {
    // give up
    return result;
  }
  if (fss == null) {
    return result;
  }
  for (org.hyperic.sigar.FileSystem fs: fss) {
    long totalSizeKB = 0L;
    long freeSpaceKB = 0L;
    try {
      FileSystemUsage usage = sigar.getFileSystemUsage(fs.getDirName());
      totalSizeKB = usage.getTotal();
      freeSpaceKB = usage.getFree();
    } catch (SigarException e) {
      // ignore
    }
    result.add(FileSystem.fromSigarBean(fs, totalSizeKB, freeSpaceKB));
  } 
  return result;
}
origin: com.tomitribe.tribestream/tribestream-metrics-core

final FileSystemUsage stats = instance.getFileSystemUsage(dirName);
fsInfo.setAvailableMb(SizeUnit.KILOBYTES.toMegabytes(stats.getAvail()));
fsInfo.setFreeMb(SizeUnit.KILOBYTES.toMegabytes(stats.getFree()));
fsInfo.setUsedMb(SizeUnit.KILOBYTES.toMegabytes(stats.getUsed()));
fsInfo.setTotalMb(SizeUnit.KILOBYTES.toMegabytes(stats.getTotal()));
origin: kg.apc/perfmon

  break;
case FREE:
  val += usage.getFree();
  factor = dividingFactor;
  break;
origin: undera/perfmon-agent

  break;
case FREE:
  val += usage.getFree();
  factor = dividingFactor;
  break;
org.hyperic.sigarFileSystemUsagegetFree

Popular methods of FileSystemUsage

  • getTotal
  • getUsed
  • getFiles
  • getFreeFiles
  • getUsePercent
  • getDiskReadBytes
  • getDiskWriteBytes
  • getAvail
  • getDiskQueue
  • getDiskServiceTime
  • getDiskReads
  • getDiskWrites
  • getDiskReads,
  • getDiskWrites

Popular in Java

  • Finding current android device location
  • getSupportFragmentManager (FragmentActivity)
  • findViewById (Activity)
  • compareTo (BigDecimal)
    Compares this BigDecimal with the specified BigDecimal. Two BigDecimal objects that are equal in val
  • BigInteger (java.math)
    An immutable arbitrary-precision signed integer.FAST CRYPTOGRAPHY This implementation is efficient f
  • URL (java.net)
    A Uniform Resource Locator that identifies the location of an Internet resource as specified by RFC
  • Deque (java.util)
    A linear collection that supports element insertion and removal at both ends. The name deque is shor
  • Semaphore (java.util.concurrent)
    A counting semaphore. Conceptually, a semaphore maintains a set of permits. Each #acquire blocks if
  • JCheckBox (javax.swing)
  • SAXParseException (org.xml.sax)
    Encapsulate an XML parse error or warning.> This module, both source code and documentation, is in t

For IntelliJ IDEA,
Android Studio or Eclipse

  • Search for JavaScript code betaCodota IntelliJ IDEA pluginCodota Android Studio pluginCode IndexSign in
  • EnterpriseFAQAboutBlogContact Us
  • Plugin user guideTerms of usePrivacy policyCodeboxFind Usages
Add Codota to your IDE (free)