Class ArtemisDetector

java.lang.Object
org.jolokia.server.detector.jee.AbstractServerDetector
org.jolokia.server.detector.misc.ArtemisDetector
All Implemented Interfaces:
Comparable<org.jolokia.server.core.detector.ServerDetector>, org.jolokia.server.core.detector.ServerDetector, org.jolokia.server.core.service.api.JolokiaService<org.jolokia.server.core.detector.ServerDetector>

public class ArtemisDetector extends AbstractServerDetector
Detects whether we run within ActiveMQ Artemis server - as WAR or JVM agent.
  • Constructor Details

    • ArtemisDetector

      public ArtemisDetector(int pOrder)
  • Method Details

    • getDetectionTimeout

      protected int getDetectionTimeout()
      Description copied from class: AbstractServerDetector
      If a detector requires an active-wait loop, this is the total timeout (in ms). If -1, it means the waiting is disabled. But given detector has to actively invoke waiting code.
      Overrides:
      getDetectionTimeout in class AbstractServerDetector
      Returns:
    • getDetectionInterval

      protected int getDetectionInterval()
      Description copied from class: AbstractServerDetector
      A wait (in ms) between active-loop waiting cycles.
      Overrides:
      getDetectionInterval in class AbstractServerDetector
      Returns:
    • getDetectionFinalDelay

      protected int getDetectionFinalDelay()
      Description copied from class: AbstractServerDetector
      A final delay between ending the active-wait loop.
      Overrides:
      getDetectionFinalDelay in class AbstractServerDetector
      Returns:
    • detect

      public org.jolokia.server.core.service.api.ServerHandle detect(org.jolokia.server.core.util.jmx.MBeanServerAccess pMBeanServerAccess)
    • jvmAgentStartup

      public ClassLoader jvmAgentStartup(Instrumentation instrumentation)
      Description copied from class: AbstractServerDetector
      By default do nothing during JVM agent startup
      Specified by:
      jvmAgentStartup in interface org.jolokia.server.core.detector.ServerDetector
      Overrides:
      jvmAgentStartup in class AbstractServerDetector
    • getContainerLocator

      public org.jolokia.server.core.service.container.ContainerLocator getContainerLocator(org.jolokia.server.core.service.api.LogHandler logHandler)
      Specified by:
      getContainerLocator in interface org.jolokia.server.core.detector.ServerDetector
      Overrides:
      getContainerLocator in class AbstractServerDetector