org.servicemix.jboss.deployment
Class JBIService

java.lang.Object
  extended by org.jboss.mx.util.JBossNotificationBroadcasterSupport
      extended by org.jboss.system.ServiceMBeanSupport
          extended by org.servicemix.jboss.deployment.JBIService
All Implemented Interfaces:
javax.management.MBeanRegistration, javax.management.NotificationBroadcaster, javax.management.NotificationEmitter, org.jboss.system.Service, org.jboss.system.ServiceMBean, JBIServiceMBean

public class JBIService
extends org.jboss.system.ServiceMBeanSupport
implements JBIServiceMBean

This is the deployer that handles picking up and deploying a JBI package out to the ServiceMix container.

Author:
Philip Dodds

Field Summary
 
Fields inherited from class org.jboss.system.ServiceMBeanSupport
log, server, SERVICE_CONTROLLER_SIG, serviceName
 
Fields inherited from interface org.jboss.system.ServiceMBean
CREATE_EVENT, CREATED, DESTROY_EVENT, DESTROYED, FAILED, REGISTERED, START_EVENT, STARTED, STARTING, states, STOP_EVENT, STOPPED, STOPPING, UNREGISTERED
 
Constructor Summary
JBIService()
           
 
Method Summary
 void createService()
           
 void destroyService()
           
 java.lang.String getTransactionManager()
          Gets the location of the transaction manager to use
 void installArchive(java.lang.String archive)
          Request the JBI Container install the given archive
 void installServiceMixXml(java.lang.String archive)
          Request the JBI Container install the given ServiceMix XML
 void setTransactionManager(java.lang.String transactionManager)
          Sets the location of the transaction manager to use
 void startService()
           
 void stopService()
           
 void uninstallArchive(java.lang.String archive)
          Request the JBI Container uninstall the given archive
 void uninstallServiceMixXml(java.lang.String archive)
          Request the JBI Container uninstall the given ServiceMix XML
 
Methods inherited from class org.jboss.system.ServiceMBeanSupport
create, destroy, 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
addNotificationListener, getNotificationInfo, handleNotification, removeNotificationListener, removeNotificationListener, sendNotification
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.jboss.system.ServiceMBean
getName, getState, getStateString, jbossInternalLifecycle
 
Methods inherited from interface org.jboss.system.Service
create, destroy, start, stop
 

Constructor Detail

JBIService

public JBIService()
Method Detail

createService

public void createService()
                   throws java.lang.Exception
Overrides:
createService in class org.jboss.system.ServiceMBeanSupport
Throws:
java.lang.Exception

destroyService

public void destroyService()
Overrides:
destroyService in class org.jboss.system.ServiceMBeanSupport

getTransactionManager

public java.lang.String getTransactionManager()
Gets the location of the transaction manager to use

Specified by:
getTransactionManager in interface JBIServiceMBean
Returns:
The transaction manager

installArchive

public void installArchive(java.lang.String archive)
Request the JBI Container install the given archive

Specified by:
installArchive in interface JBIServiceMBean
Parameters:
archive - The name of the archive to install

uninstallArchive

public void uninstallArchive(java.lang.String archive)
Request the JBI Container uninstall the given archive

Specified by:
uninstallArchive in interface JBIServiceMBean
Parameters:
archive - The name of the archive to install

installServiceMixXml

public void installServiceMixXml(java.lang.String archive)
Request the JBI Container install the given ServiceMix XML

Specified by:
installServiceMixXml in interface JBIServiceMBean
Parameters:
archive - The name of the archive to install

uninstallServiceMixXml

public void uninstallServiceMixXml(java.lang.String archive)
Request the JBI Container uninstall the given ServiceMix XML

Specified by:
uninstallServiceMixXml in interface JBIServiceMBean
Parameters:
archive - The name of the archive to install

setTransactionManager

public void setTransactionManager(java.lang.String transactionManager)
Sets the location of the transaction manager to use

Specified by:
setTransactionManager in interface JBIServiceMBean
Parameters:
transactionManager -

startService

public void startService()
                  throws java.lang.Exception
Overrides:
startService in class org.jboss.system.ServiceMBeanSupport
Throws:
java.lang.Exception

stopService

public void stopService()
Overrides:
stopService in class org.jboss.system.ServiceMBeanSupport


Copyright © 2005-2011 FuseSource. All Rights Reserved.