Class ManagedService

    • Constructor Detail

      • ManagedService

        public ManagedService​(org.apache.camel.CamelContext context,
                              org.apache.camel.Service service)
    • Method Detail

      • init

        public void init​(org.apache.camel.spi.ManagementStrategy strategy)
      • isStaticService

        public boolean isStaticService()
        Specified by:
        isStaticService in interface org.apache.camel.api.management.mbean.ManagedServiceMBean
      • getService

        public org.apache.camel.Service getService()
      • getContext

        public org.apache.camel.CamelContext getContext()
      • getRoute

        public org.apache.camel.Route getRoute()
      • setRoute

        public void setRoute​(org.apache.camel.Route route)
      • getState

        public String getState()
        Specified by:
        getState in interface org.apache.camel.api.management.mbean.ManagedServiceMBean
      • getCamelId

        public String getCamelId()
        Specified by:
        getCamelId in interface org.apache.camel.api.management.mbean.ManagedServiceMBean
      • getCamelManagementName

        public String getCamelManagementName()
        Specified by:
        getCamelManagementName in interface org.apache.camel.api.management.mbean.ManagedServiceMBean
      • getRouteId

        public String getRouteId()
        Specified by:
        getRouteId in interface org.apache.camel.api.management.mbean.ManagedServiceMBean
      • getServiceType

        public String getServiceType()
        Specified by:
        getServiceType in interface org.apache.camel.api.management.mbean.ManagedServiceMBean
      • start

        public void start()
                   throws Exception
        Specified by:
        start in interface org.apache.camel.api.management.mbean.ManagedServiceMBean
        Throws:
        Exception
      • stop

        public void stop()
                  throws Exception
        Specified by:
        stop in interface org.apache.camel.api.management.mbean.ManagedServiceMBean
        Throws:
        Exception
      • isSupportSuspension

        public boolean isSupportSuspension()
        Specified by:
        isSupportSuspension in interface org.apache.camel.api.management.mbean.ManagedServiceMBean
      • isSuspended

        public boolean isSuspended()
        Specified by:
        isSuspended in interface org.apache.camel.api.management.mbean.ManagedServiceMBean
      • suspend

        public void suspend()
                     throws Exception
        Specified by:
        suspend in interface org.apache.camel.api.management.mbean.ManagedServiceMBean
        Throws:
        Exception
      • resume

        public void resume()
                    throws Exception
        Specified by:
        resume in interface org.apache.camel.api.management.mbean.ManagedServiceMBean
        Throws:
        Exception
      • getInstance

        public Object getInstance()
        Specified by:
        getInstance in interface org.apache.camel.api.management.ManagedInstance