Package org.activemq.io.util

Examples of org.activemq.io.util.MemoryBoundedObjectManager


    this.connectionConsumers = new CopyOnWriteArrayList();
    this.connectionMetaData = new ActiveMQConnectionMetaData();
    this.started = new SynchronizedBoolean(false);
    this.startTime = System.currentTimeMillis();
    this.prefetchPolicy = new ActiveMQPrefetchPolicy();
    this.memoryManager = new MemoryBoundedObjectManager(clientID,
        DEFAULT_CONNECTION_MEMORY_LIMIT);
    this.boundedQueueManager = new MemoryBoundedQueueManager(memoryManager);
    this.memoryManager.addCapacityEventListener(this);
    boolean transactional = this instanceof XAConnection;
    factoryStats = factory.getFactoryStats();
View Full Code Here


    this.connectionConsumers = new CopyOnWriteArrayList();
    this.connectionMetaData = new ActiveMQConnectionMetaData();
    this.started = new SynchronizedBoolean(false);
    this.startTime = System.currentTimeMillis();
    this.prefetchPolicy = new ActiveMQPrefetchPolicy();
    this.memoryManager = new MemoryBoundedObjectManager(clientID,
        DEFAULT_CONNECTION_MEMORY_LIMIT);
    this.boundedQueueManager = new MemoryBoundedQueueManager(memoryManager);
    this.memoryManager.addCapacityEventListener(this);
    boolean transactional = this instanceof XAConnection;
    factoryStats = factory.getFactoryStats();
View Full Code Here

    this.connectionConsumers = new CopyOnWriteArrayList();
    this.connectionMetaData = new ActiveMQConnectionMetaData();
    this.started = new SynchronizedBoolean(false);
    this.startTime = System.currentTimeMillis();
    this.prefetchPolicy = new ActiveMQPrefetchPolicy();
    this.memoryManager = new MemoryBoundedObjectManager(clientID,
        DEFAULT_CONNECTION_MEMORY_LIMIT);
    this.boundedQueueManager = new MemoryBoundedQueueManager(memoryManager);
    this.memoryManager.addCapacityEventListener(this);
    boolean transactional = this instanceof XAConnection;
    factoryStats = factory.getFactoryStats();
View Full Code Here

    public DefaultBroker(String brokerName, MemoryBoundedObjectManager memoryManager) {
        this(brokerName, "default", memoryManager);
    }

    public DefaultBroker(String brokerName, String cluserName) {
        this(brokerName, cluserName, new MemoryBoundedObjectManager("Broker Memory Manager", DEFAULT_MAX_MEMORY_USAGE));
    }
View Full Code Here

    public DefaultBroker(String brokerName, String cluserName) {
        this(brokerName, cluserName, new MemoryBoundedObjectManager("Broker Memory Manager", DEFAULT_MAX_MEMORY_USAGE));
    }

    public DefaultBroker(String brokerName) {
        this(brokerName, new MemoryBoundedObjectManager("Broker Memory Manager", DEFAULT_MAX_MEMORY_USAGE));
    }
View Full Code Here

    public DefaultBroker(String brokerName) {
        this(brokerName, new MemoryBoundedObjectManager("Broker Memory Manager", DEFAULT_MAX_MEMORY_USAGE));
    }

    public DefaultBroker(String brokerName, String brokerClusterName, PersistenceAdapter persistenceAdapter) {
        this(brokerName, brokerClusterName, new MemoryBoundedObjectManager("Broker Memory Manager", DEFAULT_MAX_MEMORY_USAGE));
        this.persistenceAdapter = persistenceAdapter;
    }
View Full Code Here

    this.connectionConsumers = new CopyOnWriteArrayList();
    this.connectionMetaData = new ActiveMQConnectionMetaData();
    this.started = new SynchronizedBoolean(false);
    this.startTime = System.currentTimeMillis();
    this.prefetchPolicy = new ActiveMQPrefetchPolicy();
    this.memoryManager = new MemoryBoundedObjectManager(clientID,
        DEFAULT_CONNECTION_MEMORY_LIMIT);
    this.boundedQueueManager = new MemoryBoundedQueueManager(memoryManager);
    this.memoryManager.addCapacityEventListener(this);
    boolean transactional = this instanceof XAConnection;
    factoryStats = factory.getFactoryStats();
View Full Code Here

        assertTrue("Memory must have been freed by now", this.memoryManager.getTotalMemoryUsedSize() == 0);       
    }
   
    public void setUp() throws Exception {
      // setup memory space for just 1 message
      this.memoryManager = new MemoryBoundedObjectManager("testmanager", MESSAGE_SIZE);
      assertEquals("Total memory used must be zero", 0, this.memoryManager.getTotalMemoryUsedSize());
      this.queueManager = new MemoryBoundedQueueManager(this.memoryManager);
      //this.queue = this.queueManager.getMemoryBoundedQueue(QUEUE_NAME);
      this.transientQueueMCM = new TransientQueueBoundedMessageManager(this.queueManager,null,null);
      this.transientQueueMCM.start();
View Full Code Here

    public DefaultBroker(String brokerName, MemoryBoundedObjectManager memoryManager) {
        this(brokerName, "default", memoryManager);
    }

    public DefaultBroker(String brokerName, String cluserName) {
        this(brokerName, cluserName, new MemoryBoundedObjectManager("Broker Memory Manager", DEFAULT_MAX_MEMORY_USAGE));
    }
View Full Code Here

    public DefaultBroker(String brokerName, String cluserName) {
        this(brokerName, cluserName, new MemoryBoundedObjectManager("Broker Memory Manager", DEFAULT_MAX_MEMORY_USAGE));
    }

    public DefaultBroker(String brokerName) {
        this(brokerName, new MemoryBoundedObjectManager("Broker Memory Manager", DEFAULT_MAX_MEMORY_USAGE));
    }
View Full Code Here

TOP

Related Classes of org.activemq.io.util.MemoryBoundedObjectManager

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.