org.ow2.jasmine.probe.collectors.df.internal
Class DiskFree

java.lang.Object
  extended by java.lang.Thread
      extended by org.ow2.jasmine.probe.collectors.df.internal.DiskFree
All Implemented Interfaces:
Runnable

public class DiskFree
extends Thread

Give the disk free space in % for a given disk This command uses the df command. It works only on linux.

Author:
durieuxp

Nested Class Summary
 
Nested classes/interfaces inherited from class java.lang.Thread
Thread.State, Thread.UncaughtExceptionHandler
 
Field Summary
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
DiskFree()
          Constructor
 
Method Summary
 void addCollector(DfCollector col)
          Add a new Collector
 void remove()
          remove it
 void run()
          run method for Thread implementation.
 
Methods inherited from class java.lang.Thread
activeCount, checkAccess, clone, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DiskFree

public DiskFree()
Constructor

Method Detail

remove

public void remove()
remove it


addCollector

public void addCollector(DfCollector col)
Add a new Collector


run

public void run()
run method for Thread implementation.

Specified by:
run in interface Runnable
Overrides:
run in class Thread


Copyright © 2012 OW2 Consortium. All Rights Reserved.