Class JavaRuntimeConfigurationBroker

All Implemented Interfaces:
Broker, Region, org.apache.activemq.Service

public class JavaRuntimeConfigurationBroker extends AbstractRuntimeConfigurationBroker
  • Field Details

    • LOG

      public static final org.slf4j.Logger LOG
  • Constructor Details

    • JavaRuntimeConfigurationBroker

      public JavaRuntimeConfigurationBroker(Broker next)
      Parameters:
      next -
  • Method Details

    • setVirtualDestinations

      public void setVirtualDestinations(VirtualDestination[] virtualDestinations)
    • 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

      public void addNetworkConnector(DiscoveryNetworkConnector nc)
    • updateNetworkConnector

      public void updateNetworkConnector(DiscoveryNetworkConnector nc)
    • removeNetworkConnector

      public void removeNetworkConnector(DiscoveryNetworkConnector existingCandidate)
    • addNewPolicyEntry

      public void addNewPolicyEntry(PolicyEntry addition)
    • modifyPolicyEntry

      public void modifyPolicyEntry(PolicyEntry existing)
      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), see modifyPolicyEntry(PolicyEntry, boolean)
      Parameters:
      existing -
    • modifyPolicyEntry

      public void modifyPolicyEntry(PolicyEntry existing, boolean createOrReplace)
    • 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

      public void updateSimpleAuthenticationPlugin(SimpleAuthenticationPlugin updatedPlugin)
    • updateAuthorizationMap

      public void updateAuthorizationMap(AuthorizationMap authorizationMap)