org.jboss.resource.deployment
Class RARDeployment

java.lang.Object
  extended byorg.jboss.mx.util.JBossNotificationBroadcasterSupport (src) 
      extended byorg.jboss.system.ServiceMBeanSupport (src) 
          extended byorg.jboss.system.ServiceDynamicMBeanSupport (src) 
              extended byorg.jboss.resource.deployment.RARDeployment
All Implemented Interfaces:
BootstrapContext (src) , DynamicMBean (src) , MBeanRegistration (src) , NotificationBroadcaster (src) , NotificationEmitter (src) , Service (src) , ServiceMBean (src)

public class RARDeployment
extends ServiceDynamicMBeanSupport (src)
implements BootstrapContext (src)

A resource adapter deployment


Field Summary
protected  ConnectorMetaData (src) cmd
          The meta data
protected  RARDeployer (src) deployer
          Our deployer
protected  DeploymentInfo (src) di
          The deployment info
protected  ResourceAdapter (src) resourceAdapter
          The resource adapter
 
Fields inherited from class org.jboss.system.ServiceMBeanSupport (src)
log, server, SERVICE_CONTROLLER_SIG, serviceName
 
Fields inherited from interface org.jboss.system.ServiceMBean (src)
CREATE_EVENT, CREATED, DESTROY_EVENT, DESTROYED, FAILED, REGISTERED, START_EVENT, STARTED, STARTING, states, STOP_EVENT, STOPPED, STOPPING, UNREGISTERED
 
Constructor Summary
RARDeployment(DeploymentInfo (src)  di)
          Create a new RAR deployment
 
Method Summary
protected  ActivationSpec (src) createActivationSpec(java.lang.Class messagingType, java.util.Collection activationConfig)
           
 java.util.Timer createTimer()
          Creates a new Timer that can be used to perform period work.
protected  void endpointActivation(MessageEndpointFactory (src)  messageEndpointFactory, ActivationSpec (src)  activationSpec)
           
protected  void endpointDeactivation(MessageEndpointFactory (src)  messageEndpointFactory, ActivationSpec (src)  activationSpec)
           
protected  java.lang.Object getInternalAttribute(java.lang.String attribute)
           
protected  MBeanAttributeInfo (src) [] getInternalAttributeInfo()
           
protected  java.lang.String getInternalDescription()
           
protected  MBeanOperationInfo (src) [] getInternalOperationInfo()
           
 WorkManager (src) getWorkManager()
          Get the work manager, the resource adapter should use this for all work on new threads.
 XATerminator (src) getXATerminator()
          Get the XATerminator.
protected  java.lang.Object internalInvoke(java.lang.String actionName, java.lang.Object[] params, java.lang.String[] signature)
           
protected  void startService()
          Sub-classes should override this method to provide custum 'start' logic.
protected  void stopService()
          Sub-classes should override this method to provide custum 'stop' logic.
 
Methods inherited from class org.jboss.system.ServiceDynamicMBeanSupport (src)
getAttribute, getAttributes, getInternalConstructorInfo, getInternalNotificationInfo, getMBeanInfo, invoke, setAttribute, setAttributes, setInternalAttribute
 
Methods inherited from class org.jboss.system.ServiceMBeanSupport (src)
create, createService, destroy, destroyService, getLog, getName, getNextNotificationSequenceNumber, getObjectName, getServer, getServiceName, getState, getStateString, jbossInternalCreate, jbossInternalDescription, jbossInternalDestroy, jbossInternalLifecycle, jbossInternalStart, jbossInternalStop, postDeregister, postRegister, preDeregister, preRegister, start, stop
 
Methods inherited from class org.jboss.mx.util.JBossNotificationBroadcasterSupport (src)
addNotificationListener, getNotificationInfo, handleNotification, removeNotificationListener, removeNotificationListener, sendNotification
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

di

protected DeploymentInfo (src)  di
The deployment info


deployer

protected RARDeployer (src)  deployer
Our deployer


cmd

