public class WorkflowManager extends ComponentManagerImpl<Workflow> implements WorkflowManagerMBean, WorkflowRuntimeManager
WorkflowManagerMBean
.ComponentManagerImpl.ComponentNotificationType
log
ADAPTER_PREFIX, CHANNEL_PREFIX, EQUALS, ID_PREFIX, JMX_ADAPTER_TYPE, JMX_CHANNEL_TYPE, JMX_CONSUMER_MONITOR_TYPE, JMX_DOMAIN_NAME, JMX_FAILED_MESSAGE_RETRIER_TYPE, JMX_FS_MONITOR_TYPE, JMX_INFLIGHT_TYPE, JMX_LOG_HANDLER_TYPE, JMX_METRICS_TYPE, JMX_MSG_ERR_DIGESTER_TYPE, JMX_NOTIFIER_TYPE, JMX_RETRY_MONITOR_TYPE, JMX_WORKFLOW_TYPE, KEY_ADAPTER, KEY_CHANNEL, KEY_ID, KEY_WORKFLOW, NOTIF_MSG_CLOSED, NOTIF_MSG_CONFIG_UPDATED, NOTIF_MSG_INITIALISED, NOTIF_MSG_RESTARTED, NOTIF_MSG_STARTED, NOTIF_MSG_STOPPED, NOTIF_TYPE_ADAPTER_CONFIG, NOTIF_TYPE_ADAPTER_LIFECYCLE, NOTIF_TYPE_CHANNEL_CONFIG, NOTIF_TYPE_CHANNEL_LIFECYCLE, NOTIF_TYPE_WORKFLOW_CONFIG, NOTIF_TYPE_WORKFLOW_LIFECYCLE, PROPERTY_SEPARATOR, WORKFLOW_PREFIX
Constructor and Description |
---|
WorkflowManager(Workflow w,
ChannelManager owner) |
Modifier and Type | Method and Description |
---|---|
boolean |
addChildJmxComponent(ChildRuntimeInfoComponent comp) |
protected void |
checkTransitionTo(ComponentState futureState)
Check whether the transition is allowed in the context of the current component's (or parent's) state.
|
java.lang.String |
createObjectHierarchyString()
Create an ObjectName key/value pair hierarchy.
|
javax.management.ObjectName |
createObjectName()
Create the object name representation of the mbean.
|
boolean |
equals(java.lang.Object o)
Equality is based on the underlying ObjectName.
|
java.util.Collection<BaseComponentMBean> |
getAllDescendants()
Get all the descendants of this ParentComponent implementation.
|
java.util.Collection<javax.management.ObjectName> |
getChildRuntimeInfoComponents() |
javax.management.MBeanNotificationInfo[] |
getNotificationInfo() |
protected java.lang.String |
getNotificationType(ComponentManagerImpl.ComponentNotificationType type) |
ChannelManager |
getParent()
Get our direct parent component.
|
java.lang.String |
getParentId()
Get the parent's uniqueid.
|
javax.management.ObjectName |
getParentObjectName()
Get the parents ObjectName representation.
|
Workflow |
getWrappedComponent()
Get the component that this implementation manages.
|
int |
hashCode() |
boolean |
injectMessage(SerializableAdaptrisMessage msgToProcess)
Deprecated.
|
SerializableAdaptrisMessage |
injectMessageWithReply(SerializableAdaptrisMessage msgToProcess)
Deprecated.
|
SerializableMessage |
process(SerializableMessage msgToProcess) |
void |
processAsync(SerializableMessage msgToProcess) |
void |
registerMBean()
Register this component (and all children) against the default Platform MBeanServer.
|
boolean |
removeChildJmxComponent(ChildRuntimeInfoComponent comp) |
long |
requestStartTime()
Returns timestamp of the last start time for this component
|
long |
requestStopTime()
Returns timestamp of the last stop time for this component
|
java.lang.String |
toString() |
void |
unregisterMBean()
Unregister this component (and all children) from the default Platform MBeanServer.
|
asXml, closeQuietly, createLifecycleNotification, ensureState, getComponentState, getConfiguration, getUniqueId, getWrappedComponentClassname, marshalAndSendNotification, marshalConfig, registerSelf, requestClose, requestClose, requestInit, requestInit, requestRestart, requestRestart, requestStart, requestStart, requestStop, requestStop, sendConfigUpdateNotification, unregisterSelf
addNotificationListener, handleNotification, removeNotificationListener, removeNotificationListener, sendNotification
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getWrappedComponentClassname
getComponentState, getConfiguration, getUniqueId, requestClose, requestClose, requestInit, requestInit, requestRestart, requestRestart, requestStart, requestStart, requestStop, requestStop
public WorkflowManager(Workflow w, ChannelManager owner) throws javax.management.MalformedObjectNameException, CoreException
javax.management.MalformedObjectNameException
CoreException
public javax.management.ObjectName createObjectName() throws javax.management.MalformedObjectNameException
BaseComponentMBean
createObjectName
in interface BaseComponentMBean
javax.management.MalformedObjectNameException
- on exception.public Workflow getWrappedComponent()
AdapterRuntimeComponent
getWrappedComponent
in interface AdapterRuntimeComponent<Workflow>
public long requestStartTime()
AdapterComponentMBean
requestStartTime
in interface AdapterComponentMBean
public long requestStopTime()
AdapterComponentMBean
requestStopTime
in interface AdapterComponentMBean
@Deprecated public SerializableAdaptrisMessage injectMessageWithReply(SerializableAdaptrisMessage msgToProcess) throws CoreException
WorkflowManagerMBean
injectMessageWithReply
in interface WorkflowManagerMBean
msgToProcess
- an adaptris messageCoreException
- wrapping any underlying Exception@Deprecated public boolean injectMessage(SerializableAdaptrisMessage msgToProcess) throws CoreException
WorkflowManagerMBean
injectMessage
in interface WorkflowManagerMBean
msgToProcess
- an adaptris messageCoreException
- wrapping any underlying Exceptionpublic void processAsync(SerializableMessage msgToProcess) throws InterlokException
processAsync
in interface MessageProcessor
InterlokException
public SerializableMessage process(SerializableMessage msgToProcess) throws InterlokException
process
in interface MessageProcessor
InterlokException
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
protected void checkTransitionTo(ComponentState futureState) throws CoreException
ComponentManagerImpl
checkTransitionTo
in class ComponentManagerImpl<Workflow>
futureState
- the state we want to transition to.CoreException
- if the state transition check fails.public ChannelManager getParent()
ChildComponent
getParent
in interface ChildComponent<ChannelManager>
public java.lang.String getParentId()
ChildComponentMBean
getParentId
in interface ChildComponentMBean
public javax.management.ObjectName getParentObjectName() throws javax.management.MalformedObjectNameException
ChildComponentMBean
getParentObjectName
in interface ChildComponentMBean
javax.management.MalformedObjectNameException
public java.util.Collection<javax.management.ObjectName> getChildRuntimeInfoComponents() throws javax.management.MalformedObjectNameException
getChildRuntimeInfoComponents
in interface ParentRuntimeInfoComponentMBean
javax.management.MalformedObjectNameException
public boolean addChildJmxComponent(ChildRuntimeInfoComponent comp)
addChildJmxComponent
in interface ParentRuntimeInfoComponent
public boolean removeChildJmxComponent(ChildRuntimeInfoComponent comp)
removeChildJmxComponent
in interface ParentRuntimeInfoComponent
public java.lang.String createObjectHierarchyString()
HierarchicalMBean
createObjectHierarchyString
in interface HierarchicalMBean
public java.util.Collection<BaseComponentMBean> getAllDescendants()
AdapterRuntimeComponent
getAllDescendants
in interface AdapterRuntimeComponent<Workflow>
public void registerMBean() throws CoreException
BaseComponentMBean
registerMBean
in interface BaseComponentMBean
CoreException
- wrapping any exceptionManagementFactory.getPlatformMBeanServer()
public void unregisterMBean() throws CoreException
BaseComponentMBean
unregisterMBean
in interface BaseComponentMBean
CoreException
- wrapping any exceptionManagementFactory.getPlatformMBeanServer()
public javax.management.MBeanNotificationInfo[] getNotificationInfo()
getNotificationInfo
in interface javax.management.NotificationBroadcaster
getNotificationInfo
in class javax.management.NotificationBroadcasterSupport
protected java.lang.String getNotificationType(ComponentManagerImpl.ComponentNotificationType type)
getNotificationType
in class ComponentManagerImpl<Workflow>