2 * Copyright (c) 2015 Cisco Systems, Inc. and others. All rights reserved.
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
9 package org.opendaylight.controller.cluster.raft.messages;
11 import com.google.common.base.Preconditions;
12 import java.io.Serializable;
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.
18 public class ServerRemoved implements Serializable {
19 private static final long serialVersionUID = 1L;
21 private final String serverId;
23 public ServerRemoved(String serverId) {
24 this.serverId = Preconditions.checkNotNull(serverId);
27 public String getServerId() {
32 public String toString() {
33 return "ServerRemoved [serverId=" + serverId + "]";