X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=opendaylight%2Fmd-sal%2Fsal-inmemory-datastore%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Fcontroller%2Fmd%2Fsal%2Fdom%2Fstore%2Fimpl%2FInMemoryDOMDataStoreConfigProperties.java;fp=opendaylight%2Fmd-sal%2Fsal-inmemory-datastore%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Fcontroller%2Fmd%2Fsal%2Fdom%2Fstore%2Fimpl%2FInMemoryDOMDataStoreConfigProperties.java;h=0000000000000000000000000000000000000000;hb=2611e6a728e586ea34dd891f30a473bf54d6cbd8;hp=00220101691fd114660598f93ca3ba5fe3c2ee88;hpb=aaea3e9a92ae9d6fac04c4a065db4b35cbca9ed0;p=controller.git diff --git a/opendaylight/md-sal/sal-inmemory-datastore/src/main/java/org/opendaylight/controller/md/sal/dom/store/impl/InMemoryDOMDataStoreConfigProperties.java b/opendaylight/md-sal/sal-inmemory-datastore/src/main/java/org/opendaylight/controller/md/sal/dom/store/impl/InMemoryDOMDataStoreConfigProperties.java deleted file mode 100644 index 0022010169..0000000000 --- a/opendaylight/md-sal/sal-inmemory-datastore/src/main/java/org/opendaylight/controller/md/sal/dom/store/impl/InMemoryDOMDataStoreConfigProperties.java +++ /dev/null @@ -1,108 +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.md.sal.dom.store.impl; - -/** - * Holds configuration properties when creating an {@link InMemoryDOMDataStore} instance via the - * {@link InMemoryDOMDataStoreFactory}. - * - * @author Thomas Pantelis - * @see InMemoryDOMDataStoreFactory - * - * @deprecated Use {@link org.opendaylight.mdsal.dom.store.inmemory.InMemoryDOMDataStoreConfigProperties} instead. - */ -@Deprecated(forRemoval = true) -public final class InMemoryDOMDataStoreConfigProperties { - - public static final int DEFAULT_MAX_DATA_CHANGE_EXECUTOR_QUEUE_SIZE = 1000; - public static final int DEFAULT_MAX_DATA_CHANGE_EXECUTOR_POOL_SIZE = 20; - public static final int DEFAULT_MAX_DATA_CHANGE_LISTENER_QUEUE_SIZE = 1000; - public static final int DEFAULT_MAX_DATA_STORE_EXECUTOR_QUEUE_SIZE = 5000; - - private static final InMemoryDOMDataStoreConfigProperties DEFAULT = - create(DEFAULT_MAX_DATA_CHANGE_EXECUTOR_POOL_SIZE, - DEFAULT_MAX_DATA_CHANGE_EXECUTOR_QUEUE_SIZE, - DEFAULT_MAX_DATA_CHANGE_LISTENER_QUEUE_SIZE, - DEFAULT_MAX_DATA_STORE_EXECUTOR_QUEUE_SIZE); - - private final int maxDataChangeExecutorQueueSize; - private final int maxDataChangeExecutorPoolSize; - private final int maxDataChangeListenerQueueSize; - private final int maxDataStoreExecutorQueueSize; - - /** - * Constructs an instance with the given property values. - * - * @param maxDataChangeExecutorPoolSize - * maximum thread pool size for the data change notification executor. - * @param maxDataChangeExecutorQueueSize - * maximum queue size for the data change notification executor. - * @param maxDataChangeListenerQueueSize - * maximum queue size for the data change listeners. - * @param maxDataStoreExecutorQueueSize - * maximum queue size for the data store executor. - */ - public static InMemoryDOMDataStoreConfigProperties create(int maxDataChangeExecutorPoolSize, - int maxDataChangeExecutorQueueSize, int maxDataChangeListenerQueueSize, - int maxDataStoreExecutorQueueSize) { - return new InMemoryDOMDataStoreConfigProperties(maxDataChangeExecutorPoolSize, - maxDataChangeExecutorQueueSize, maxDataChangeListenerQueueSize, - maxDataStoreExecutorQueueSize); - } - - public static InMemoryDOMDataStoreConfigProperties create(int maxDataChangeExecutorPoolSize, - int maxDataChangeExecutorQueueSize, int maxDataChangeListenerQueueSize) { - return new InMemoryDOMDataStoreConfigProperties(maxDataChangeExecutorPoolSize, - maxDataChangeExecutorQueueSize, maxDataChangeListenerQueueSize, - DEFAULT_MAX_DATA_STORE_EXECUTOR_QUEUE_SIZE); - } - - /** - * Returns the InMemoryDOMDataStoreConfigProperties instance with default values. - */ - public static InMemoryDOMDataStoreConfigProperties getDefault() { - return DEFAULT; - } - - private InMemoryDOMDataStoreConfigProperties(int maxDataChangeExecutorPoolSize, - int maxDataChangeExecutorQueueSize, int maxDataChangeListenerQueueSize, - int maxDataStoreExecutorQueueSize) { - this.maxDataChangeExecutorQueueSize = maxDataChangeExecutorQueueSize; - this.maxDataChangeExecutorPoolSize = maxDataChangeExecutorPoolSize; - this.maxDataChangeListenerQueueSize = maxDataChangeListenerQueueSize; - this.maxDataStoreExecutorQueueSize = maxDataStoreExecutorQueueSize; - } - - /** - * Returns the maximum queue size for the data change notification executor. - */ - public int getMaxDataChangeExecutorQueueSize() { - return maxDataChangeExecutorQueueSize; - } - - /** - * Returns the maximum thread pool size for the data change notification executor. - */ - public int getMaxDataChangeExecutorPoolSize() { - return maxDataChangeExecutorPoolSize; - } - - /** - * Returns the maximum queue size for the data change listeners. - */ - public int getMaxDataChangeListenerQueueSize() { - return maxDataChangeListenerQueueSize; - } - - /** - * Returns the maximum queue size for the data store executor. - */ - public int getMaxDataStoreExecutorQueueSize() { - return maxDataStoreExecutorQueueSize; - } -}