Fixup checkstyle
[controller.git] / opendaylight / md-sal / sal-akka-raft / src / main / java / org / opendaylight / controller / cluster / raft / messages / ServerChangeStatus.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.raft.messages;
9
10 /**
11  * Enumerates server configuration change status reply codes.
12  *
13  * @author Thomas Pantelis
14  */
15 public enum ServerChangeStatus {
16     /**
17      * Request successfully completed.
18      */
19     OK,
20
21     /**
22      * No leader exists to process the request.
23      */
24     NO_LEADER,
25
26     /**
27      * For an AddServer request, the leader timed out trying to install a snapshot on the new server.
28      */
29     TIMEOUT,
30
31     /**
32      * For an AddServer request, the server to add already exists.
33      */
34     ALREADY_EXISTS,
35
36     /**
37      * For a RemoveServer request, the server to remove does not exist.
38      */
39     DOES_NOT_EXIST,
40
41     /**
42      * The leader could not process the request due to a prior request that timed out while trying to
43      * achieve replication consensus.
44      */
45     PRIOR_REQUEST_CONSENSUS_TIMEOUT,
46
47     /**
48      * An unsupported request, for example removing the leader in a single node cluster.
49      */
50     NOT_SUPPORTED,
51
52     /**
53      * Some part of the request is invalid.
54      */
55     INVALID_REQUEST,
56 }