Fix warnings and clean up javadocs in sal-akka-raft
[controller.git] / opendaylight / md-sal / sal-akka-raft / src / main / java / org / opendaylight / controller / cluster / raft / messages / ServerRemoved.java
1 /*
2  * Copyright (c) 2015 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.raft.messages;
10
11 import com.google.common.base.Preconditions;
12 import java.io.Serializable;
13
14 /**
15  * The ServerRemoved message is sent to a server which has been removed successfully from the ServerConfiguration.
16  * The Server can then choose to self destruct or notify it's parents as needed.
17  */
18 public class ServerRemoved implements Serializable {
19     private static final long serialVersionUID = 1L;
20
21     private final String serverId;
22
23     public ServerRemoved(String serverId) {
24         this.serverId = Preconditions.checkNotNull(serverId);
25     }
26
27     public String getServerId() {
28         return serverId;
29     }
30
31     @Override
32     public String toString() {
33         return "ServerRemoved [serverId=" + serverId + "]";
34     }
35 }