public class WorkflowManager extends ComponentManagerImpl<Workflow> implements WorkflowManagerMBean, WorkflowRuntimeManager
WorkflowManagerMBean.ComponentManagerImpl.ComponentNotificationTypelogADAPTER_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, unregisterSelfaddNotificationListener, handleNotification, removeNotificationListener, removeNotificationListener, sendNotificationclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetWrappedComponentClassnamegetComponentState, getConfiguration, getUniqueId, requestClose, requestClose, requestInit, requestInit, requestRestart, requestRestart, requestStart, requestStart, requestStop, requestStoppublic WorkflowManager(Workflow w, ChannelManager owner) throws javax.management.MalformedObjectNameException, CoreException
javax.management.MalformedObjectNameExceptionCoreExceptionpublic javax.management.ObjectName createObjectName()
throws javax.management.MalformedObjectNameException
BaseComponentMBeancreateObjectName in interface BaseComponentMBeanjavax.management.MalformedObjectNameException - on exception.public Workflow getWrappedComponent()
AdapterRuntimeComponentgetWrappedComponent in interface AdapterRuntimeComponent<Workflow>public long requestStartTime()
AdapterComponentMBeanrequestStartTime in interface AdapterComponentMBeanpublic long requestStopTime()
AdapterComponentMBeanrequestStopTime in interface AdapterComponentMBean@Deprecated public SerializableAdaptrisMessage injectMessageWithReply(SerializableAdaptrisMessage msgToProcess) throws CoreException
WorkflowManagerMBeaninjectMessageWithReply in interface WorkflowManagerMBeanmsgToProcess - an adaptris messageCoreException - wrapping any underlying Exception@Deprecated public boolean injectMessage(SerializableAdaptrisMessage msgToProcess) throws CoreException
WorkflowManagerMBeaninjectMessage in interface WorkflowManagerMBeanmsgToProcess - an adaptris messageCoreException - wrapping any underlying Exceptionpublic void processAsync(SerializableMessage msgToProcess) throws InterlokException
processAsync in interface MessageProcessorInterlokExceptionpublic SerializableMessage process(SerializableMessage msgToProcess) throws InterlokException
process in interface MessageProcessorInterlokExceptionpublic boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectprotected void checkTransitionTo(ComponentState futureState) throws CoreException
ComponentManagerImplcheckTransitionTo in class ComponentManagerImpl<Workflow>futureState - the state we want to transition to.CoreException - if the state transition check fails.public ChannelManager getParent()
ChildComponentgetParent in interface ChildComponent<ChannelManager>public java.lang.String getParentId()
ChildComponentMBeangetParentId in interface ChildComponentMBeanpublic javax.management.ObjectName getParentObjectName()
throws javax.management.MalformedObjectNameException
ChildComponentMBeangetParentObjectName in interface ChildComponentMBeanjavax.management.MalformedObjectNameExceptionpublic java.util.Collection<javax.management.ObjectName> getChildRuntimeInfoComponents()
throws javax.management.MalformedObjectNameException
getChildRuntimeInfoComponents in interface ParentRuntimeInfoComponentMBeanjavax.management.MalformedObjectNameExceptionpublic boolean addChildJmxComponent(ChildRuntimeInfoComponent comp)
addChildJmxComponent in interface ParentRuntimeInfoComponentpublic boolean removeChildJmxComponent(ChildRuntimeInfoComponent comp)
removeChildJmxComponent in interface ParentRuntimeInfoComponentpublic java.lang.String createObjectHierarchyString()
HierarchicalMBeancreateObjectHierarchyString in interface HierarchicalMBeanpublic java.util.Collection<BaseComponentMBean> getAllDescendants()
AdapterRuntimeComponentgetAllDescendants in interface AdapterRuntimeComponent<Workflow>public void registerMBean()
throws CoreException
BaseComponentMBeanregisterMBean in interface BaseComponentMBeanCoreException - wrapping any exceptionManagementFactory.getPlatformMBeanServer()public void unregisterMBean()
throws CoreException
BaseComponentMBeanunregisterMBean in interface BaseComponentMBeanCoreException - wrapping any exceptionManagementFactory.getPlatformMBeanServer()public javax.management.MBeanNotificationInfo[] getNotificationInfo()
getNotificationInfo in interface javax.management.NotificationBroadcastergetNotificationInfo in class javax.management.NotificationBroadcasterSupportprotected java.lang.String getNotificationType(ComponentManagerImpl.ComponentNotificationType type)
getNotificationType in class ComponentManagerImpl<Workflow>