Examples of UsageManager


Examples of org.apache.activemq.memory.UsageManager

                    ((TimedSubscriptionRecoveryPolicy)subsPolicy).getRecoverDuration());
            log.info("Success");

            // Check usage manager
//            System.out.print("Checking memory manager configurations... ");
            UsageManager memMgr = broker.getMemoryManager();
            assertTrue("Should have a memory manager", memMgr != null);
            assertEquals("UsageManager Config Error (limit)", 200000, memMgr.getLimit());
            assertEquals("UsageManager Config Error (percentUsageMinDelta)", 20, memMgr.getPercentUsageMinDelta());
            log.info("Success");

            log.info("Success");
        } finally {
            if (broker != null) {
View Full Code Here

Examples of org.apache.activemq.memory.UsageManager

    public Topic(ActiveMQDestination destination, TopicMessageStore store, UsageManager memoryManager, DestinationStatistics parentStats,
            TaskRunnerFactory taskFactory) {

        this.destination = destination;
        this.store = store; //this could be NULL! (If an advsiory)
        this.usageManager = new UsageManager(memoryManager);
        this.usageManager.setLimit(Long.MAX_VALUE);
       
        // Let the store know what usage manager we are using so that he can flush messages to disk
        // when usage gets high.
        if( store!=null ) {
View Full Code Here

Examples of org.apache.activemq.memory.UsageManager

    private MessageGroupMapFactory messageGroupMapFactory = new MessageGroupHashBucketFactory();

    public Queue(ActiveMQDestination destination, final UsageManager memoryManager, MessageStore store, DestinationStatistics parentStats,
            TaskRunnerFactory taskFactory) throws Exception {
        this.destination = destination;
        this.usageManager = new UsageManager(memoryManager);
        this.usageManager.setLimit(Long.MAX_VALUE);
        this.store = store;

        // Let the store know what usage manager we are using so that he can
        // flush messages to disk
View Full Code Here

Examples of org.apache.activemq.memory.UsageManager

        this.populateJMSXUserID = populateJMSXUserID;
    }

    public UsageManager getMemoryManager() {
        if (memoryManager == null) {
            memoryManager = new UsageManager();
            memoryManager.setLimit(1024 * 1024 * 20); // Default to 20 Meg
            // limit
        }
        return memoryManager;
    }
View Full Code Here

Examples of org.apache.activemq.memory.UsageManager

    brokerService.setBrokerName(brokerName);
    brokerService.setPersistent(false);
    brokerService.setUseJmx(true);

    final UsageManager memoryManager = new UsageManager();
    memoryManager.setLimit(5000000);
    brokerService.setMemoryManager(memoryManager);

    final ArrayList policyEntries = new ArrayList();

    final PolicyEntry entry = new PolicyEntry();
View Full Code Here

Examples of org.apache.activemq.memory.UsageManager

    brokerService.setBrokerName(brokerName);
    brokerService.setPersistent(false);
    brokerService.setUseJmx(true);

    final UsageManager memoryManager = new UsageManager();
    memoryManager.setLimit(5000000);
    brokerService.setMemoryManager(memoryManager);

    final ArrayList policyEntries = new ArrayList();

    final PolicyEntry entry = new PolicyEntry();
View Full Code Here

Examples of org.apache.activemq.memory.UsageManager

        this.populateJMSXUserID = populateJMSXUserID;
    }

    public UsageManager getMemoryManager() {
        if (memoryManager == null) {
            memoryManager = new UsageManager();
            memoryManager.setLimit(1024 * 1024 * 20); // Default to 20 Meg
            // limit
        }
        return memoryManager;
    }
View Full Code Here

Examples of org.apache.activemq.memory.UsageManager

    public Topic(ActiveMQDestination destination, TopicMessageStore store, UsageManager memoryManager, DestinationStatistics parentStats,
            TaskRunnerFactory taskFactory) {

        this.destination = destination;
        this.store = store; //this could be NULL! (If an advsiory)
        this.usageManager = new UsageManager(memoryManager);
        this.usageManager.setLimit(Long.MAX_VALUE);
       
        // Let the store know what usage manager we are using so that he can flush messages to disk
        // when usage gets high.
        if( store!=null ) {
View Full Code Here

Examples of org.apache.activemq.memory.UsageManager

    private MessageGroupMapFactory messageGroupMapFactory = new MessageGroupHashBucketFactory();

    public Queue(ActiveMQDestination destination, final UsageManager memoryManager, MessageStore store, DestinationStatistics parentStats,
            TaskRunnerFactory taskFactory) throws Exception {
        this.destination = destination;
        this.usageManager = new UsageManager(memoryManager);
        this.usageManager.setLimit(Long.MAX_VALUE);
        this.store = store;

        // Let the store know what usage manager we are using so that he can
        // flush messages to disk
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.