summaryrefslogtreecommitdiffstats
path: root/src/com.gluster.storage.management.core/src/com/gluster/storage/management/core/constants/RESTConstants.java
blob: 40f13fbeab11c5cf3a26c72895a459500a16f529 (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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
/**
 * 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 {
	// REST Resource paths
	public static final String RESOURCE_PATH_CLUSTERS = "/clusters";
	public static final String RESOURCE_PATH_DISCOVERED_SERVERS = "/discoveredservers";
	
	// REST Resource names
	public static final String RESOURCE_VOLUMES = "volumes";
	public static final String RESOURCE_DEFAULT_OPTIONS = "defaultoptions";
	public static final String RESOURCE_OPTIONS = "options";
	public static final String RESOURCE_LOGS = "logs";
	public static final String RESOURCE_DOWNLOAD = "download";
	public static final String RESOURCE_BRICKS = "bricks";
	public static final String RESOURCE_DISKS = "disks";
	public static final String RESOURCE_RUNNING_TASKS = "runningtasks";
	public static final String RESOURCE_ALERTS = "alerts";
	public static final String RESOURCE_SERVERS = "servers";
	public static final String RESOURCE_TASKS = "tasks";

	public static final String FORM_PARAM_CLUSTER_NAME = "clusterName";
	public static final String FORM_PARAM_SERVER_NAME = "serverName";
	public static final String FORM_PARAM_DISKS = "disks";
	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_VALUE_PAUSE = "pause";
	public static final String FORM_PARAM_VALUE_STATUS = "status";
	public static final String FORM_PARAM_OPTION_KEY = "key";
	public static final String FORM_PARAM_OPTION_VALUE = "value";
	public static final String FORM_PARAM_SOURCE = "source";
	public static final String FORM_PARAM_TARGET = "target";
	public static final String FORM_PARAM_BRICKS = "bricks";
	public static final String FROM_PARAM_AUTO_COMMIT = "autoCommit";
	
	public static final String PATH_PARAM_VOLUME_NAME = "volumeName";
	public static final String PATH_PARAM_CLUSTER_NAME = "clusterName";
	public static final String PATH_PARAM_SERVER_NAME = "serverName";
	public static final String PATH_PARAM_TASK_ID = "taskId";
	
	public static final String QUERY_PARAM_BRICK_NAME = "brickName";
	public static final String QUERY_PARAM_DISKS = "disks";
	public static final String QUERY_PARAM_BRICKS = "bricks";
	public static final String QUERY_PARAM_LINE_COUNT = "lineCount";
	public static final String QUERY_PARAM_VOLUME_NAME = "volumeName";
	public static final String QUERY_PARAM_DELETE_OPTION = "deleteOption";
	public static final String QUERY_PARAM_LOG_SEVERITY = "severity";
	public static final String QUERY_PARAM_FROM_TIMESTAMP = "fromTimestamp";
	public static final String QUERY_PARAM_TO_TIMESTAMP = "toTimestamp";
	public static final String QUERY_PARAM_DOWNLOAD = "download";
	public static final String QUERY_PARAM_SERVER_NAME = "serverName";
	public static final String QUERY_PARAM_TASK_OPERATION = "taskOperation";
}