
RA entity created
activateEntity()
deactivateEntity()
Figure C.1: Resource Adaptor Entity lifecycle state machine
Each state in the lifecycle state machine is discussed below, as are the transitions between these states.
C.2.1 Inactive State
When the resource adaptor entity is created (through use of the Resource Management MBean) it is in the Inactive state.
When a resource adaptor entity is in the Inactive state it may not attempt to provide Rhino with events for processing. If it does
so Rhino will discard the events and inform the resource adaptor entity that the events have been discarded. A resource adaptor
entity may be removed when in the Inactive state.
• Inactive to Activated transition: This transition occurs when the
activateEntity
method is invoked on the Resource
Management MBean.
C.2.2 Activated State
When in the activated state Java object instances representing the resource adaptor entity may create activities, submit events
and end activities.
• Activated to Deactivating transition: This transition occurs when the
deactivateEntity
method is invoked on the
Resource Management MBean.
C.2.3 Deactivating State
This state is entered from the Activated state. When the resource adaptor entity is in this state it is not able to create new
Activities. Activities that exist in Rhino before the resource adaptor entity transitions to this state may continue to have events
submitted on them, and are able to be ended by the resource adaptor. The resource adaptor will remain in this state until all
Activities created by the resource adaptor entity have ended.
• Deactivating to Inactive transition: This transition occurs when Rhino recognises that all Activity objects submitted by the
resource adaptor entity have ended. The resource adaptor entity will remain in the deactivating state until this condition
occurs.
C.3 Configuration Properties
Each resource adaptor entity may include configuration properties, such as address information of network end points, URLs
to external systems etc. Such configuration properties are passed to the resource adaptor entity via the Resource Management
MBean
createEntity
, and
updateConfigurationProperties
methods.
The configuration properties are a Java language String. This String has a mandatory format of comma delimited pairs of the
form ’property-name=value’.
Open Cloud Rhino 1.4.3 Administration Manual v1.1 183
Comentarios a estos manuales