Examples of EventLogger


Examples of org.apache.qpid.server.logging.EventLogger

        attributes.put(Queue.LIFETIME_POLICY, LifetimePolicy.PERMANENT);
        attributes.put(Queue.SORT_KEY, "KEY");

        final VirtualHost virtualHost = mock(VirtualHost.class);
        when(virtualHost.getSecurityManager()).thenReturn(mock(org.apache.qpid.server.security.SecurityManager.class));
        when(virtualHost.getEventLogger()).thenReturn(new EventLogger());
        SortedQueue queue = new SortedQueue(virtualHost, attributes, new QueueEntryListFactory()
        {

            @Override
            public SortedQueueEntryList createQueueEntryList(final AMQQueue queue)
View Full Code Here

Examples of org.apache.qpid.server.logging.EventLogger

        attributes.put(Exchange.DURABLE, false);

        _virtualHost = mock(VirtualHost.class);
        SecurityManager securityManager = mock(SecurityManager.class);
        when(_virtualHost.getSecurityManager()).thenReturn(securityManager);
        when(_virtualHost.getEventLogger()).thenReturn(new EventLogger());
        _exchange = new FanoutExchange(_virtualHost, attributes);
    }
View Full Code Here

Examples of org.apache.qpid.server.logging.EventLogger

    {
        super.setUp();

        BrokerTestHelper.setUp();
        _logger = new UnitTestMessageLogger();
        _eventLogger = new EventLogger(_logger);
    }
View Full Code Here

Examples of org.apache.qpid.server.logging.EventLogger

    @Override
    public void setUp() throws Exception
    {
        super.setUp();
        _rawLogger = new UnitTestMessageLogger(_statusUpdatesEnabled);
        _eventLogger = new EventLogger(_rawLogger);
        _rootLogger = _rawLogger;
    }
View Full Code Here

Examples of org.apache.qpid.server.logging.EventLogger

    public void setUp() throws Exception
    {
        super.setUp();
        _messageLogger = new UnitTestMessageLogger();
        _eventLogger = new EventLogger(_messageLogger);
        _plugin = null;
    }
View Full Code Here

Examples of org.apache.qpid.server.logging.EventLogger

        {
            throw new NullPointerException("LogSubject has not been set");
        }

        UnitTestMessageLogger logger = new UnitTestMessageLogger(statusUpdatesEnabled);
        EventLogger eventLogger = new EventLogger(logger);

        eventLogger.message(_subject, new LogMessage()
        {
            public String toString()
            {
                return "<Log Message>";
            }
View Full Code Here

Examples of org.apache.qpid.server.logging.EventLogger

        attributes.put(Queue.SORT_KEY, "KEY");

        // Create test list
        final VirtualHost virtualHost = mock(VirtualHost.class);
        when(virtualHost.getSecurityManager()).thenReturn(mock(SecurityManager.class));
        when(virtualHost.getEventLogger()).thenReturn(new EventLogger());
        _testQueue = new SortedQueue(virtualHost, attributes, new QueueEntryListFactory()
        {

            @Override
            public SortedQueueEntryList createQueueEntryList(final AMQQueue queue)
View Full Code Here

Examples of org.apache.qpid.server.logging.EventLogger

        // create virtual host configuration, registry and host instance
        addVirtualHostConfiguration();
        String vhostName = "test" + _masterPort;
        VirtualHostConfiguration configuration = new VirtualHostConfiguration(vhostName, _configXml.subset("virtualhosts.virtualhost." + vhostName), BrokerTestHelper.createBrokerMock());

        _virtualHost = BrokerTestHelper.createVirtualHost(configuration,new VirtualHostRegistry(new EventLogger()),_modelVhost);
        BDBHAMessageStore store = (BDBHAMessageStore) _virtualHost.getMessageStore();

        // test whether JVM system settings were applied
        Environment env = store.getEnvironment();
        assertEquals("Unexpected number of cleaner threads", TEST_NUMBER_OF_THREADS, env.getConfig().getConfigParam(EnvironmentConfig.CLEANER_THREADS));
View Full Code Here

Examples of org.apache.qpid.server.logging.EventLogger

        super.setUp();
        BrokerTestHelper.setUp();
        _configXml = new XMLConfiguration();
        _configXml.addProperty("virtualhosts.virtualhost(-1).name", getName());
        _configXml.addProperty("virtualhosts.virtualhost(-1)."+getName()+".store.class", TestableMemoryMessageStore.class.getName());
        EventLogger eventLogger = new EventLogger();
        _virtualHostRegistry = new VirtualHostRegistry(eventLogger);
        _broker = mock(Broker.class);
        when(_broker.getAttribute(Broker.VIRTUALHOST_HOUSEKEEPING_CHECK_PERIOD)).thenReturn(30000l);
    }
View Full Code Here

Examples of org.apache.qpid.server.logging.EventLogger

        Map<String,Object> queueAttributes = new HashMap<String, Object>();
        queueAttributes.put(Queue.ID, UUID.randomUUID());
        queueAttributes.put(Queue.NAME, getName());
        final VirtualHost virtualHost = mock(VirtualHost.class);
        when(virtualHost.getSecurityManager()).thenReturn(mock(org.apache.qpid.server.security.SecurityManager.class));
        when(virtualHost.getEventLogger()).thenReturn(new EventLogger());

        StandardQueue queue = new StandardQueue(virtualHost, queueAttributes);
        OrderedQueueEntryList queueEntryList = (OrderedQueueEntryList) queue.getEntries();

        // create test entries
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.