X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?p=controller.git;a=blobdiff_plain;f=opendaylight%2Fmd-sal%2Fsal-distributed-datastore%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Fcontroller%2Fconfig%2Fyang%2Fconfig%2Factor_system_provider%2Fimpl%2Ffactory%2Fosgi%2FQuarantinedMonitorActorPropsFactory.java;fp=opendaylight%2Fmd-sal%2Fsal-distributed-datastore%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Fcontroller%2Fconfig%2Fyang%2Fconfig%2Factor_system_provider%2Fimpl%2Ffactory%2Fosgi%2FQuarantinedMonitorActorPropsFactory.java;h=0000000000000000000000000000000000000000;hp=50a7647754b85130fe2b03ba1974ce5761dd9416;hb=bffaf3906c383141fe72cede16e9ea7d3306ea63;hpb=bb813bc67d165b02078e0d9aaa194d3232e170e5 diff --git a/opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/config/yang/config/actor_system_provider/impl/factory/osgi/QuarantinedMonitorActorPropsFactory.java b/opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/config/yang/config/actor_system_provider/impl/factory/osgi/QuarantinedMonitorActorPropsFactory.java deleted file mode 100644 index 50a7647754..0000000000 --- a/opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/config/yang/config/actor_system_provider/impl/factory/osgi/QuarantinedMonitorActorPropsFactory.java +++ /dev/null @@ -1,31 +0,0 @@ -/* - * Copyright (c) 2017 Pantheon Technologies s.r.o. 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.config.yang.config.actor_system_provider.impl.factory.osgi; - -import akka.actor.Props; -import org.opendaylight.controller.cluster.common.actor.QuarantinedMonitorActor; -import org.osgi.framework.BundleContext; -import org.slf4j.Logger; -import org.slf4j.LoggerFactory; - -public final class QuarantinedMonitorActorPropsFactory { - private static final Logger LOG = LoggerFactory.getLogger(QuarantinedMonitorActorPropsFactory.class); - - private QuarantinedMonitorActorPropsFactory() { - - } - - public static Props createProps(final BundleContext bundleContext) { - return QuarantinedMonitorActor.props(() -> { - // restart the entire karaf container - LOG.warn("Restarting karaf container"); - System.setProperty("karaf.restart.jvm", "true"); - bundleContext.getBundle(0).stop(); - }); - } -}