Class BaseBroadcastGroupControlImpl
- java.lang.Object
-
- javax.management.StandardMBean
-
- org.apache.activemq.artemis.core.management.impl.AbstractControl
-
- org.apache.activemq.artemis.core.management.impl.BaseBroadcastGroupControlImpl
-
- All Implemented Interfaces:
DynamicMBean,MBeanRegistration,ActiveMQComponentControl,BaseBroadcastGroupControl
- Direct Known Subclasses:
BroadcastGroupControlImpl,JGroupsChannelBroadcastGroupControlImpl,JGroupsFileBroadcastGroupControlImpl
public class BaseBroadcastGroupControlImpl extends AbstractControl implements BaseBroadcastGroupControl
-
-
Field Summary
-
Fields inherited from class org.apache.activemq.artemis.core.management.impl.AbstractControl
storageManager
-
-
Constructor Summary
Constructors Constructor Description BaseBroadcastGroupControlImpl(Class broadcastGroupControlClass, BroadcastGroup broadcastGroup, StorageManager storageManager, BroadcastGroupConfiguration configuration)BaseBroadcastGroupControlImpl(BroadcastGroup broadcastGroup, StorageManager storageManager, BroadcastGroupConfiguration configuration)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected MBeanAttributeInfo[]fillMBeanAttributeInfo()protected MBeanOperationInfo[]fillMBeanOperationInfo()protected BroadcastGroupgetBroadcastGroup()longgetBroadcastPeriod()Returns the period used by this broadcast group.Object[]getConnectorPairs()Returns the pairs of live-backup connectors that are broadcasted by this broadcast group.StringgetConnectorPairsAsJSON()Returns the pairs of live-backup connectors that are broadcasted by this broadcast group using JSON serialization.StringgetName()Returns the configuration name of this broadcast group.booleanisStarted()Returnstrueif this component is started,falseelse.voidstart()Starts this component.voidstop()Stops this component.-
Methods inherited from class org.apache.activemq.artemis.core.management.impl.AbstractControl
blockOnIO, clearIO, getMBeanInfo, sendMessage, tcclCall, tcclInvoke
-
Methods inherited from class javax.management.StandardMBean
cacheMBeanInfo, getAttribute, getAttributes, getCachedMBeanInfo, getClassName, getConstructors, getDescription, getDescription, getDescription, getDescription, getDescription, getDescription, getDescription, getImpact, getImplementation, getImplementationClass, getMBeanInterface, getParameterName, getParameterName, invoke, postDeregister, postRegister, preDeregister, preRegister, setAttribute, setAttributes, setImplementation
-
-
-
-
Constructor Detail
-
BaseBroadcastGroupControlImpl
public BaseBroadcastGroupControlImpl(BroadcastGroup broadcastGroup, StorageManager storageManager, BroadcastGroupConfiguration configuration) throws Exception
- Throws:
Exception
-
BaseBroadcastGroupControlImpl
public BaseBroadcastGroupControlImpl(Class broadcastGroupControlClass, BroadcastGroup broadcastGroup, StorageManager storageManager, BroadcastGroupConfiguration configuration) throws Exception
- Throws:
Exception
-
-
Method Detail
-
getName
public String getName()
Description copied from interface:BaseBroadcastGroupControlReturns the configuration name of this broadcast group.- Specified by:
getNamein interfaceBaseBroadcastGroupControl
-
getBroadcastPeriod
public long getBroadcastPeriod()
Description copied from interface:BaseBroadcastGroupControlReturns the period used by this broadcast group.- Specified by:
getBroadcastPeriodin interfaceBaseBroadcastGroupControl
-
getConnectorPairs
public Object[] getConnectorPairs()
Description copied from interface:BaseBroadcastGroupControlReturns the pairs of live-backup connectors that are broadcasted by this broadcast group.- Specified by:
getConnectorPairsin interfaceBaseBroadcastGroupControl
-
getConnectorPairsAsJSON
public String getConnectorPairsAsJSON() throws Exception
Description copied from interface:BaseBroadcastGroupControlReturns the pairs of live-backup connectors that are broadcasted by this broadcast group using JSON serialization.- Specified by:
getConnectorPairsAsJSONin interfaceBaseBroadcastGroupControl- Throws:
Exception
-
isStarted
public boolean isStarted()
Description copied from interface:ActiveMQComponentControlReturnstrueif this component is started,falseelse.- Specified by:
isStartedin interfaceActiveMQComponentControl
-
start
public void start() throws ExceptionDescription copied from interface:ActiveMQComponentControlStarts this component.- Specified by:
startin interfaceActiveMQComponentControl- Throws:
Exception
-
stop
public void stop() throws ExceptionDescription copied from interface:ActiveMQComponentControlStops this component.- Specified by:
stopin interfaceActiveMQComponentControl- Throws:
Exception
-
fillMBeanOperationInfo
protected MBeanOperationInfo[] fillMBeanOperationInfo()
- Specified by:
fillMBeanOperationInfoin classAbstractControl
-
fillMBeanAttributeInfo
protected MBeanAttributeInfo[] fillMBeanAttributeInfo()
- Specified by:
fillMBeanAttributeInfoin classAbstractControl
-
getBroadcastGroup
protected BroadcastGroup getBroadcastGroup()
-
-