Interface AdapterComponentMBean
- All Superinterfaces:
BaseComponentMBean
- All Known Subinterfaces:
AdapterManagerMBean
,AdapterRuntimeComponent<S>
,AdapterRuntimeManager
,ChannelManagerMBean
,ChannelRuntimeManager
,ChildComponent<S>
,ChildComponentMBean
,WorkflowManagerMBean
,WorkflowRuntimeManager
- All Known Implementing Classes:
AdapterManager
,ChannelManager
,ComponentManagerImpl
,WorkflowManager
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
The standard prefix indicating the parent adapter which is ",adapter="static final String
The standard prefix indicating the parent channel which is ",channel="static final String
static final String
The standard prefix indicating the id of this component, which is @{value}static final String
The standard JMX Prefix specifying domain and type which resolves to "com.adaptris:type=Adapter"static final String
The standard JMX Prefix for channels which resolves to "com.adaptris:type=Channel"static final String
The standard JMX Prefix for a given consumer monitor exposed via JMX which resolves to "com.adaptris:type=ConsumerMonitor"static final String
The standard Domain name for components.static final String
The standard JMX Prefix for aFailedMessageRetrier
that is exposed via JMX which resolves to "com.adaptris:type=FailedMessageRetrier"static final String
The standard JMX Prefix for a given Filesystem monitor exposed via JMX which resolves to "com.adaptris:type=FsMonitor"static final String
The standard JMX Prefix for a given MessageInFlight Interceptor exposed via JMX which resolves to "com.adaptris:type=InFlight"static final String
Deprecated.static final String
The standard JMX Prefix for a given MessageMetricsStatistics exposed via JMX which resolves to "com.adaptris:type=Metrics"static final String
The standard JMX Prefix for a given Message Error Digest exposed via JMX which resolves to "com.adaptris:type=MessageErrorDigest"static final String
The standard JMX Prefix for an Interceptor which emitsNotification
which resolves to "com.adaptris:type=Notifications"static final String
The standard JMX Prefix for a given RetryMessageErrorHandler monitor exposed via JMX which resolves to "com.adaptris:type=RetryMessageHandlerMonitor"static final String
The standard JMX Prefix specifying domain and type which resolves to "com.adaptris:type=Workflow"static final String
ObjectName Key representing the adapter unique-idstatic final String
ObjectName Key representing parent channel unique-idstatic final String
ObjectName Key representing the unique-id of a componentstatic final String
ObjectName Key representing the parent workflow unique-idstatic final String
The standard message for a component being closed '"Component Closed" '.static final String
Standard Message for a configuration update.static final String
The standard message for a component being initialised '"Component Initialised" '.static final String
The standard message for a component being restarted '"Component Restarted" '.static final String
The standard message for a component being started '"Component Started" '.static final String
The standard message for a component being stopped '"Component Stopped" '.static final String
Notification type for adapter config update notifications '"adaptris.jmx.adapter.config" 'static final String
The notification type for adapter lifecycle notifications '"adaptris.jmx.adapter.lifecycle" '.static final String
Notification type for channel config update notifications '"adaptris.jmx.channel.config" 'static final String
The notification type for channel lifecycle notifications '"adaptris.jmx.channel.lifecycle" '.static final String
Notification type for workflow config update notifications '"adaptris.jmx.workflow.config" 'static final String
The notification type for workflow lifecycle notifications '"adaptris.jmx.workflow.lifecycle" '.static final String
static final String
The standard prefix indicating the parent workflow which is ",workflow=" -
Method Summary
Modifier and TypeMethodDescriptionGet the state of this managed runtime component.Get a marshalled copy of the configuration for this item.Get the name of this runtime component.Get the class name that is wrapped by this MBean.void
Deprecated.void
requestClose
(long timeoutMs) Close this component.void
Deprecated.since 3.0.0, userequestInit(long)
instead.void
requestInit
(long timeoutMs) Initialise this component.void
Deprecated.since 3.0.0, userequestRestart(long)
instead.void
requestRestart
(long timeoutMs) Restart this component.void
Deprecated.since 3.0.0, userequestStart(long)
instead.void
requestStart
(long timeoutMs) Start this component.long
Returns timestamp of the last start time for this componentvoid
Deprecated.since 3.0.0, userequestStop(long)
instead.void
requestStop
(long timeout) Stop this component.long
Returns timestamp of the last stop time for this componentMethods inherited from interface com.adaptris.core.runtime.BaseComponentMBean
createObjectName, registerMBean, unregisterMBean
-
Field Details
-
PROPERTY_SEPARATOR
- See Also:
-
EQUALS
- See Also:
-
KEY_ID
ObjectName Key representing the unique-id of a component- See Also:
-
KEY_ADAPTER
ObjectName Key representing the adapter unique-id- See Also:
-
KEY_CHANNEL
ObjectName Key representing parent channel unique-id- See Also:
-
KEY_WORKFLOW
ObjectName Key representing the parent workflow unique-id- See Also:
-
ID_PREFIX
The standard prefix indicating the id of this component, which is @{value}- See Also:
-
ADAPTER_PREFIX
The standard prefix indicating the parent adapter which is ",adapter="- See Also:
-
CHANNEL_PREFIX
The standard prefix indicating the parent channel which is ",channel="- See Also:
-
WORKFLOW_PREFIX
The standard prefix indicating the parent workflow which is ",workflow="- See Also:
-
JMX_DOMAIN_NAME
The standard Domain name for components.- See Also:
-
JMX_ADAPTER_TYPE
The standard JMX Prefix specifying domain and type which resolves to "com.adaptris:type=Adapter"- See Also:
-
JMX_WORKFLOW_TYPE
The standard JMX Prefix specifying domain and type which resolves to "com.adaptris:type=Workflow"- See Also:
-
JMX_CHANNEL_TYPE
The standard JMX Prefix for channels which resolves to "com.adaptris:type=Channel"- See Also:
-
JMX_MSG_ERR_DIGESTER_TYPE
The standard JMX Prefix for a given Message Error Digest exposed via JMX which resolves to "com.adaptris:type=MessageErrorDigest"- See Also:
-
JMX_LOG_HANDLER_TYPE
Deprecated.- See Also:
-
JMX_FAILED_MESSAGE_RETRIER_TYPE
The standard JMX Prefix for aFailedMessageRetrier
that is exposed via JMX which resolves to "com.adaptris:type=FailedMessageRetrier"- See Also:
-
JMX_METRICS_TYPE
The standard JMX Prefix for a given MessageMetricsStatistics exposed via JMX which resolves to "com.adaptris:type=Metrics"- See Also:
-
JMX_INFLIGHT_TYPE
The standard JMX Prefix for a given MessageInFlight Interceptor exposed via JMX which resolves to "com.adaptris:type=InFlight"- See Also:
-
JMX_FS_MONITOR_TYPE
The standard JMX Prefix for a given Filesystem monitor exposed via JMX which resolves to "com.adaptris:type=FsMonitor"- See Also:
-
JMX_CONSUMER_MONITOR_TYPE
The standard JMX Prefix for a given consumer monitor exposed via JMX which resolves to "com.adaptris:type=ConsumerMonitor"- See Also:
-
JMX_RETRY_MONITOR_TYPE
The standard JMX Prefix for a given RetryMessageErrorHandler monitor exposed via JMX which resolves to "com.adaptris:type=RetryMessageHandlerMonitor"- See Also:
-
JMX_NOTIFIER_TYPE
The standard JMX Prefix for an Interceptor which emitsNotification
which resolves to "com.adaptris:type=Notifications"- See Also:
-
NOTIF_TYPE_ADAPTER_LIFECYCLE
The notification type for adapter lifecycle notifications '"adaptris.jmx.adapter.lifecycle" '.- See Also:
-
NOTIF_TYPE_CHANNEL_LIFECYCLE
The notification type for channel lifecycle notifications '"adaptris.jmx.channel.lifecycle" '.- See Also:
-
NOTIF_TYPE_WORKFLOW_LIFECYCLE
The notification type for workflow lifecycle notifications '"adaptris.jmx.workflow.lifecycle" '.- See Also:
-
NOTIF_TYPE_WORKFLOW_CONFIG
Notification type for workflow config update notifications '"adaptris.jmx.workflow.config" '- See Also:
-
NOTIF_TYPE_CHANNEL_CONFIG
Notification type for channel config update notifications '"adaptris.jmx.channel.config" '- See Also:
-
NOTIF_TYPE_ADAPTER_CONFIG
Notification type for adapter config update notifications '"adaptris.jmx.adapter.config" '- See Also:
-
NOTIF_MSG_CONFIG_UPDATED
Standard Message for a configuration update.- See Also:
-
NOTIF_MSG_INITIALISED
The standard message for a component being initialised '"Component Initialised" '.- See Also:
-
NOTIF_MSG_STARTED
The standard message for a component being started '"Component Started" '.- See Also:
-
NOTIF_MSG_STOPPED
The standard message for a component being stopped '"Component Stopped" '.- See Also:
-
NOTIF_MSG_CLOSED
The standard message for a component being closed '"Component Closed" '.- See Also:
-
NOTIF_MSG_RESTARTED
The standard message for a component being restarted '"Component Restarted" '.- See Also:
-
-
Method Details
-
requestInit
Deprecated.since 3.0.0, userequestInit(long)
instead.Initialise this component.- Throws:
CoreException
- wrapping any underlying Exception
-
requestInit
Initialise this component.A timeout is required as Connections within the adapter may be configured to retry forever (if a broker is not available for instance) which would cause this method to never return.
- Parameters:
timeoutMs
- the max timeout to wait for in milliseconds- Throws:
CoreException
- wrapping any underlying adapter exceptionTimeoutException
- if the timeout was exceeded.
-
requestStart
Deprecated.since 3.0.0, userequestStart(long)
instead.Start this component.- Throws:
CoreException
- wrapping any underlying Exception
-
requestStart
Start this component.A timeout is required as Connections within the adapter may be configured to retry forever (if a broker is not available for instance) which would cause this method to never return.
- Parameters:
timeoutMs
- the max timeout to wait for in milliseconds- Throws:
CoreException
- wrapping any underlying adapter exceptionTimeoutException
- if the timeout was exceeded.
-
requestStop
Deprecated.since 3.0.0, userequestStop(long)
instead.stop this component.- Throws:
CoreException
- wrapping any underlying Exception
-
requestStop
Stop this component.A timeout is required as Connections within the adapter may be configured to retry forever (if a broker is not available for instance) which would cause this method to never return.
- Parameters:
timeout
- the max timeout to wait for in milliseconds- Throws:
CoreException
- wrapping any underlying adapter exceptionTimeoutException
- if the timeout was exceeded.
-
requestClose
Deprecated.since 3.0.0, userequestClose(long)
instead.Close this component.- Throws:
CoreException
- wrapping any underlying Exception
-
requestClose
Close this component.A timeout is required as Connections within the adapter may be configured to retry forever (if a broker is not available for instance) which would cause this method to never return.
- Parameters:
timeoutMs
- the max timeout to wait for in milliseconds- Throws:
CoreException
- wrapping any underlying adapter exceptionTimeoutException
- if the timeout was exceeded.
-
requestRestart
Deprecated.since 3.0.0, userequestRestart(long)
instead.Restart this channel.This is semantically equivalent to calling
requestClose()
andrequestStart()
- Throws:
CoreException
- wrapping any underlying Exception
-
requestRestart
Restart this component.This just invokes
requestClose(long)
andrequestStart(long)
in sequence with the timeoutMs parameter. Bear in mind that aTimeoutException
may not occur until 2 * timeoutMs depending on how long the component takes to close and start.- Parameters:
timeoutMs
- the max timeout to pass intorequestClose(long)
andrequestStart(long)
in ms. This means that aTimeoutException
might not occur until 2 * timeoutMs.- Throws:
CoreException
- wrapping any underlying adapter exceptionTimeoutException
- if the timeout was exceeded.
-
requestStartTime
long requestStartTime()Returns timestamp of the last start time for this component- Returns:
- the last start time, or 0 if the component has never been started.
-
requestStopTime
long requestStopTime()Returns timestamp of the last stop time for this component- Returns:
- the last stop time; generally speaking this will be the time when the component was "created" if an explicit stop has never been requested.
-
getComponentState
ComponentState getComponentState()Get the state of this managed runtime component.- Returns:
- the component state
-
getUniqueId
String getUniqueId()Get the name of this runtime component.- Returns:
- the name of this component which is generally semantically equivalent to the corresponding
Workflow.getUniqueId()
orChannel.getUniqueId()
-
getConfiguration
Get a marshalled copy of the configuration for this item.- Returns:
- a string representation of the config for this item.
- Throws:
CoreException
- wrapping any underlying Exception- See Also:
-
getWrappedComponentClassname
String getWrappedComponentClassname()Get the class name that is wrapped by this MBean.- Returns:
- the class name (e.g.
com.adaptris.core.StandardWorkflow
)
-
requestClose(long)
instead.