Class StartUpController
- java.lang.Object
-
- org.apache.synapse.startup.AbstractStartup
-
- org.apache.synapse.startup.quartz.StartUpController
-
- All Implemented Interfaces:
ManagedLifecycle
,Nameable
,Startup
,SynapseArtifact
public class StartUpController extends AbstractStartup
-
-
Field Summary
-
Fields inherited from class org.apache.synapse.startup.AbstractStartup
artifactContainerName, description, fileName, isEdited, name
-
-
Constructor Summary
Constructors Constructor Description StartUpController()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
destroy()
This method should implement the destroying of the implemented parts of the configuration.void
destroy(boolean removeTask)
Remove the scheduled task completely.QName
getTagQName()
This will return the configuration tag QName of the implemented startuporg.apache.synapse.task.TaskDescription
getTaskDescription()
void
init(SynapseEnvironment synapseEnvironment)
This method should implement the initialization of the implemented parts of the configuration.void
setTaskDescription(org.apache.synapse.task.TaskDescription taskDescription)
-
Methods inherited from class org.apache.synapse.startup.AbstractStartup
getArtifactContainerName, getDescription, getFileName, getName, isEdited, setArtifactContainerName, setDescription, setFileName, setIsEdited, setName
-
-
-
-
Method Detail
-
getTagQName
public QName getTagQName()
Description copied from interface:Startup
This will return the configuration tag QName of the implemented startup- Returns:
- QName representing the configuration element for the startup
-
destroy
public void destroy(boolean removeTask)
Remove the scheduled task completely. So only un-deployment will remove the task. Server node shutdown will keep task intact in the registry.This was introduced as a fix for product-ei#1206.
- Parameters:
removeTask
- whether keep the task or not.
-
destroy
public void destroy()
Description copied from interface:ManagedLifecycle
This method should implement the destroying of the implemented parts of the configuration.
-
init
public void init(SynapseEnvironment synapseEnvironment)
Description copied from interface:ManagedLifecycle
This method should implement the initialization of the implemented parts of the configuration.- Parameters:
synapseEnvironment
- SynapseEnvironment to be used for initialization
-
getTaskDescription
public org.apache.synapse.task.TaskDescription getTaskDescription()
-
setTaskDescription
public void setTaskDescription(org.apache.synapse.task.TaskDescription taskDescription)
-
-