Examples of BrokerActor


Examples of org.apache.qpid.server.logging.actors.BrokerActor

        startup(new BrokerOptions());
    }

    public void startup(final BrokerOptions options) throws Exception
    {
        CurrentActor.set(new BrokerActor(new SystemOutMessageLogger()));
        try
        {
            startupImpl(options);
            addShutdownHook();
        }
View Full Code Here

Examples of org.apache.qpid.server.logging.actors.BrokerActor

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

        BrokerActor actor = new BrokerActor(startupMessageLogger);
        CurrentActor.set(actor);
        CurrentActor.setDefault(actor);
        GenericActor.setDefaultMessageLogger(_rootMessageLogger);
        try
        {
            logStartupMessages(CurrentActor.get());

            _taskExecutor = new TaskExecutor();
            _taskExecutor.start();

            StoreConfigurationChangeListener storeChangeListener = new StoreConfigurationChangeListener(_store);
            RecovererProvider provider = new DefaultRecovererProvider((StatisticsGatherer)this, _virtualHostRegistry, _logRecorder, _rootMessageLogger, _taskExecutor, brokerOptions, storeChangeListener);
            ConfiguredObjectRecoverer<? extends ConfiguredObject> brokerRecoverer =  provider.getRecoverer(Broker.class.getSimpleName());
            _broker = (Broker) brokerRecoverer.create(provider, _store.getRootEntry());

            _virtualHostRegistry.setDefaultVirtualHostName((String)_broker.getAttribute(Broker.DEFAULT_VIRTUAL_HOST));

            initialiseStatisticsReporting();

            // starting the broker
            _broker.setDesiredState(State.INITIALISING, State.ACTIVE);

            CurrentActor.get().message(BrokerMessages.READY());
        }
        finally
        {
            CurrentActor.remove();
        }

        CurrentActor.setDefault(new BrokerActor(_rootMessageLogger));
    }
View Full Code Here

