All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.opendaylight.controller.eos.akka.DataCenterControl Maven / Gradle / Ivy

There is a newer version: 10.0.3
Show newest version
/*
 * Copyright (c) 2021 PANTHEON.tech, 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.eos.akka;

import com.google.common.util.concurrent.ListenableFuture;
import org.eclipse.jdt.annotation.NonNull;
import org.opendaylight.yangtools.yang.common.Empty;

/**
 * Service used to bring up/down the Entity Ownership Service service in individual datacenters.
 * Active datacenter in native eos terms means that the candidates from this datacenter can become owners of entities.
 * Additionally the singleton component makings ownership decisions, runs only in an active datacenter.
 *
 * 

* Caller must make sure that only one datacenter is active at a time, otherwise the singleton actors * in each datacenter will interfere with each other. The methods provided byt this service can be called * on any node from the datacenter to be activated. Datacenters only need to brought up when using non-default * datacenter or multiple datacenters. */ public interface DataCenterControl { /** * Activates the Entity Ownership Service in the datacenter that this method is called. * * @return Completion future */ @NonNull ListenableFuture activateDataCenter(); /** * Deactivates the Entity Ownership Service in the datacenter that this method is called. * * @return Completion future */ @NonNull ListenableFuture deactivateDataCenter(); }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy