Package org.apache.activemq.plugin.java
Class JavaRuntimeConfigurationBroker
java.lang.Object
org.apache.activemq.broker.BrokerFilter
org.apache.activemq.plugin.AbstractRuntimeConfigurationBroker
org.apache.activemq.plugin.java.JavaRuntimeConfigurationBroker
-
Field Summary
FieldsFields inherited from class org.apache.activemq.plugin.AbstractRuntimeConfigurationBroker
addConnectionBarrier, addConnectionWork, addDestinationBarrier, addDestinationWork, infoString, monitorTask, objectNameFields inherited from class org.apache.activemq.broker.BrokerFilter
next -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidaddNewDestination(org.apache.activemq.command.ActiveMQDestination destination) voidaddNewPolicyEntry(PolicyEntry addition) protected booleancontainsDestination(org.apache.activemq.command.ActiveMQDestination destination) voidmodifyPolicyEntry(PolicyEntry existing) This method will modify an existing policy entry that matches the destination set on the PolicyEntry passed in.voidmodifyPolicyEntry(PolicyEntry existing, boolean createOrReplace) voidmodifyPolicyEntry(PolicyEntry existing, boolean createOrReplace, Set<String> includedProperties) This method will modify an existing policy entry that matches the destination set on the PolicyEntry passed in.voidremoveNetworkConnector(DiscoveryNetworkConnector existingCandidate) voidsetDestinations(org.apache.activemq.command.ActiveMQDestination[] destinations) voidsetVirtualDestinations(VirtualDestination[] virtualDestinations) voidsetVirtualDestinations(VirtualDestination[] virtualDestinations, boolean applyImmediately) Set the virtual destinations and apply immediately, instead of waiting for a new destination or connection to trigger the work.voidupdateAuthorizationMap(AuthorizationMap authorizationMap) voidvoidupdateSimpleAuthenticationPlugin(SimpleAuthenticationPlugin updatedPlugin) Methods inherited from class org.apache.activemq.plugin.AbstractRuntimeConfigurationBroker
addConnection, addDestination, applyDestinationWork, debug, filterPasswords, info, info, registerMbean, start, stop, unregisterMbeanMethods inherited from class org.apache.activemq.broker.BrokerFilter
acknowledge, addBroker, addConsumer, addDestinationInfo, addProducer, addSession, beginTransaction, brokerServiceStarted, commitTransaction, fastProducer, forgetTransaction, gc, getAdaptor, getAdminConnectionContext, getBrokerId, getBrokerName, getBrokerSequenceId, getBrokerService, getClients, getDestinationMap, getDestinationMap, getDestinations, getDestinations, getDurableDestinations, getExecutor, getNext, getPeerBrokerInfos, getPreparedTransactions, getRoot, getScheduler, getTempDataStore, getVmConnectorURI, isExpired, isFaultTolerantConfiguration, isFull, isStopped, messageConsumed, messageDelivered, messageDiscarded, messageDispatched, messageExpired, messagePull, networkBridgeStarted, networkBridgeStopped, nowMasterBroker, postProcessDispatch, prepareTransaction, preProcessDispatch, processConsumerControl, processDispatchNotification, reapplyInterceptor, removeBroker, removeConnection, removeConsumer, removeDestination, removeDestinationInfo, removeProducer, removeSession, removeSubscription, rollbackTransaction, send, sendToDeadLetterQueue, setAdminConnectionContext, slowConsumer, virtualDestinationAdded, virtualDestinationRemoved
-
Field Details
-
LOG
public static final org.slf4j.Logger LOG
-
-
Constructor Details
-
JavaRuntimeConfigurationBroker
- Parameters:
next-
-
-
Method Details
-
setVirtualDestinations
-
setVirtualDestinations
public void setVirtualDestinations(VirtualDestination[] virtualDestinations, boolean applyImmediately) throws Exception Set the virtual destinations and apply immediately, instead of waiting for a new destination or connection to trigger the work.- Parameters:
virtualDestinations-applyImmediately-- Throws:
Exception
-
setDestinations
public void setDestinations(org.apache.activemq.command.ActiveMQDestination[] destinations) -
containsDestination
protected boolean containsDestination(org.apache.activemq.command.ActiveMQDestination destination) throws Exception - Throws:
Exception
-
addNewDestination
public void addNewDestination(org.apache.activemq.command.ActiveMQDestination destination) -
addNetworkConnector
-
updateNetworkConnector
-
removeNetworkConnector
-
addNewPolicyEntry
-
modifyPolicyEntry
This method will modify an existing policy entry that matches the destination set on the PolicyEntry passed in. The PolicyEntry reference must already be in the PolicyMap or it won't be updated. To modify the entry the best way is to look up the existing PolicyEntry from the PolicyMap, make changes to it, and pass it to this method to apply. To create or replace an existing entry (if the destination matches), seemodifyPolicyEntry(PolicyEntry, boolean)- Parameters:
existing-
-
modifyPolicyEntry
-
modifyPolicyEntry
public void modifyPolicyEntry(PolicyEntry existing, boolean createOrReplace, Set<String> includedProperties) This method will modify an existing policy entry that matches the destination set on the PolicyEntry passed in. If createOrReplace is true, a new policy will be created if it doesn't exist and a policy will be replaced in the PolicyMap, versus modified, if it is a different reference but the destinations for the Policy match. If createOrReplace is false, the policy update will only be applied if the PolicyEntry reference already exists in the PolicyMap. includedProperties is a list of properties that will be applied retrospectively. If the list is null, then all properties on the policy will be reapplied to the destination. This allows the ability to limit which properties are applied to existing destinations.- Parameters:
existing-createOrReplace-includedProperties- - optional list of properties to apply retrospectively
-
updateSimpleAuthenticationPlugin
-
updateAuthorizationMap
-