/* * Copyright (c) 2014 Cisco 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.cluster.datastore.config; import com.google.common.base.Preconditions; import com.typesafe.config.Config; import com.typesafe.config.ConfigFactory; import java.io.File; public class FileConfigurationReader implements ConfigurationReader{ public static final String AKKA_CONF_PATH = "./configuration/initial/akka.conf"; @Override public Config read() { File defaultConfigFile = new File(AKKA_CONF_PATH); Preconditions.checkState(defaultConfigFile.exists(), "akka.conf is missing"); return ConfigFactory.parseFile(defaultConfigFile); } }