blob: 3b41030ac042a6f42a9c49479ecbef7dc5608bca [file] [log] [blame]
Mohammad Shahid0cf9c0e2017-08-09 15:58:19 +05301/*
2 * Copyright 2017-present Open Networking Foundation
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16package org.onosproject.gluon.rsc;
17
18/**
19 * Gluon application related constants.
20 */
21
22public final class GluonConstants {
23
24 protected GluonConstants() {
25 }
26
27 /**
28 * String constants.
29 */
30 public static final String KEYS = "/keys";
31 public static final String PROTON = "/proton/";
32 public static final String MODE_STOP = "stop";
33 public static final String MODE_START = "start";
34 public static final String ACTION_SET = "set";
35 public static final String ACTION_GET = "get";
36 public static final String ACTION_DEL = "delete";
37 public static final String GLUON_HTTP = "http://";
38 public static final String KEY_TYPE = "net-l3vpn";
39 public static final String GLUON_ACTION = "action";
40 public static final String GLUON_KEY = "key";
41 public static final String GLUON_NODE = "node";
42 public static final String GLUON_NODES = "nodes";
43 public static final String GLUON_VALUE = "value";
44 public static final String GLUON_MOD_INDEX = "modifiedIndex";
45 public static final String GLUON_CREATE_INDEX = "createdIndex";
46 public static final String GLUON_DEFAULT_PORT = "2379";
47
48 /**
49 * INFO Constants.
50 */
51 public static final String BATCH_SERVICE_STATUS =
52 "executorBatchService shutdown status: {}";
53 public static final String REAL_TIME_SERVICE_STATUS =
54 "executorRealTimeService shutdown status: {}";
55 public static final String SERVER_RUNNING =
56 "Server is already running";
57 public static final String ACTIVE_SERVER =
58 "Number of active servers: {}";
59 public static final String NO_SUBKEYS_AVAIL =
60 "No subKeys available. Nothing to smooth";
61 public static final String SERVER_STOPPED =
62 "Server has stopped successfully";
63 public static final String NO_SERVER_AVAIL =
64 "Server is unavailable";
65 public static final String NO_SERVER_AVAIL_ON_PORT =
66 "Server is unavailable on specified port";
67 public static final String REAL_TIME_PROCESSING =
68 "Started Real time etcd monitoring for {}";
69 public static final String BATCH_PROCESSING =
70 "Started Batch time etcd monitoring for {}";
71 public static final String BATCH_QUERING =
72 "Sending Batch time etcd request for {}";
73 public static final String BATCH_STOPPED =
74 "Stopped Batch time etcd monitoring for {}";
75 public static final String REAL_TIME_RECEIVED =
76 "Received RealTime etcd monitor data {}";
77 public static final String BATCH_RECEIVED =
78 "Received batch etcd monitor data {}";
79 public static final String SUBKEYS_RECEIVED =
80 "Recieved subkeys {}";
81 public static final String INVALID_ACTION =
82 "Invalid action has been received";
83 public static final String DATA_UPDATED =
84 "Gluon data updated to network config datastore";
85 public static final String DATA_REMOVED =
86 "Gluon data removed from network config datastore";
87 public static final String SERVER_POOL =
88 "Server IP is not available in server pool";
89 public static final String PROTON_KEY_SUPPORT =
90 "Currently only net-l3vpn type supported";
91 public static final String WRONG_INPUT = "Either server is not available " +
92 "or wrong input";
93 public static final String WRONG_INPUT_TYPE = "Wrong format type";
94 public static final String INVALID_MODE = "Invalid mode";
95 public static final String WRONG_IP_FORMAT = "Wrong IP address format";
96 public static final String INVALID_RANGE = "Wrong port range <1-65535>";
97 public static final String PROCESSING_FAILED = "Error occurred while " +
98 "processing";
99
100 /**
101 * ERROR Constants.
102 */
103 public static final String E_BATCH_PROCESSING =
104 "Batch mode etcd monitor failed with error {}";
105 public static final String E_BATCH_PROCESSING_URL =
106 "Batch mode etcd monitor failed for {}";
107 public static final String E_SUBKEYS_PROCESSING =
108 "Error observed while fetching subkeys for {}";
109 public static final String E_REAL_TIME_PROCESSING =
110 "Real time etcd monitor failed with error {}";
111 public static final String E_CLIENT_STOP =
112 "http client unable to stop with error {}";
113
114 /**
115 * Integer Constants.
116 */
117 public static final int STATUS_CODE = 200;
118
119}