public abstract class BaseBackgroundRunnable extends BaseEntity<BaseBackgroundRunnable> implements BackgroundRunnable
com.mgnt.lifecycle.management.backgroundrunner.example
that demonstrates how it is doneConstructor 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, wait
getTaskExecutionInterval, setParamValue
public 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 BackgroundRunnable
valueStr
- 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()
BackgroundRunnable
isInitialized
in interface BackgroundRunnable
public void setInitialized(boolean initialized)
BackgroundRunnable
setInitialized
in interface BackgroundRunnable