Bug 7407 - Add request leadership functionality to shards
[controller.git] / opendaylight / md-sal / sal-distributed-datastore / src / main / java / org / opendaylight / controller / cluster / datastore / messages / MakeLeaderLocal.java
1 /*
2  * Copyright (c) 2017 Cisco Systems, Inc. and others.  All rights reserved.
3  *
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
7  */
8
9 package org.opendaylight.controller.cluster.datastore.messages;
10
11 /**
12  * Message sent to local shard to try to gain shard leadership. Sender of this
13  * message will be notified about result of leadership transfer with
14  * {@link akka.actor.Status.Success}, if leadership is successfully transferred
15  * to local shard. Otherwise {@link akka.actor.Status.Failure} with
16  * {@link org.opendaylight.controller.cluster.raft.LeadershipTransferFailedException}
17  * will be sent to sender of this message.
18  */
19 public final class MakeLeaderLocal {
20
21     public static final MakeLeaderLocal INSTANCE = new MakeLeaderLocal();
22
23     private MakeLeaderLocal() {
24
25     }
26 }