c6254d1650162d5e447375b8d395a98b845b4539
[controller.git] / opendaylight / md-sal / sal-distributed-datastore / src / main / java / org / opendaylight / controller / cluster / datastore / messages / PeerDown.java
1 /*
2  * Copyright (c) 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.messages;
9
10 /**
11  * Message sent to a shard actor indicating one of its peers is down.
12  *
13  * @author Thomas Pantelis
14  */
15 public class PeerDown {
16     private final String memberName;
17     private final String peerId;
18
19     public PeerDown(String memberName, String peerId) {
20         this.memberName = memberName;
21         this.peerId = peerId;
22     }
23
24     public String getMemberName() {
25         return memberName;
26     }
27
28
29     public String getPeerId() {
30         return peerId;
31     }
32
33     @Override
34     public String toString() {
35         return "PeerDown [memberName=" + memberName + ", peerId=" + peerId + "]";
36     }
37 }