blob: f44b24e5e6bd47e75077fb48f4494a78ae5498e7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
|
/**
* RESTConstants.java
*
* Copyright (c) 2011 Gluster, Inc. <http://www.gluster.com>
* This file is part of Gluster Management Console.
*
* Gluster Management Console is free software; you can redistribute it and/or
* modify it under the terms of the GNU Affero General Public License as published
* by the Free Software Foundation; either version 3 of the License, or
* (at your option) any later version.
*
* Gluster Management Console is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
* or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License
* for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see
* <http://www.gnu.org/licenses/>.
*/
package com.gluster.storage.management.core.constants;
/**
* All constants related to the Gluster REST server and client
*/
public class RESTConstants {
// Volumes Resource
public static final String RESOURCE_PATH_VOLUMES = "/cluster/volumes";
public static final String SUBRESOURCE_DEFAULT_OPTIONS = "defaultoptions";
public static final String SUBRESOURCE_OPTIONS = "options";
public static final String SUBRESOURCE_LOGS = "logs";
public static final String FORM_PARAM_OPERATION = "operation";
public static final String FORM_PARAM_VALUE_START = "start";
public static final String FORM_PARAM_VALUE_STOP = "stop";
public static final String FORM_PARAM_OPTION_KEY = "key";
public static final String FORM_PARAM_VOLUME_NAME = "volumeName";
public static final String FORM_PARAM_OPTION_VALUE = "value";
public static final String PATH_PARAM_VOLUME_NAME = "volumeName";
public static final String FORM_PARAM_DELETE_OPTION = "value";
public static final String QUERY_PARAM_DISK_NAME = "diskName";
public static final String QUERY_PARAM_LINE_COUNT = "lineCount";
// Running tasks resource
public static final String RESOURCE_PATH_RUNNING_TASKS = "/cluster/runningtasks";
public static final String RESOURCE_PATH_ALERTS = "/cluster/alerts";
}
|