Package org.apache.qpid.server.logging

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


    {
        // Create the RootLogger to be used during broker operation
        boolean statusUpdatesEnabled = Boolean.parseBoolean(System.getProperty(BrokerProperties.PROPERTY_STATUS_UPDATES, "true"));
        _rootMessageLogger = new Log4jMessageLogger(statusUpdatesEnabled);

        _logRecorder = new LogRecorder();

        //Create the composite (log4j+SystemOut MessageLogger to be used during startup
        RootMessageLogger[] messageLoggers = {new SystemOutMessageLogger(), _rootMessageLogger};
        CompositeStartupMessageLogger startupMessageLogger = new CompositeStartupMessageLogger(messageLoggers);
View Full Code Here


                KeyStore.class.getSimpleName(), TrustStore.class.getSimpleName()};

        // mocking the required object
        StatisticsGatherer statisticsGatherer = mock(StatisticsGatherer.class);
        VirtualHostRegistry virtualHostRegistry = mock(VirtualHostRegistry.class);
        LogRecorder logRecorder = mock(LogRecorder.class);
        RootMessageLogger rootMessageLogger = mock(RootMessageLogger.class);
        TaskExecutor taskExecutor = mock(TaskExecutor.class);

        DefaultRecovererProvider provider = new DefaultRecovererProvider(statisticsGatherer, virtualHostRegistry,
                logRecorder, rootMessageLogger, taskExecutor, mock(BrokerOptions.class),
View Full Code Here

            // ignore null and incorrect parameter values
        }

        List<Map<String,Object>> logRecords = new ArrayList<Map<String, Object>>();

        LogRecorder logRecorder = getBroker().getLogRecorder();
        for(LogRecorder.Record record : logRecorder)
        {
            if (record.getId() > lastLogId)
            {
                logRecords.add(logRecordToObject(record));
View Full Code Here

                KeyStore.class.getSimpleName(), TrustStore.class.getSimpleName()};

        // mocking the required object
        StatisticsGatherer statisticsGatherer = mock(StatisticsGatherer.class);
        VirtualHostRegistry virtualHostRegistry = mock(VirtualHostRegistry.class);
        LogRecorder logRecorder = mock(LogRecorder.class);

        TaskExecutor taskExecutor = mock(TaskExecutor.class);

        DefaultRecovererProvider provider = new DefaultRecovererProvider(statisticsGatherer, virtualHostRegistry,
                logRecorder, taskExecutor, mock(BrokerOptions.class),
View Full Code Here

        response.setHeader("Pragma","no-cache");
        response.setDateHeader ("Expires", 0);

        List<Map<String,Object>> logRecords = new ArrayList<Map<String, Object>>();

        LogRecorder logRecorder = getBroker().getLogRecorder();
        for(LogRecorder.Record record : logRecorder)
        {
            logRecords.add(logRecordToObject(record));
        }
View Full Code Here

                KeyStore.class.getSimpleName(), TrustStore.class.getSimpleName()};

        // mocking the required object
        StatisticsGatherer statisticsGatherer = mock(StatisticsGatherer.class);
        VirtualHostRegistry virtualHostRegistry = mock(VirtualHostRegistry.class);
        LogRecorder logRecorder = mock(LogRecorder.class);
        RootMessageLogger rootMessageLogger = mock(RootMessageLogger.class);
        TaskExecutor taskExecutor = mock(TaskExecutor.class);

        DefaultRecovererProvider provider = new DefaultRecovererProvider(statisticsGatherer, virtualHostRegistry, logRecorder, rootMessageLogger, taskExecutor, mock(BrokerOptions.class));
        for (String configuredObjectType : supportedTypes)
View Full Code Here

    {
        // Create the RootLogger to be used during broker operation
        boolean statusUpdatesEnabled = Boolean.parseBoolean(System.getProperty(BrokerProperties.PROPERTY_STATUS_UPDATES, "true"));
        _rootMessageLogger = new Log4jMessageLogger(statusUpdatesEnabled);

        _logRecorder = new LogRecorder();

        //Create the composite (log4j+SystemOut MessageLogger to be used during startup
        RootMessageLogger[] messageLoggers = {new SystemOutMessageLogger(), _rootMessageLogger};
        CompositeStartupMessageLogger startupMessageLogger = new CompositeStartupMessageLogger(messageLoggers);
View Full Code Here

            // ignore null and incorrect parameter values
        }

        List<Map<String,Object>> logRecords = new ArrayList<Map<String, Object>>();

        LogRecorder logRecorder = getBroker().getLogRecorder();
        for(LogRecorder.Record record : logRecorder)
        {
            if (record.getId() > lastLogId)
            {
                logRecords.add(logRecordToObject(record));
View Full Code Here

        if(!options.isSkipLoggingConfiguration())
        {
            configureLogging(new File(options.getLogConfigFileLocation()), options.getLogWatchFrequency());
        }

        LogRecorder logRecorder = new LogRecorder();

        _taskExecutor.start();
        SystemConfig systemConfig = configFactory.newInstance(_taskExecutor, _eventLogger, logRecorder, options);
        systemConfig.open();
        DurableConfigurationStore store = systemConfig.getConfigurationStore();
View Full Code Here

            throw new IllegalArgumentException("Unknown config store type '"+storeType+"', only the following types are supported: " + configFactoryLoader.getSupportedTypes());
        }



        LogRecorder logRecorder = new LogRecorder();

        _taskExecutor.start();
        SystemConfig systemConfig = configFactory.newInstance(_taskExecutor, _eventLogger, logRecorder, options, this);
        systemConfig.open();
        DurableConfigurationStore store = systemConfig.getConfigurationStore();
View Full Code Here

TOP

Related Classes of org.apache.qpid.server.logging.LogRecorder

Copyright © 2018 www.massapicom. 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.