public class PropertyFileMonitor extends EnhancedTimerTask implements Shutdownable
| Constructor and Description |
|---|
PropertyFileMonitor(ApplicationProperties applicationProperties)
Instantiates a new property file monitor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
compute()
Computes the business logic based on the request of subclasses.
|
ApplicationProperties |
getApplicationProperties()
Gets the application properties.
|
static void |
main(String[] args)
The main method.
|
void |
shutdown(ShutdownMode mode)
Shutdowns the backGround
PropertyFileMonitor. |
cancel, compareTo, getElapsedTime, getEvent, getName, getNextExecutionTime, getNoOfExecTimes, getNoOfPendingTimes, getNoOfTimes, getPeriod, getPrevExecutionTime, incrementNoOfExecTimes, isCanceled, isDaemon, isExecuteImmediatelySet, isExpired, isFinished, isPeriodic, isRunning, isSingleExecutable, run, setDaemon, setEvent, setExecuteImmediately, setExpired, setNoOfTimes, setPeriod, setPeriodic, setPrevExecutionTime, setRunning, setSingleExecutable, toString, updateNextExecutionTimepublic PropertyFileMonitor(ApplicationProperties applicationProperties) throws PropertyFileLoaderException
applicationProperties - the application propertiesPropertyFileLoaderException - the property file loader exceptionpublic void shutdown(ShutdownMode mode)
PropertyFileMonitor.shutdown in interface Shutdownablemode - the modestop()public void compute()
Computablecompute in interface Computablecompute in class EnhancedTimerTaskpublic ApplicationProperties getApplicationProperties()
public static void main(String[] args) throws PropertyFileLoaderException
args - the argumentsPropertyFileLoaderException - the property file loader exceptionCopyright © 2016 utils4j. All Rights Reserved.