Class TargetMonitor
- java.lang.Object
-
- org.apache.activemq.artemis.core.server.ActiveMQScheduledComponent
-
- org.apache.activemq.artemis.core.server.routing.targets.TargetMonitor
-
- All Implemented Interfaces:
Runnable,ActiveMQComponent,TargetListener
public class TargetMonitor extends ActiveMQScheduledComponent implements TargetListener
-
-
Field Summary
-
Fields inherited from class org.apache.activemq.artemis.core.server.ActiveMQScheduledComponent
executor, scheduledExecutorService
-
-
Constructor Summary
Constructors Constructor Description TargetMonitor(ScheduledExecutorService scheduledExecutorService, int checkPeriod, Target target, List<TargetProbe> targetProbes)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TargetgetTarget()booleanisTargetReady()voidrun()voidstart()voidstop()voidtargetConnected()voidtargetDisconnected()StringtoString()-
Methods inherited from class org.apache.activemq.artemis.core.server.ActiveMQScheduledComponent
delay, getInitialDelay, getPeriod, getThreadFactory, getTimeUnit, isStarted, setInitialDelay, setInitialDelayAndPeriod, setInitialDelayAndPeriod, setPeriod, setPeriod, setTimeUnit
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.apache.activemq.artemis.core.server.ActiveMQComponent
asyncStop
-
-
-
-
Constructor Detail
-
TargetMonitor
public TargetMonitor(ScheduledExecutorService scheduledExecutorService, int checkPeriod, Target target, List<TargetProbe> targetProbes)
-
-
Method Detail
-
getTarget
public Target getTarget()
-
isTargetReady
public boolean isTargetReady()
-
start
public void start()
- Specified by:
startin interfaceActiveMQComponent- Overrides:
startin classActiveMQScheduledComponent
-
stop
public void stop()
- Specified by:
stopin interfaceActiveMQComponent- Overrides:
stopin classActiveMQScheduledComponent
-
targetConnected
public void targetConnected()
- Specified by:
targetConnectedin interfaceTargetListener
-
targetDisconnected
public void targetDisconnected()
- Specified by:
targetDisconnectedin interfaceTargetListener
-
-