public abstract class WorkflowInterceptorImpl extends java.lang.Object implements WorkflowInterceptor, StateManagedComponent
| Modifier and Type | Class and Description |
|---|---|
protected static class |
WorkflowInterceptorImpl.WorkflowInterceptorException |
| Modifier and Type | Field and Description |
|---|---|
protected org.slf4j.Logger |
log |
| Modifier | Constructor and Description |
|---|---|
protected |
WorkflowInterceptorImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
changeState(ComponentState s)
Updates the state for the component
ComponentState. |
java.lang.String |
getUniqueId()
Returns the configured unique ID for this object.
|
protected Channel |
parentChannel() |
protected Workflow |
parentWorkflow() |
void |
prepare()
Prepare for initialisation.
|
void |
registerParentChannel(Channel c)
Register the parent channel for this WorkflowInterceptor.
|
void |
registerParentWorkflow(Workflow w)
Register the parent workflow for this WorkflowInterceptor.
|
void |
requestClose()
Request this component is closed.
|
void |
requestInit()
Request this component is init'd.
|
void |
requestStart()
Request this component is started.
|
void |
requestStop()
Request this component is stopped.
|
ComponentState |
retrieveComponentState()
Returns the last recorde
ComponentState. |
void |
setUniqueId(java.lang.String uniqueId) |
protected static boolean |
wasSuccessful(AdaptrisMessage... msgs) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitprocessingStart, workflowEnd, workflowStartclose, init, start, stoppublic void setUniqueId(java.lang.String uniqueId)
public void registerParentChannel(Channel c)
registerParentChannel in interface WorkflowInterceptorc - the channelpublic void registerParentWorkflow(Workflow w)
registerParentWorkflow in interface WorkflowInterceptorw - the workflow.protected Channel parentChannel()
protected Workflow parentWorkflow()
public java.lang.String getUniqueId()
Returns the configured unique ID for this object.
getUniqueId in interface AdaptrisComponentpublic void changeState(ComponentState s)
StateManagedComponent
Updates the state for the component ComponentState.
changeState in interface StateManagedComponentpublic void requestInit()
throws CoreException
StateManagedComponentRequest this component is init'd.
requestInit in interface StateManagedComponentCoreException - wrapping any underlying ExceptionsStateManagedComponent.requestInit()public void requestStart()
throws CoreException
StateManagedComponentRequest this component is started.
requestStart in interface StateManagedComponentCoreException - wrapping any underlying ExceptionsStateManagedComponent.requestStart()public void requestStop()
StateManagedComponentRequest this component is stopped.
requestStop in interface StateManagedComponentStateManagedComponent.requestStop()public void requestClose()
StateManagedComponentRequest this component is closed.
requestClose in interface StateManagedComponentStateManagedComponent.requestClose()public ComponentState retrieveComponentState()
StateManagedComponent
Returns the last recorde ComponentState.
retrieveComponentState in interface StateManagedComponentComponentStatepublic void prepare()
throws CoreException
ComponentLifecycleExtensionprepare in interface ComponentLifecycleExtensionCoreExceptionprotected static boolean wasSuccessful(AdaptrisMessage... msgs)