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
8 package org.opendaylight.controller.cluster.raft.messages;
10 import static java.util.Objects.requireNonNull;
12 import java.io.Serializable;
15 * Message sent to remove a replica (ยง4.1).
17 public class RemoveServer implements Serializable {
18 private static final long serialVersionUID = 1L;
20 private final String serverId;
22 public RemoveServer(final String serverId) {
23 this.serverId = requireNonNull(serverId);
26 public String getServerId() {
31 public String toString() {
32 return "RemoveServer{" + "serverId='" + serverId + '\'' + '}';