Examples of org.apache.qpid.server.logging.actors.BrokerActor

        {
            _logger.info("Shutting down ApplicationRegistry:" + this);
        }

        //Set the Actor for Broker Shutdown
        CurrentActor.set(new BrokerActor(_rootMessageLogger));
        try
        {
            //Stop Statistics Reporting
            if (_reportingTimer != null)
            {
View Full Code Here

Examples of org.apache.qpid.server.logging.actors.BrokerActor

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

        BrokerActor actor = new BrokerActor(_startupMessageLogger);
        CurrentActor.setDefault(actor);
        CurrentActor.set(actor);

        try
        {
            initialiseStatistics();

            if(_configuration.getHTTPManagementEnabled())
            {
                _httpManagementPort = _configuration.getHTTPManagementPort();
            }
            if (_configuration.getHTTPSManagementEnabled())
            {
                _httpsManagementPort = _configuration.getHTTPSManagementPort();
            }

            _broker = new BrokerAdapter(this);

            _configuration.initialise();
            logStartupMessages(CurrentActor.get());

            // Management needs to be registered so that JMXManagement.childAdded can create optional management objects
            createAndStartManagementPlugins(_configuration, _broker);

            _securityManager = new SecurityManager(_configuration.getConfig());

            _groupManagerList = createGroupManagers(_configuration);

            _authenticationManagerRegistry = createAuthenticationManagerRegistry(_configuration, new GroupPrincipalAccessor(_groupManagerList));

            if(!_authManagerChangeListeners.isEmpty())
            {
                for(IAuthenticationManagerRegistry.RegistryChangeListener listener : _authManagerChangeListeners)
                {

                    _authenticationManagerRegistry.addRegistryChangeListener(listener);
                    for(AuthenticationManager authMgr : _authenticationManagerRegistry.getAvailableAuthenticationManagers().values())
                    {
                        listener.authenticationManagerRegistered(authMgr);
                    }
                }
                _authManagerChangeListeners.clear();
            }
        }
        finally
        {
            CurrentActor.remove();
        }

        CurrentActor.set(new BrokerActor(_rootMessageLogger));
        try
        {
            initialiseVirtualHosts();
            initialiseStatisticsReporting();
        }
View Full Code Here

Examples of org.apache.qpid.server.logging.actors.BrokerActor

        {
            _logger.info("Shutting down ApplicationRegistry:" + this);
        }

        //Set the Actor for Broker Shutdown
        CurrentActor.set(new BrokerActor(getRootMessageLogger()));
        try
        {
            //Stop Statistics Reporting
            if (_reportingTimer != null)
            {
View Full Code Here

Examples of org.apache.qpid.server.logging.actors.BrokerActor

        startup(new BrokerOptions());
    }

    public void startup(final BrokerOptions options) throws Exception
    {
        CurrentActor.set(new BrokerActor(new SystemOutMessageLogger()));
        try
        {
            startupImpl(options);
            addShutdownHook();
        }
View Full Code Here

Examples of org.apache.qpid.server.logging.actors.BrokerActor

        // the configuration.
        BrokerMessages.reload();

        // AR.initialise() sets and removes its own actor so we now need to set the actor
        // for the remainder of the startup, and the default actor if the stack is empty
        CurrentActor.set(new BrokerActor(config.getCompositeStartupMessageLogger()));
        CurrentActor.setDefault(new BrokerActor(config.getRootMessageLogger()));
        GenericActor.setDefaultMessageLogger(config.getRootMessageLogger());

        try
        {
            Set<Integer> ports = new HashSet<Integer>(options.getPorts());
View Full Code Here

Examples of org.apache.qpid.server.logging.actors.BrokerActor

    public void startup(final BrokerOptions options) throws Exception
    {
        try
        {
            CurrentActor.set(new BrokerActor(new SystemOutMessageLogger()));
            startupImpl(options);
            addShutdownHook();
        }
        finally
        {
View Full Code Here

Examples of org.apache.qpid.server.logging.actors.BrokerActor

        // the configuration.
        BrokerMessages.reload();

        // AR.initialise() sets and removes its own actor so we now need to set the actor
        // for the remainder of the startup, and the default actor if the stack is empty
        CurrentActor.set(new BrokerActor(config.getCompositeStartupMessageLogger()));
        CurrentActor.setDefault(new BrokerActor(config.getRootMessageLogger()));
        GenericActor.setDefaultMessageLogger(config.getRootMessageLogger());

        try
        {
            Set<Integer> ports = new HashSet<Integer>(options.getPorts());
View Full Code Here

Examples of org.apache.qpid.server.logging.actors.BrokerActor

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

        BrokerActor actor = new BrokerActor(_startupMessageLogger);
        CurrentActor.setDefault(actor);
        CurrentActor.set(actor);

        try
        {
            initialiseStatistics();

            if(_configuration.getHTTPManagementEnabled())
            {
                _httpManagementPort = _configuration.getHTTPManagementPort();
            }
            if (_configuration.getHTTPSManagementEnabled())
            {
                _httpsManagementPort = _configuration.getHTTPSManagementPort();
            }

            _broker = new BrokerAdapter(this);

            configure();

            _qmfService = new QMFService(getConfigStore(), this);

            logStartupMessages(CurrentActor.get());

            _securityManager = new SecurityManager(_configuration, _pluginManager);

            _authenticationManagerRegistry = createAuthenticationManagerRegistry(_configuration, _pluginManager);

            if(!_authManagerChangeListeners.isEmpty())
            {
                for(IAuthenticationManagerRegistry.RegistryChangeListener listener : _authManagerChangeListeners)
                {

                    _authenticationManagerRegistry.addRegistryChangeListener(listener);
                    for(AuthenticationManager authMgr : _authenticationManagerRegistry.getAvailableAuthenticationManagers().values())
                    {
                        listener.authenticationManagerRegistered(authMgr);
                    }
                }
                _authManagerChangeListeners.clear();
            }
        }
        finally
        {
            CurrentActor.remove();
        }

        CurrentActor.set(new BrokerActor(_rootMessageLogger));
        try
        {
            initialiseVirtualHosts();
            initialiseStatisticsReporting();
        }
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.