protected ConnectorMetaData (src)  cmd
The meta data


resourceAdapter

protected ResourceAdapter (src)  resourceAdapter
The resource adapter

Constructor Detail

RARDeployment

public RARDeployment(DeploymentInfo (src)  di)
Create a new RAR deployment

Parameters:
di - the deployment info
Method Detail

createTimer

public java.util.Timer createTimer()
                            throws UnavailableException (src) 
Description copied from interface: BootstrapContext (src)
Creates a new Timer that can be used to perform period work.

Specified by:
createTimer in interface BootstrapContext (src)
Returns:
the timer instance
Throws:
UnavailableException (src) - when not timer is available. It can be retried later.

getWorkManager

public WorkManager (src)  getWorkManager()
Description copied from interface: BootstrapContext (src)
Get the work manager, the resource adapter should use this for all work on new threads.

Specified by:
getWorkManager in interface BootstrapContext (src)
Returns:
the work manager

getXATerminator

public XATerminator (src)  getXATerminator()
Description copied from interface: BootstrapContext (src)
Get the XATerminator. The resource adapter should use this to gain access to the transaction and crash recovery.

Specified by:
getXATerminator in interface BootstrapContext (src)
Returns:
the XATerminator

startService

protected void startService()
                     throws java.lang.Exception
Description copied from class: ServiceMBeanSupport (src)
Sub-classes should override this method to provide custum 'start' logic.

This method is empty, and is provided for convenience when concrete service classes do not need to perform anything specific for this state change.

Overrides:
startService in class ServiceMBeanSupport (src)
Throws:
java.lang.Exception

stopService

protected void stopService()
                    throws java.lang.Exception
Description copied from class: ServiceMBeanSupport (src)
Sub-classes should override this method to provide custum 'stop' logic.

This method is empty, and is provided for convenience when concrete service classes do not need to perform anything specific for this state change.

Overrides:
stopService in class ServiceMBeanSupport (src)
Throws:
java.lang.Exception

getInternalDescription

protected java.lang.String getInternalDescription()
Overrides:
getInternalDescription in class ServiceDynamicMBeanSupport (src)

getInternalAttributeInfo

protected MBeanAttributeInfo (src) [] getInternalAttributeInfo()
Overrides:
getInternalAttributeInfo in class ServiceDynamicMBeanSupport (src)

getInternalAttribute

protected java.lang.Object getInternalAttribute(java.lang.String attribute)
                                         throws AttributeNotFoundException (src) ,
                                                MBeanException (src) ,
                                                ReflectionException (src) 
Overrides:
getInternalAttribute in class ServiceDynamicMBeanSupport (src)
Throws:
AttributeNotFoundException (src)
MBeanException (src)
ReflectionException (src)

getInternalOperationInfo

protected MBeanOperationInfo (src) [] getInternalOperationInfo()
Overrides:
getInternalOperationInfo in class ServiceDynamicMBeanSupport (src)

internalInvoke

protected java.lang.Object internalInvoke(java.lang.String actionName,
                                          java.lang.Object[] params,
                                          java.lang.String[] signature)
                                   throws MBeanException (src) ,
                                          ReflectionException (src) 
Overrides:
internalInvoke in class ServiceDynamicMBeanSupport (src)
Throws:
MBeanException (src)
ReflectionException (src)

createActivationSpec

protected ActivationSpec (src)  createActivationSpec(java.lang.Class messagingType,
                                              java.util.Collection activationConfig)
                                       throws MBeanException (src) 
Throws:
MBeanException (src)

endpointActivation

protected void endpointActivation(MessageEndpointFactory (src)  messageEndpointFactory,
                                  ActivationSpec (src)  activationSpec)
                           throws MBeanException (src) 
Throws:
MBeanException (src)

endpointDeactivation

protected void endpointDeactivation(MessageEndpointFactory (src)  messageEndpointFactory,
                                    ActivationSpec (src)  activationSpec)
                             throws MBeanException (src) 
Throws:
MBeanException (src)