Search in sources :

Example 36 with EventLogger

use of org.apache.qpid.server.logging.EventLogger in project qpid-broker-j by apache.

the class RuleBasedAccessControlTest method setUp.

@Override
public void setUp() throws Exception {
    super.setUp();
    _messageLogger = new UnitTestMessageLogger();
    _eventLogger = new EventLogger(_messageLogger);
    _plugin = null;
}
Also used : EventLogger(org.apache.qpid.server.logging.EventLogger) UnitTestMessageLogger(org.apache.qpid.server.logging.UnitTestMessageLogger)

Example 37 with EventLogger

use of org.apache.qpid.server.logging.EventLogger in project qpid-broker-j by apache.

the class AclFileAccessControlProviderFactoryTest method setUp.

@Override
public void setUp() throws Exception {
    super.setUp();
    _broker = mock(Broker.class);
    _objectFactory = new ConfiguredObjectFactoryImpl(BrokerModel.getInstance());
    when(_broker.getObjectFactory()).thenReturn(_objectFactory);
    when(_broker.getModel()).thenReturn(_objectFactory.getModel());
    when(_broker.getCategoryClass()).thenReturn(Broker.class);
    TaskExecutor taskExecutor = new CurrentThreadTaskExecutor();
    taskExecutor.start();
    when(_broker.getTaskExecutor()).thenReturn(taskExecutor);
    when(_broker.getChildExecutor()).thenReturn(taskExecutor);
    when(_broker.getEventLogger()).thenReturn(new EventLogger());
}
Also used : CurrentThreadTaskExecutor(org.apache.qpid.server.configuration.updater.CurrentThreadTaskExecutor) TaskExecutor(org.apache.qpid.server.configuration.updater.TaskExecutor) Broker(org.apache.qpid.server.model.Broker) EventLogger(org.apache.qpid.server.logging.EventLogger) CurrentThreadTaskExecutor(org.apache.qpid.server.configuration.updater.CurrentThreadTaskExecutor) ConfiguredObjectFactoryImpl(org.apache.qpid.server.model.ConfiguredObjectFactoryImpl)

Example 38 with EventLogger

use of org.apache.qpid.server.logging.EventLogger in project qpid-broker-j by apache.

the class AclFileAccessControlProviderImplTest method setUp.

@Override
public void setUp() throws Exception {
    super.setUp();
    _taskExecutor = CurrentThreadTaskExecutor.newStartedInstance();
    _model = BrokerModel.getInstance();
    _broker = mock(Broker.class);
    when(_broker.getTaskExecutor()).thenReturn(_taskExecutor);
    when(_broker.getChildExecutor()).thenReturn(_taskExecutor);
    when(_broker.getModel()).thenReturn(_model);
    when(_broker.getId()).thenReturn(UUID.randomUUID());
    when(_broker.getEventLogger()).thenReturn(new EventLogger());
}
Also used : Broker(org.apache.qpid.server.model.Broker) EventLogger(org.apache.qpid.server.logging.EventLogger)

Example 39 with EventLogger

use of org.apache.qpid.server.logging.EventLogger in project qpid-broker-j by apache.

the class FileKeyStoreTest method setUp.

@Override
public void setUp() throws Exception {
    super.setUp();
    when(_broker.getTaskExecutor()).thenReturn(_taskExecutor);
    when(_broker.getChildExecutor()).thenReturn(_taskExecutor);
    when(_broker.getModel()).thenReturn(_model);
    when(_broker.getCategoryClass()).thenReturn(Broker.class);
    when(_broker.getEventLogger()).thenReturn(new EventLogger());
    when(_broker.getTypeClass()).thenReturn(Broker.class);
}
Also used : EventLogger(org.apache.qpid.server.logging.EventLogger)

Example 40 with EventLogger

use of org.apache.qpid.server.logging.EventLogger in project qpid-broker-j by apache.

the class NonJavaKeyStoreTest method setUp.

@Override
public void setUp() throws Exception {
    super.setUp();
    _messageLogger = mock(MessageLogger.class);
    when(_broker.getTaskExecutor()).thenReturn(_taskExecutor);
    when(_broker.getChildExecutor()).thenReturn(_taskExecutor);
    when(_broker.getModel()).thenReturn(_model);
    when(_broker.getEventLogger()).thenReturn(new EventLogger(_messageLogger));
    when(((Broker) _broker).getCategoryClass()).thenReturn(Broker.class);
    _testResources = new ArrayList<>();
}
Also used : Broker(org.apache.qpid.server.model.Broker) MessageLogger(org.apache.qpid.server.logging.MessageLogger) EventLogger(org.apache.qpid.server.logging.EventLogger)

Aggregations

EventLogger (org.apache.qpid.server.logging.EventLogger)40 Broker (org.apache.qpid.server.model.Broker)15 SystemConfig (org.apache.qpid.server.model.SystemConfig)10 TaskExecutor (org.apache.qpid.server.configuration.updater.TaskExecutor)8 HashMap (java.util.HashMap)7 CurrentThreadTaskExecutor (org.apache.qpid.server.configuration.updater.CurrentThreadTaskExecutor)7 Principal (java.security.Principal)6 ConfiguredObject (org.apache.qpid.server.model.ConfiguredObject)6 ConfiguredObjectFactoryImpl (org.apache.qpid.server.model.ConfiguredObjectFactoryImpl)6 TaskExecutorImpl (org.apache.qpid.server.configuration.updater.TaskExecutorImpl)5 InetSocketAddress (java.net.InetSocketAddress)4 BrokerModel (org.apache.qpid.server.model.BrokerModel)4 Model (org.apache.qpid.server.model.Model)4 VirtualHostNode (org.apache.qpid.server.model.VirtualHostNode)4 AuthenticatedPrincipal (org.apache.qpid.server.security.auth.AuthenticatedPrincipal)4 IOException (java.io.IOException)3 Map (java.util.Map)3 Subject (javax.security.auth.Subject)3 UnitTestMessageLogger (org.apache.qpid.server.logging.UnitTestMessageLogger)3 AmqpPort (org.apache.qpid.server.model.port.AmqpPort)3