Package org.apache.qpid.server.configuration.updater

Examples of org.apache.qpid.server.configuration.updater.TaskExecutor$ImmediateFuture


        super.setUp();
        BrokerTestHelper.setUp();

        _broker = BrokerTestHelper.createBrokerMock();
        StatisticsGatherer statisticsGatherer = mock(StatisticsGatherer.class);
        TaskExecutor executor = mock(TaskExecutor.class);
        when(executor.isTaskExecutorThread()).thenReturn(true);
        when(_broker.getTaskExecutor()).thenReturn(executor);

        _recovererProvider = new DefaultRecovererProvider(statisticsGatherer, _broker.getVirtualHostRegistry(),
                _broker.getLogRecorder(), _broker.getRootMessageLogger(), executor, new BrokerOptions());
View Full Code Here


        // 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)
        {
            ConfiguredObjectRecoverer<?> recovever = provider.getRecoverer(configuredObjectType);
View Full Code Here

        GenericActor.setDefaultMessageLogger(_rootMessageLogger);
        try
        {
            logStartupMessages(CurrentActor.get());

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

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

        EventLogger startupLogger = new EventLogger(startupMessageLogger);


        logStartupMessages(startupLogger);

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

        StoreConfigurationChangeListener storeChangeListener = new StoreConfigurationChangeListener(_store);
        RecovererProvider provider = new DefaultRecovererProvider((StatisticsGatherer)this, _virtualHostRegistry, _logRecorder,
                                                                  _taskExecutor, brokerOptions, storeChangeListener);
View Full Code Here


    @Override
    protected void setUp() throws Exception
    {
        TaskExecutor executor = CurrentThreadTaskExecutor.newStartedInstance();
        when(_authProvider.getName()).thenReturn(_authProviderName);
        when(_broker.getChildren(eq(AuthenticationProvider.class))).thenReturn(Collections.singleton(_authProvider));
        when(_broker.getCategoryClass()).thenReturn(Broker.class);

        ConfiguredObjectFactory objectFactory = new ConfiguredObjectFactoryImpl(BrokerModel.getInstance());
View Full Code Here

    protected void setUp()
    {
        _count++;
        _queue = mock(AMQQueue.class);
        TaskExecutor executor = new CurrentThreadTaskExecutor();
        VirtualHostImpl vhost = mock(VirtualHostImpl.class);
        when(_queue.getVirtualHost()).thenReturn(vhost);
        when(_queue.getModel()).thenReturn(BrokerModel.getInstance());
        when(_queue.getTaskExecutor()).thenReturn(executor);
        when(vhost.getSecurityManager()).thenReturn(mock(org.apache.qpid.server.security.SecurityManager.class));
View Full Code Here

        ConfiguredObjectFactoryImpl factory = new ConfiguredObjectFactoryImpl(BrokerModel.getInstance());

        Broker broker = mock(Broker.class);
        when(broker.getObjectFactory()).thenReturn(factory);
        when(broker.getModel()).thenReturn(factory.getModel());
        TaskExecutor executor = new CurrentThreadTaskExecutor();
        when(broker.getTaskExecutor()).thenReturn(executor);

        final FileTrustStore trustStore = new FileTrustStoreImpl(attributes, broker);
        trustStore.open();
        assertNotNull("Trust store configured object is not created", trustStore);
View Full Code Here

    {
        Map<String, Object> attributes = getKeyStoreAttributes();
        Map<String, Object> attributesCopy = new HashMap<String, Object>(attributes);

        Broker broker = mock(Broker.class);
        TaskExecutor executor = new CurrentThreadTaskExecutor();
        when(broker.getObjectFactory()).thenReturn(_factory);
        when(broker.getModel()).thenReturn(_factory.getModel());
        when(broker.getTaskExecutor()).thenReturn(executor);

        final FileKeyStore keyStore =
View Full Code Here

    {
        super.setUp();

        EventLogger eventLogger = mock(EventLogger.class);
        SecurityManager securityManager = mock(SecurityManager.class);
        TaskExecutor executor = CurrentThreadTaskExecutor.newStartedInstance();
        SystemConfig systemConfig = mock(SystemConfig.class);
        ConfiguredObjectFactory objectFactory = new ConfiguredObjectFactoryImpl(BrokerModel.getInstance());
        when(systemConfig.getObjectFactory()).thenReturn(objectFactory);
        when(systemConfig.getModel()).thenReturn(objectFactory.getModel());
        when(systemConfig.getEventLogger()).thenReturn(eventLogger);
View Full Code Here

    public void setUp() throws Exception
    {
        super.setUp();
        Broker broker = BrokerTestHelper.createBrokerMock();

        TaskExecutor taskExecutor = CurrentThreadTaskExecutor.newStartedInstance();
        when(broker.getTaskExecutor()).thenReturn(taskExecutor);

        _storePath = TestFileUtils.createTestDirectory();

        _node = mock(VirtualHostNode.class);
View Full Code Here

TOP

Related Classes of org.apache.qpid.server.configuration.updater.TaskExecutor$ImmediateFuture

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.