1. Controller switchEvents queue should be priority based. The queue holds switch...
[controller.git] / opendaylight / northbound / commons / src / main / java / org / opendaylight / controller / northbound / commons / RestMessages.java
1 /*
2  * Copyright (c) 2013 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.northbound.commons;
10
11 public enum RestMessages {
12     SUCCESS("Success"), NOCONTAINER("Container does not exist"), NOFLOWSPEC(
13             "Flow Spec does not exist"), NOSUBNET("Subnet does not exist"), NOSTATICROUTE(
14             "Static Route does not exist"), NOHOST("Host does not exist"), NOFLOW(
15             "Flow does not exist"), NONODE("Node does not exist"), NOPOLICY(
16             "Policy does not exist"), NORESOURCE("Resource does not exist"), RESOURCECONFLICT(
17             "Operation failed due to Resource Conflict"), NODEFAULT(
18             "Container default is not a custom container"), DEFAULTDISABLED(
19             "Container(s) are configured. Container default is not operational"), NOTALLOWEDONDEFAULT(
20             "Container default is a static resource, no modification allowed on it"), UNKNOWNACTION(
21             "Unknown action"), INVALIDJSON("JSON message is invalid"), INVALIDADDRESS(
22             "invalid InetAddress"), AVAILABLESOON(
23             "Resource is not implemented yet"), INTERNALERROR("Internal Error"), SERVICEUNAVAILABLE(
24             "Service is not available. Could be down for maintanence"), INVALIDDATA(
25             "Data is invalid or conflicts with URI");
26
27     private String message;
28
29     private RestMessages(String msg) {
30         message = msg;
31     }
32
33     public String toString() {
34         return message;
35     }
36 }