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.cluster.datastore;
11 import akka.actor.ActorSystem;
12 import akka.actor.Props;
13 import com.google.common.base.Function;
14 import com.typesafe.config.ConfigFactory;
16 import javax.annotation.Nullable;
18 public class ActorSystemFactory {
19 private static final ActorSystem actorSystem = (new Function<Void, ActorSystem>(){
21 @Nullable @Override public ActorSystem apply(@Nullable Void aVoid) {
23 ActorSystem.create("opendaylight-cluster", ConfigFactory
24 .load().getConfig("ODLCluster"));
25 system.actorOf(Props.create(TerminationMonitor.class), "termination-monitor");
30 public static final ActorSystem getInstance(){