Examples of SystemUsage


Examples of org.apache.activemq.usage.SystemUsage

    }

    public SystemUsage getSystemUsage() {
        try {
            if (systemUsage == null) {
                systemUsage = new SystemUsage("Main", getPersistenceAdapter(), getTempDataStore());
                systemUsage.getMemoryUsage().setLimit(1024 * 1024 * 64); // Default 64 Meg
                systemUsage.getTempUsage().setLimit(1024 * 1024 * 1024 * 100); // 10 Gb
                systemUsage.getStoreUsage().setLimit(1024 * 1024 * 1024 * 100); // 100 GB
                addService(this.systemUsage);
            }
View Full Code Here

Examples of org.apache.activemq.usage.SystemUsage

     * @return the consumerUsageManager
     * @throws IOException
     */
    public SystemUsage getConsumerSystemUsage() throws IOException {
        if (this.consumerSystemUsaage == null) {
            this.consumerSystemUsaage = new SystemUsage(getSystemUsage(), "Consumer");
            this.consumerSystemUsaage.getMemoryUsage().setUsagePortion(0.5f);
            addService(this.consumerSystemUsaage);
        }
        return this.consumerSystemUsaage;
    }
View Full Code Here

Examples of org.apache.activemq.usage.SystemUsage

     * @return the producerUsageManager
     * @throws IOException
     */
    public SystemUsage getProducerSystemUsage() throws IOException {
        if (producerSystemUsage == null) {
            producerSystemUsage = new SystemUsage(getSystemUsage(), "Producer");
            producerSystemUsage.getMemoryUsage().setUsagePortion(0.45f);
            addService(producerSystemUsage);
        }
        return producerSystemUsage;
    }
View Full Code Here

Examples of org.apache.activemq.usage.SystemUsage

        this.store = store;
        this.destination = destination;
        // let's copy the enabled property from the parent DestinationStatistics
        this.destinationStatistics.setEnabled(parentStats.isEnabled());
        this.destinationStatistics.setParent(parentStats);
        this.systemUsage = new SystemUsage(brokerService.getProducerSystemUsage(), destination.toString());
        this.memoryUsage = this.systemUsage.getMemoryUsage();
        this.memoryUsage.setUsagePortion(1.0f);
        this.regionBroker = brokerService.getRegionBroker();
    }
View Full Code Here

Examples of org.apache.activemq.usage.SystemUsage

    }

    public SystemUsage getSystemUsage() {
        try {
            if (systemUsage == null) {
                systemUsage = new SystemUsage("Main", getPersistenceAdapter(), getTempDataStore());
                systemUsage.setExecutor(getExecutor());
                systemUsage.getMemoryUsage().setLimit(1024 * 1024 * 64); // Default
                                                                         // 64
                                                                         // Meg
                systemUsage.getTempUsage().setLimit(1024L * 1024 * 1024 * 100); // 10
View Full Code Here

Examples of org.apache.activemq.usage.SystemUsage

     * @throws IOException
     */
    public SystemUsage getConsumerSystemUsage() throws IOException {
        if (this.consumerSystemUsaage == null) {
            if (splitSystemUsageForProducersConsumers) {
                this.consumerSystemUsaage = new SystemUsage(getSystemUsage(), "Consumer");
                float portion = consumerSystemUsagePortion / 100f;
                this.consumerSystemUsaage.getMemoryUsage().setUsagePortion(portion);
                addService(this.consumerSystemUsaage);
            } else {
                consumerSystemUsaage = getSystemUsage();
View Full Code Here

Examples of org.apache.activemq.usage.SystemUsage

     * @throws IOException
     */
    public SystemUsage getProducerSystemUsage() throws IOException {
        if (producerSystemUsage == null) {
            if (splitSystemUsageForProducersConsumers) {
                producerSystemUsage = new SystemUsage(getSystemUsage(), "Producer");
                float portion = producerSystemUsagePortion / 100f;
                producerSystemUsage.getMemoryUsage().setUsagePortion(portion);
                addService(producerSystemUsage);
            } else {
                producerSystemUsage = getSystemUsage();
View Full Code Here

Examples of org.apache.activemq.usage.SystemUsage

    }

    public SystemUsage getSystemUsage() {
        try {
            if (systemUsage == null) {
                systemUsage = new SystemUsage("Main", getPersistenceAdapter(), getTempDataStore());
                systemUsage.getMemoryUsage().setLimit(1024 * 1024 * 64); // Default 64 Meg
                systemUsage.getTempUsage().setLimit(1024L * 1024 * 1024 * 100); // 10 Gb
                systemUsage.getStoreUsage().setLimit(1024L * 1024 * 1024 * 100); // 100 GB
                addService(this.systemUsage);
            }
View Full Code Here

Examples of org.apache.activemq.usage.SystemUsage

     * @throws IOException
     */
    public SystemUsage getConsumerSystemUsage() throws IOException {
        if (this.consumerSystemUsaage == null) {
            if(splitSystemUsageForProducersConsumers) {
                this.consumerSystemUsaage = new SystemUsage(getSystemUsage(), "Consumer");
                float portion = consumerSystemUsagePortion/100f;
                this.consumerSystemUsaage.getMemoryUsage().setUsagePortion(portion);
                addService(this.consumerSystemUsaage);
            }else {
                consumerSystemUsaage=getSystemUsage();
View Full Code Here

Examples of org.apache.activemq.usage.SystemUsage

     * @throws IOException
     */
    public SystemUsage getProducerSystemUsage() throws IOException {
        if (producerSystemUsage == null ) {
            if (splitSystemUsageForProducersConsumers) {
                producerSystemUsage = new SystemUsage(getSystemUsage(), "Producer");
                float portion = producerSystemUsagePortion/100f;
                producerSystemUsage.getMemoryUsage().setUsagePortion(portion);
                addService(producerSystemUsage);
            }else {
                producerSystemUsage=getSystemUsage();
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.