Bug 6540: EOS - Rework behavior of onPeerDown
[controller.git] / opendaylight / md-sal / sal-distributed-datastore / src / main / java / org / opendaylight / controller / cluster / datastore / entityownership / messages / RemoveAllCandidates.java
1 /*
2  * Copyright (c) 2016 2015 Brocade Communications 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 package org.opendaylight.controller.cluster.datastore.entityownership.messages;
9
10 import java.io.Serializable;
11 import org.opendaylight.controller.cluster.access.concepts.MemberName;
12
13 /**
14  * Message sent by an EntityOwnershipShard to its leader on startup to remove all its candidates.                                                                               .
15  *
16  * @author Thomas Pantelis
17  */
18 public class RemoveAllCandidates implements Serializable {
19     private static final long serialVersionUID = 1L;
20
21     private final MemberName memberName;
22
23     public RemoveAllCandidates(MemberName memberName) {
24         this.memberName = memberName;
25     }
26
27     public MemberName getMemberName() {
28         return memberName;
29     }
30
31     @Override
32     public String toString() {
33         return "RemoveAllCandidates [memberName=" + memberName + "]";
34     }
35 }