public class StaticRunnable extends Object implements Runnable, Component, Configurable, PluginAware, Serviceable
Runnable
which is configurableRunnable.FireProcess, Runnable.MisfirePolicy
Modifier and Type | Field and Description |
---|---|
protected String |
_cronExpression
The CRON expression for scheduling the job
|
protected boolean |
_deactivatable
Can the runnable be deactivated
|
protected I18nizableText |
_description
The description
|
protected String |
_featureName
The name of the feature that declared this component
|
protected Runnable.FireProcess |
_fireProcess
The fire process
|
protected String |
_id
The id of this extension
|
protected I18nizableText |
_label
The label
|
protected Runnable.MisfirePolicy |
_misfirePolicy
The misfire policy.
|
protected boolean |
_modifiable
Can the runnable be edited
|
protected Map<String,Object> |
_parameterValues
The parameter values
|
protected String |
_pluginName
The name of the plugin that declared this component
|
protected boolean |
_removable
Can the runnable be removed
|
protected SchedulableExtensionPoint |
_schedulableEP
The extension point for
Schedulable s |
protected String |
_schedulableId
The id of the
Schedulable to execute |
Constructor and Description |
---|
StaticRunnable() |
Modifier and Type | Method and Description |
---|---|
protected void |
_configureParameterValues(Configuration paramConfigs)
Configure the values of the parameters
|
void |
configure(Configuration configuration) |
String |
getCronExpression()
Returns the cron expression to base the schedule on.
|
I18nizableText |
getDescription()
Returns the description
|
Runnable.FireProcess |
getFireProcess()
Gets the process of firing, i.e.
|
String |
getId()
Returns the id
|
I18nizableText |
getLabel()
Returns the label
|
Runnable.MisfirePolicy |
getMisfirePolicy()
Gets the misfire policy, i.e.
|
Map<String,Object> |
getParameterValues()
Gets the values of the parameters (from the linked
Schedulable ) |
String |
getSchedulableId()
Gets the identifier of
Schedulable to execute |
UserIdentity |
getUserIdentity()
Gets the user which should be used to launch the runnable task.
|
boolean |
isDeactivatable()
Determines if this runnable can be activate or deactivate
|
boolean |
isModifiable()
Determines if this runnable can be modified
|
boolean |
isRemovable()
Determines if this runnable can be removed
|
boolean |
isVolatile()
Determines if the runnable must not survive to a server restart
|
void |
service(ServiceManager manager) |
void |
setPluginInfo(String pluginName,
String featureName,
String id)
Sets the plugin info relative to the current component.
Note : The feature name may be null if the targeted component in declared at plugin level. |
protected SchedulableExtensionPoint _schedulableEP
Schedulable
sprotected String _pluginName
protected String _featureName
protected I18nizableText _label
protected I18nizableText _description
protected Runnable.FireProcess _fireProcess
protected String _cronExpression
protected String _schedulableId
Schedulable
to executeprotected boolean _removable
protected boolean _modifiable
protected boolean _deactivatable
protected Runnable.MisfirePolicy _misfirePolicy
Runnable.MisfirePolicy.DO_NOTHING
protected Map<String,Object> _parameterValues
public StaticRunnable()
public void service(ServiceManager manager) throws ServiceException
service
in interface Serviceable
ServiceException
public void setPluginInfo(String pluginName, String featureName, String id)
PluginAware
setPluginInfo
in interface PluginAware
pluginName
- Unique identifier for the plugin hosting the extensionfeatureName
- Unique feature identifier (unique for a given pluginName)id
- Unique identifier of this componentpublic void configure(Configuration configuration) throws ConfigurationException
configure
in interface Configurable
ConfigurationException
public I18nizableText getLabel()
Runnable
public I18nizableText getDescription()
Runnable
getDescription
in interface Runnable
public Runnable.FireProcess getFireProcess()
Runnable
getFireProcess
in interface Runnable
public String getCronExpression()
Runnable
Runnable.getFireProcess()
is different from Runnable.FireProcess.CRON
.getCronExpression
in interface Runnable
public String getSchedulableId()
Runnable
Schedulable
to executegetSchedulableId
in interface Runnable
Schedulable
public boolean isRemovable()
Runnable
isRemovable
in interface Runnable
true
if this runnable is removablepublic boolean isModifiable()
Runnable
isModifiable
in interface Runnable
true
if this runnable is modifiablepublic boolean isDeactivatable()
Runnable
isDeactivatable
in interface Runnable
true
if this runnable is deactivatablepublic Runnable.MisfirePolicy getMisfirePolicy()
Runnable
Runnable.getFireProcess()
is different from Runnable.FireProcess.CRON
.getMisfirePolicy
in interface Runnable
public boolean isVolatile()
Runnable
isVolatile
in interface Runnable
public Map<String,Object> getParameterValues()
Runnable
Schedulable
)getParameterValues
in interface Runnable
protected void _configureParameterValues(Configuration paramConfigs) throws ConfigurationException
paramConfigs
- the configurations of the parameter valuesConfigurationException
- if an error occurspublic UserIdentity getUserIdentity()
Runnable
getUserIdentity
in interface Runnable
UserIdentity
of the user