public abstract class BaseBackgroundRunnable extends BaseEntity<BaseBackgroundRunnable> implements BackgroundRunnable
com.mgnt.lifecycle.management.backgroundrunner.example that demonstrates how it is done| Constructor and Description |
|---|
BaseBackgroundRunnable() |
| Modifier and Type | Method and Description |
|---|---|
void |
initTimeIntervalParam(java.lang.String valueStr,
TimeInterval defaultValue,
java.lang.String propertyName)
This method parses String value into a
TimeInterval and then invokes method
BackgroundRunnable.setParamValue(TimeInterval, String) to set required property value. |
boolean |
isInitialized()
internally used method
|
void |
setInitialized(boolean initialized)
internally used method
|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetTaskExecutionInterval, setParamValuepublic void initTimeIntervalParam(java.lang.String valueStr,
TimeInterval defaultValue,
java.lang.String propertyName)
TimeInterval and then invokes method
BackgroundRunnable.setParamValue(TimeInterval, String) to set required property value. If parsing failed then default value
is used.initTimeIntervalParam in interface BackgroundRunnablevalueStr - String that contains a Time interval value such as "9h", "3m", "10s" etcdefaultValue - TimeInterval that holds a default value for the property should parsing of valueStr
parameter failspropertyName - The name of the property to be setpublic boolean isInitialized()
BackgroundRunnableisInitialized in interface BackgroundRunnablepublic void setInitialized(boolean initialized)
BackgroundRunnablesetInitialized in interface BackgroundRunnable