Package org.jolokia.server.detector.misc
Class LightstreamerDetector
java.lang.Object
org.jolokia.server.detector.jee.AbstractServerDetector
org.jolokia.server.detector.misc.LightstreamerDetector
- 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>
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.jolokia.server.core.service.api.JolokiaService
org.jolokia.server.core.service.api.JolokiaService.Init -
Field Summary
Fields inherited from interface org.jolokia.server.core.detector.ServerDetector
FALLBACK -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.jolokia.server.core.service.api.ServerHandledetect(org.jolokia.server.core.util.jmx.MBeanServerAccess pMBeanServerAccess) protected intA final delay between ending the active-wait loop.protected intA wait (in ms) between active-loop waiting cycles.protected intIf a detector requires an active-wait loop, this is the total timeout (in ms).protected booleanisLightStreamer(Instrumentation instrumentation) jvmAgentStartup(Instrumentation instrumentation) By default do nothing during JVM agent startupMethods inherited from class org.jolokia.server.detector.jee.AbstractServerDetector
activeWait, compareTo, destroy, equals, getAttributeValue, getAttributeValue, getClassLoaded, getConfig, getContainerLocator, getMBeanServers, getName, getOrder, getRequestInterceptor, getSingleStringAttribute, getVersionFromJsr77, hashCode, init, init, isClassLoaded, isEnabled, mBeanExists, searchMBeansMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.jolokia.server.core.detector.ServerDetector
getType
-
Constructor Details
-
LightstreamerDetector
public LightstreamerDetector(int pOrder) The order of this detector- Parameters:
pOrder- detector's order
-
-
Method Details
-
detect
public org.jolokia.server.core.service.api.ServerHandle detect(org.jolokia.server.core.util.jmx.MBeanServerAccess pMBeanServerAccess) - Parameters:
pMBeanServerAccess-
-
jvmAgentStartup
Description copied from class:AbstractServerDetectorBy default do nothing during JVM agent startup- Specified by:
jvmAgentStartupin interfaceorg.jolokia.server.core.detector.ServerDetector- Overrides:
jvmAgentStartupin classAbstractServerDetector
-
isLightStreamer
-
getDetectionTimeout
protected int getDetectionTimeout()Description copied from class:AbstractServerDetectorIf 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:
getDetectionTimeoutin classAbstractServerDetector- Returns:
-
getDetectionInterval
protected int getDetectionInterval()Description copied from class:AbstractServerDetectorA wait (in ms) between active-loop waiting cycles.- Overrides:
getDetectionIntervalin classAbstractServerDetector- Returns:
-
getDetectionFinalDelay
protected int getDetectionFinalDelay()Description copied from class:AbstractServerDetectorA final delay between ending the active-wait loop.- Overrides:
getDetectionFinalDelayin classAbstractServerDetector- Returns:
-