Switch default stream output to Magnesium
[controller.git] / opendaylight / md-sal / sal-distributed-eos / src / main / java / org / opendaylight / controller / cluster / entityownership / selectionstrategy / AbstractEntityOwnerSelectionStrategy.java
1 /*
2  * Copyright (c) 2015 Cisco Systems, Inc. and others.  All rights reserved.
3  *
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
7  */
8 package org.opendaylight.controller.cluster.entityownership.selectionstrategy;
9
10 import java.util.Map;
11
12 public abstract class AbstractEntityOwnerSelectionStrategy implements EntityOwnerSelectionStrategy {
13
14     private final long selectionDelayInMillis;
15     private final Map<String, Long> initialStatistics;
16
17     protected AbstractEntityOwnerSelectionStrategy(final long selectionDelayInMillis,
18             final Map<String, Long> initialStatistics) {
19         this.selectionDelayInMillis = selectionDelayInMillis;
20         this.initialStatistics = initialStatistics;
21     }
22
23     @Override
24     public long getSelectionDelayInMillis() {
25         return selectionDelayInMillis;
26     }
27
28     public Map<String, Long> getInitialStatistics() {
29         return initialStatistics;
30     }
31 }