X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?p=controller.git;a=blobdiff_plain;f=opendaylight%2Fmd-sal%2Fsal-distributed-datastore%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Fcontroller%2Fcluster%2Fdatastore%2FDistributedDataStoreProperties.java;fp=opendaylight%2Fmd-sal%2Fsal-distributed-datastore%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Fcontroller%2Fcluster%2Fdatastore%2FDistributedDataStoreProperties.java;h=e69de29bb2d1d6434b8b29ae775ad8c2e48c5391;hp=df3245ffb225d9d3b0baf704e81e499ebdced314;hb=4a2db09204b6cc8b3e25948b976921891849c9ce;hpb=b10d77375b5a290143106180f1583ea4e18f8478 diff --git a/opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/datastore/DistributedDataStoreProperties.java b/opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/datastore/DistributedDataStoreProperties.java index df3245ffb2..e69de29bb2 100644 --- a/opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/datastore/DistributedDataStoreProperties.java +++ b/opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/datastore/DistributedDataStoreProperties.java @@ -1,60 +0,0 @@ -/* - * Copyright (c) 2014 Brocade Communications Systems, Inc. and others. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v1.0 which accompanies this distribution, - * and is available at http://www.eclipse.org/legal/epl-v10.html - */ - -package org.opendaylight.controller.cluster.datastore; - -/** - * Wrapper class for DistributedDataStore configuration properties. - * - * @author Thomas Pantelis - */ -public class DistributedDataStoreProperties { - private final int maxShardDataChangeListenerQueueSize; - private final int maxShardDataChangeExecutorQueueSize; - private final int maxShardDataChangeExecutorPoolSize; - private final int shardTransactionIdleTimeoutInMinutes; - private final int operationTimeoutInSeconds; - - public DistributedDataStoreProperties() { - maxShardDataChangeListenerQueueSize = 1000; - maxShardDataChangeExecutorQueueSize = 1000; - maxShardDataChangeExecutorPoolSize = 20; - shardTransactionIdleTimeoutInMinutes = 10; - operationTimeoutInSeconds = 5; - } - - public DistributedDataStoreProperties(int maxShardDataChangeListenerQueueSize, - int maxShardDataChangeExecutorQueueSize, int maxShardDataChangeExecutorPoolSize, - int shardTransactionIdleTimeoutInMinutes, int operationTimeoutInSeconds) { - this.maxShardDataChangeListenerQueueSize = maxShardDataChangeListenerQueueSize; - this.maxShardDataChangeExecutorQueueSize = maxShardDataChangeExecutorQueueSize; - this.maxShardDataChangeExecutorPoolSize = maxShardDataChangeExecutorPoolSize; - this.shardTransactionIdleTimeoutInMinutes = shardTransactionIdleTimeoutInMinutes; - this.operationTimeoutInSeconds = operationTimeoutInSeconds; - } - - public int getMaxShardDataChangeListenerQueueSize() { - return maxShardDataChangeListenerQueueSize; - } - - public int getMaxShardDataChangeExecutorQueueSize() { - return maxShardDataChangeExecutorQueueSize; - } - - public int getMaxShardDataChangeExecutorPoolSize() { - return maxShardDataChangeExecutorPoolSize; - } - - public int getShardTransactionIdleTimeoutInMinutes() { - return shardTransactionIdleTimeoutInMinutes; - } - - public int getOperationTimeoutInSeconds() { - return operationTimeoutInSeconds; - } -}