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, wait
processingStart, workflowEnd, workflowStart
close, init, start, stop
public void setUniqueId(java.lang.String uniqueId)
public void registerParentChannel(Channel c)
registerParentChannel
in interface WorkflowInterceptor
c
- the channelpublic void registerParentWorkflow(Workflow w)
registerParentWorkflow
in interface WorkflowInterceptor
w
- the workflow.protected Channel parentChannel()
protected Workflow parentWorkflow()
public java.lang.String getUniqueId()
Returns the configured unique ID for this object.
getUniqueId
in interface AdaptrisComponent
public void changeState(ComponentState s)
StateManagedComponent
Updates the state for the component ComponentState
.
changeState
in interface StateManagedComponent
public void requestInit() throws CoreException
StateManagedComponent
Request this component is init'd.
requestInit
in interface StateManagedComponent
CoreException
- wrapping any underlying ExceptionsStateManagedComponent.requestInit()
public void requestStart() throws CoreException
StateManagedComponent
Request this component is started.
requestStart
in interface StateManagedComponent
CoreException
- wrapping any underlying ExceptionsStateManagedComponent.requestStart()
public void requestStop()
StateManagedComponent
Request this component is stopped.
requestStop
in interface StateManagedComponent
StateManagedComponent.requestStop()
public void requestClose()
StateManagedComponent
Request this component is closed.
requestClose
in interface StateManagedComponent
StateManagedComponent.requestClose()
public ComponentState retrieveComponentState()
StateManagedComponent
Returns the last recorde ComponentState
.
retrieveComponentState
in interface StateManagedComponent
ComponentState
public void prepare() throws CoreException
ComponentLifecycleExtension
prepare
in interface ComponentLifecycleExtension
CoreException
protected static boolean wasSuccessful(AdaptrisMessage... msgs)