Merge "Prevent ConfigPusher from killing its thread"
[controller.git] / opendaylight / sal / connection / api / src / main / java / org / opendaylight / controller / sal / connection / ConnectionLocality.java
1 /*
2  * Copyright (c) 2014 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 package org.opendaylight.controller.sal.connection;
9
10 public enum ConnectionLocality {
11     /**
12      * This controller is the (or one of the) master for a given node
13      */
14     LOCAL("This controller is the (or one of the) master for a given node"),
15
16     /**
17      * This controller is not the master for a given node
18      */
19     NOT_LOCAL("This controller is not the master for a given node"),
20
21     /**
22      * The given node is not connected to any of the controllers in the cluster
23      */
24     NOT_CONNECTED("The given node is not connected to any of the controllers in the cluster");
25
26     private ConnectionLocality(String description) {
27         this.description = description;
28     }
29
30     private String description;
31
32     public String toString() {
33         return description;
34     }
35 }