Search in sources :

Example 16 with ConfiguredObjectRecordImpl

use of org.apache.qpid.server.store.ConfiguredObjectRecordImpl in project qpid-broker-j by apache.

the class TestBrokerConfiguration method addObjectConfiguration.

private void addObjectConfiguration(UUID id, String type, Map<String, Object> attributes) {
    ConfiguredObjectRecord entry = new ConfiguredObjectRecordImpl(id, type, attributes, Collections.singletonMap(Broker.class.getSimpleName(), findObject(Broker.class, null).getId()));
    _store.update(true, entry);
}
Also used : ConfiguredObjectRecordImpl(org.apache.qpid.server.store.ConfiguredObjectRecordImpl) Broker(org.apache.qpid.server.model.Broker) ConfiguredObjectRecord(org.apache.qpid.server.store.ConfiguredObjectRecord)

Aggregations

ConfiguredObjectRecordImpl (org.apache.qpid.server.store.ConfiguredObjectRecordImpl)16 ConfiguredObjectRecord (org.apache.qpid.server.store.ConfiguredObjectRecord)14 HashMap (java.util.HashMap)11 ConfiguredObject (org.apache.qpid.server.model.ConfiguredObject)11 UUID (java.util.UUID)4 Broker (org.apache.qpid.server.model.Broker)3 Port (org.apache.qpid.server.model.Port)3 LinkedHashMap (java.util.LinkedHashMap)2 IllegalConfigurationException (org.apache.qpid.server.configuration.IllegalConfigurationException)2 VirtualHost (org.apache.qpid.server.model.VirtualHost)2 ConfiguredObjectRecordHandler (org.apache.qpid.server.store.handler.ConfiguredObjectRecordHandler)2 Mockito.doAnswer (org.mockito.Mockito.doAnswer)2 InvocationOnMock (org.mockito.invocation.InvocationOnMock)2 Answer (org.mockito.stubbing.Answer)2 ArrayList (java.util.ArrayList)1 Map (java.util.Map)1 Set (java.util.Set)1 CurrentThreadTaskExecutor (org.apache.qpid.server.configuration.updater.CurrentThreadTaskExecutor)1 AbstractConfiguredObject (org.apache.qpid.server.model.AbstractConfiguredObject)1 AbstractSystemConfig (org.apache.qpid.server.model.AbstractSystemConfig)1