2 * Copyright (c) 2015 Cisco Systems, Inc. and others. All rights reserved.
4 * This program and the accompanying materials are made available under the
5 * terms of the Eclipse Public License v1.0 which accompanies this distribution,
6 * and is available at http://www.eclipse.org/legal/epl-v10.html
8 package org.opendaylight.controller.cluster.entityownership.selectionstrategy;
12 public abstract class AbstractEntityOwnerSelectionStrategy implements EntityOwnerSelectionStrategy {
14 private final long selectionDelayInMillis;
15 private final Map<String, Long> initialStatistics;
17 protected AbstractEntityOwnerSelectionStrategy(final long selectionDelayInMillis,
18 final Map<String, Long> initialStatistics) {
19 this.selectionDelayInMillis = selectionDelayInMillis;
20 this.initialStatistics = initialStatistics;
24 public long getSelectionDelayInMillis() {
25 return selectionDelayInMillis;
28 public Map<String, Long> getInitialStatistics() {
29 return initialStatistics;