public class FileStoreMonitor extends ActiveMQScheduledComponent
Modifier and Type | Class and Description |
---|---|
static interface |
FileStoreMonitor.Callback |
Constructor and Description |
---|
FileStoreMonitor(ScheduledExecutorService scheduledExecutorService,
Executor executor,
long checkPeriod,
TimeUnit timeUnit,
double maxUsage) |
Modifier and Type | Method and Description |
---|---|
FileStoreMonitor |
addCallback(FileStoreMonitor.Callback callback) |
FileStoreMonitor |
addStore(File file) |
FileStoreMonitor |
addStore(FileStore store) |
protected double |
calculateUsage(FileStore store) |
double |
getMaxUsage() |
void |
run() |
FileStoreMonitor |
setMaxUsage(double maxUsage) |
void |
tick() |
delay, getPeriod, getThreadFactory, getTimeUnit, isStarted, setPeriod, setTimeUnit, start, stop
public FileStoreMonitor(ScheduledExecutorService scheduledExecutorService, Executor executor, long checkPeriod, TimeUnit timeUnit, double maxUsage)
public FileStoreMonitor addCallback(FileStoreMonitor.Callback callback)
public FileStoreMonitor addStore(File file) throws IOException
IOException
public FileStoreMonitor addStore(FileStore store)
public void run()
public void tick()
public double getMaxUsage()
public FileStoreMonitor setMaxUsage(double maxUsage)
protected double calculateUsage(FileStore store) throws IOException
IOException
Copyright © 2017 JBoss by Red Hat. All rights reserved.