2 * Copyright (c) 2014 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
9 package org.opendaylight.controller.remote.rpc.utils;
11 import com.google.common.base.Preconditions;
12 import com.typesafe.config.Config;
13 import com.typesafe.config.ConfigFactory;
17 public class DefaultAkkaConfigurationReader implements AkkaConfigurationReader {
18 public static final String AKKA_CONF_PATH = "./configuration/initial/akka.conf";
20 @Override public Config read() {
21 File defaultConfigFile = new File(AKKA_CONF_PATH);
22 Preconditions.checkState(defaultConfigFile.exists(), "akka.conf is missing");
23 return ConfigFactory.parseFile(defaultConfigFile);