/*
 *
 *  * Copyright 2005-2015 Red Hat, Inc.
 *  * Red Hat licenses this file to you under the Apache License, version
 *  * 2.0 (the "License"); you may not use this file except in compliance
 *  * with the License.  You may obtain a copy of the License at
 *  *    http://www.apache.org/licenses/LICENSE-2.0
 *  * Unless required by applicable law or agreed to in writing, software
 *  * distributed under the License is distributed on an "AS IS" BASIS,
 *  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
 *  * implied.  See the License for the specific language governing
 *  * permissions and limitations under the License.
 *
 */

package io.fabric8.mq.model;

import org.apache.deltaspike.core.api.config.ConfigProperty;

import javax.inject.Inject;

public class DefaultBrokerLimitsConfig implements BrokerLimitsConfig {
    @Inject
    @ConfigProperty(name = "MAX_CONNECTIONS_PER_BROKER", defaultValue = "20")
    private int maxConnectionsPerBroker = 20;
    @Inject
    @ConfigProperty(name = "MAX_DESTINATIONS_PER_BROKER", defaultValue = "20")
    private int maxDestinationsPerBroker = 20;
    @Inject
    @ConfigProperty(name = "MAX_DESTINATION_DEPTH", defaultValue = "20")
    private int maxDestinationDepth = 20;
    @Inject
    @ConfigProperty(name = "MAX_PRODUCERS_PER_DESTINATION", defaultValue = "20")
    private int maxProducersPerDestination = 20;

    @Inject
    @ConfigProperty(name = "MAX_CONSUMERS_PER_DESTINATION", defaultValue = "20")
    private int maxConsumersPerDestination = 20;

    @Inject
    @ConfigProperty(name = "MAX_NUMBER_OF_BROKERS", defaultValue = "20")
    private int maxNumberOfBrokers = 20;

    public int getMaxConsumersPerDestination() {
        return maxConsumersPerDestination;
    }

    public void setMaxConsumersPerDestination(int maxConsumersPerDestination) {
        this.maxConsumersPerDestination = maxConsumersPerDestination;
    }

    public int getMaxConnectionsPerBroker() {
        return maxConnectionsPerBroker;
    }

    public void setMaxConnectionsPerBroker(int maxConnectionsPerBroker) {
        this.maxConnectionsPerBroker = maxConnectionsPerBroker;
    }

    public int getMaxDestinationsPerBroker() {
        return maxDestinationsPerBroker;
    }

    public void setMaxDestinationsPerBroker(int maxDestinationsPerBroker) {
        this.maxDestinationsPerBroker = maxDestinationsPerBroker;
    }

    public int getMaxDestinationDepth() {
        return maxDestinationDepth;
    }

    public void setMaxDestinationDepth(int maxDestinationDepth) {
        this.maxDestinationDepth = maxDestinationDepth;
    }

    public int getMaxProducersPerDestination() {
        return maxProducersPerDestination;
    }

    public void setMaxProducersPerDestination(int maxProducersPerDestination) {
        this.maxProducersPerDestination = maxProducersPerDestination;
    }

    @Override
    public int getMaxNumberOfBrokers() {
        return maxNumberOfBrokers;
    }

    public void setMaxNumberOfBrokers(int maxNumberOfBrokers) {
        this.maxNumberOfBrokers = maxNumberOfBrokers;
    }
}

@@ -918,34 +918,33 @@
 defaultValue = %22
-20
+5
 %22)%0A    private i
@@ -964,34 +964,33 @@
 ionsPerBroker = 
-20
+5
 ;%0A    @Inject%0A  
@@ -1053,34 +1053,33 @@
 defaultValue = %22
-20
+4
 %22)%0A    private i
@@ -1108,18 +1108,17 @@
 roker = 
-20
+4
 ;%0A    @I
@@ -1318,33 +1318,33 @@
 defaultValue = %22
-2
+1
 0%22)%0A    private 
@@ -1368,33 +1368,33 @@
 erDestination = 
-2
+1
 0;%0A%0A    @Inject%0A
@@ -1461,33 +1461,33 @@
 defaultValue = %22
-2
+1
 0%22)%0A    private 
@@ -1519,17 +1519,17 @@
 ation = 
-2
+1
 0;%0A%0A    

make default broker limits lower