Class BroadcastGroupImpl
- java.lang.Object
-
- org.apache.activemq.artemis.core.server.cluster.impl.BroadcastGroupImpl
-
- All Implemented Interfaces:
Runnable,ActiveMQComponent,BroadcastGroup
public class BroadcastGroupImpl extends Object implements BroadcastGroup, Runnable
This class will use the
BroadcastEndpointto send periodical updates on the list for connections used by this server.This is totally generic to the mechanism used on the transmission. It originally only had UDP but this got refactored into sub classes of
BroadcastEndpoint
-
-
Constructor Summary
Constructors Constructor Description BroadcastGroupImpl(NodeManager nodeManager, String name, long broadCastPeriod, ScheduledExecutorService scheduledExecutor, BroadcastEndpointFactory endpointFactory)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddConnector(TransportConfiguration tcConfig)voidbroadcastConnectors()StringgetName()booleanisStarted()voidremoveConnector(TransportConfiguration tcConfig)voidrun()voidsetNotificationService(NotificationService notificationService)intsize()voidstart()voidstop()-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.activemq.artemis.core.server.ActiveMQComponent
asyncStop
-
-
-
-
Constructor Detail
-
BroadcastGroupImpl
public BroadcastGroupImpl(NodeManager nodeManager, String name, long broadCastPeriod, ScheduledExecutorService scheduledExecutor, BroadcastEndpointFactory endpointFactory) throws Exception
- Throws:
Exception
-
-
Method Detail
-
setNotificationService
public void setNotificationService(NotificationService notificationService)
- Specified by:
setNotificationServicein interfaceBroadcastGroup
-
start
public void start() throws Exception- Specified by:
startin interfaceActiveMQComponent- Throws:
Exception
-
stop
public void stop()
- Specified by:
stopin interfaceActiveMQComponent
-
isStarted
public boolean isStarted()
- Specified by:
isStartedin interfaceActiveMQComponent
-
getName
public String getName()
- Specified by:
getNamein interfaceBroadcastGroup
-
addConnector
public void addConnector(TransportConfiguration tcConfig)
- Specified by:
addConnectorin interfaceBroadcastGroup
-
removeConnector
public void removeConnector(TransportConfiguration tcConfig)
- Specified by:
removeConnectorin interfaceBroadcastGroup
-
size
public int size()
- Specified by:
sizein interfaceBroadcastGroup
-
broadcastConnectors
public void broadcastConnectors() throws Exception- Specified by:
broadcastConnectorsin interfaceBroadcastGroup- Throws:
Exception
-
-