org.ow2.jonas.camel.jonas_service
Class CamelService

java.lang.Object
  extended by org.ow2.jonas.lib.management.javaee.ManagedObject
      extended by org.ow2.jonas.lib.service.AbsServiceImpl
          extended by org.ow2.jonas.camel.jonas_service.CamelService
All Implemented Interfaces:
CamelServiceMBean, org.ow2.jonas.service.Service

public class CamelService
extends org.ow2.jonas.lib.service.AbsServiceImpl
implements CamelServiceMBean

Camel service. It doesn't do much, this is actually just an empty service so that we can add camel to the list of JOnAS services.

Author:
Guillaume Renault

Constructor Summary
CamelService()
           
 
Method Summary
protected  void doStart()
          Initializes the service.
protected  void doStop()
          Stops all Camel contexts.
 List<String> getCamelContextNames()
          Get the names of Camel contexts managed by the underlying service.
static ObjectName getObjectName(String domainName)
           
 void setCamelService(org.ow2.jonas.camel.service.api.ICamelService camelService)
           
 void setJmxService(org.ow2.jonas.jmx.JmxService jmxService)
           
 
Methods inherited from class org.ow2.jonas.lib.service.AbsServiceImpl
convertToList, doInit, getDomainName, getJonasServerName, getName, getSequenceNumber, getServerProperties, init, isStarted, setName, setServerProperties, start, stop, throwRequirementException, toString
 
Methods inherited from class org.ow2.jonas.lib.management.javaee.ManagedObject
getModelMBean, sendNotification, sendReconfigNotification, sendSaveNotification, setModelMBean
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CamelService

public CamelService()
Method Detail

setJmxService

public void setJmxService(org.ow2.jonas.jmx.JmxService jmxService)
Parameters:
jmxService - JMX service to set.

setCamelService

public void setCamelService(org.ow2.jonas.camel.service.api.ICamelService camelService)
Parameters:
camelService - Camel OSGi service to set.

doStart

protected void doStart()
Initializes the service.

Specified by:
doStart in class org.ow2.jonas.lib.service.AbsServiceImpl

doStop

protected void doStop()
Stops all Camel contexts.

Specified by:
doStop in class org.ow2.jonas.lib.service.AbsServiceImpl

getCamelContextNames

public List<String> getCamelContextNames()
Get the names of Camel contexts managed by the underlying service.

Specified by:
getCamelContextNames in interface CamelServiceMBean
Returns:
Names of Camel contexts managed by the underlying service.

getObjectName

public static ObjectName getObjectName(String domainName)
Parameters:
domainName - Server's domain name.
Returns:
JMX name of the versioning service management bean.


Copyright © 2011 OW2 Consortium. All Rights Reserved.