Search in sources :

Example 6 with PersistedAddressSetting

use of org.apache.activemq.artemis.core.persistence.config.PersistedAddressSetting in project activemq-artemis by apache.

the class AddressSettingsConfigurationStorageTest method addAddress.

protected void addAddress(StorageManager journal1, String address, AddressSettings setting) throws Exception {
    SimpleString str = new SimpleString(address);
    PersistedAddressSetting persistedSetting = new PersistedAddressSetting(str, setting);
    mapExpectedAddresses.put(str, persistedSetting);
    journal1.storeAddressSetting(persistedSetting);
}
Also used : PersistedAddressSetting(org.apache.activemq.artemis.core.persistence.config.PersistedAddressSetting) SimpleString(org.apache.activemq.artemis.api.core.SimpleString)

Aggregations

PersistedAddressSetting (org.apache.activemq.artemis.core.persistence.config.PersistedAddressSetting)6 SimpleString (org.apache.activemq.artemis.api.core.SimpleString)2 PersistedRoles (org.apache.activemq.artemis.core.persistence.config.PersistedRoles)2 InvalidParameterException (java.security.InvalidParameterException)1 ArrayList (java.util.ArrayList)1 HashMap (java.util.HashMap)1 LinkedHashMap (java.util.LinkedHashMap)1 ConcurrentHashMap (java.util.concurrent.ConcurrentHashMap)1 ActiveMQBuffer (org.apache.activemq.artemis.api.core.ActiveMQBuffer)1 JournalLoadInformation (org.apache.activemq.artemis.core.journal.JournalLoadInformation)1 PreparedTransactionInfo (org.apache.activemq.artemis.core.journal.PreparedTransactionInfo)1 RecordInfo (org.apache.activemq.artemis.core.journal.RecordInfo)1 GroupingEncoding (org.apache.activemq.artemis.core.persistence.impl.journal.codec.GroupingEncoding)1 PersistentAddressBindingEncoding (org.apache.activemq.artemis.core.persistence.impl.journal.codec.PersistentAddressBindingEncoding)1 PersistentQueueBindingEncoding (org.apache.activemq.artemis.core.persistence.impl.journal.codec.PersistentQueueBindingEncoding)1 QueueStatusEncoding (org.apache.activemq.artemis.core.persistence.impl.journal.codec.QueueStatusEncoding)1 Role (org.apache.activemq.artemis.core.security.Role)1 AddressSettings (org.apache.activemq.artemis.core.settings.impl.AddressSettings)1