CDS: Include CAN_COMMIT phase in rate limiter time period
[controller.git] / opendaylight / md-sal / sal-distributed-datastore / src / main / java / org / opendaylight / controller / cluster / datastore / config / FileConfigurationReader.java
1 /*
2  * Copyright (c) 2014 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
9 package org.opendaylight.controller.cluster.datastore.config;
10
11 import com.google.common.base.Preconditions;
12 import com.typesafe.config.Config;
13 import com.typesafe.config.ConfigFactory;
14
15 import java.io.File;
16
17 public class FileConfigurationReader implements ConfigurationReader{
18
19     public static final String AKKA_CONF_PATH = "./configuration/initial/akka.conf";
20
21     @Override
22     public Config read() {
23         File defaultConfigFile = new File(AKKA_CONF_PATH);
24         Preconditions.checkState(defaultConfigFile.exists(), "akka.conf is missing");
25         return ConfigFactory.parseFile(defaultConfigFile);
26
27     }
28 }