public abstract class CollecTorMain
extends java.lang.Object
implements java.util.Observer, java.lang.Runnable
| Modifier and Type | Field and Description |
|---|---|
protected Configuration |
config |
| Constructor and Description |
|---|
CollecTorMain(Configuration conf) |
| Modifier and Type | Method and Description |
|---|---|
static void |
checkAvailableSpace(java.nio.file.Path location)
Checks the available space for the storage the given path is located on and
logs a warning, if 200 MiB or less are available, and otherwise logs
available space in TRACE level.
|
abstract java.lang.String |
module()
Returns the module name for logging purposes.
|
void |
run()
Log all errors preventing successful completion of the module.
|
protected abstract void |
startProcessing()
Module specific code goes here.
|
void |
update(java.util.Observable obs,
java.lang.Object obj) |
protected Configuration config
public CollecTorMain(Configuration conf)
public final void run()
run in interface java.lang.Runnablepublic void update(java.util.Observable obs,
java.lang.Object obj)
update in interface java.util.Observerprotected abstract void startProcessing()
throws ConfigurationException
ConfigurationExceptionpublic abstract java.lang.String module()
public static void checkAvailableSpace(java.nio.file.Path location)