001/**
002 * Licensed to the Apache Software Foundation (ASF) under one
003 * or more contributor license agreements.  See the NOTICE file
004 * distributed with this work for additional information
005 * regarding copyright ownership.  The ASF licenses this file
006 * to you under the Apache License, Version 2.0 (the
007 * "License"); you may not use this file except in compliance
008 * with the License.  You may obtain a copy of the License at
009 *
010 *      http://www.apache.org/licenses/LICENSE-2.0
011 *
012 * Unless required by applicable law or agreed to in writing, software
013 * distributed under the License is distributed on an "AS IS" BASIS,
014 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
015 * See the License for the specific language governing permissions and
016 * limitations under the License.
017 */
018
019package org.apache.oozie.client.rest;
020
021/**
022 * Constansts used by Oozie REST WS API
023 */
024public interface RestConstants {
025
026    String VERSIONS = "versions";
027
028    String JOB = "job";
029
030    String JOBS = "jobs";
031
032    String ADMIN = "admin";
033
034    String JSON_CONTENT_TYPE = "application/json";
035
036    String XML_CONTENT_TYPE = "application/xml";
037
038    String FORM_CONTENT_TYPE = "application/x-www-form-urlencoded";
039
040    String TEXT_CONTENT_TYPE = "text/plain";
041
042    String PNG_IMAGE_CONTENT_TYPE = "image/png";
043
044    String ACTION_PARAM = "action";
045
046    String OFFSET_PARAM = "offset";
047
048    String LEN_PARAM = "len";
049
050    String ORDER_PARAM = "order";
051
052    String JOB_FILTER_PARAM = "filter";
053
054    String JOB_RESOURCE = "/job";
055
056    String JOB_ACTION_START = "start";
057
058    String JOB_ACTION_SUBMIT = "submit";
059
060    String JOB_ACTION_DRYRUN = "dryrun";
061
062    String JOB_ACTION_SHOWDIFF = "diff";
063
064    String JOB_ACTION_SUSPEND = "suspend";
065
066    String JOB_ACTION_RESUME = "resume";
067
068    String JOB_ACTION_KILL = "kill";
069
070    String JOB_ACTION_CHANGE = "change";
071
072    String JOB_CHANGE_VALUE = "value";
073
074    String JOB_ACTION_RERUN = "rerun";
075
076    String JOB_ACTION_IGNORE = "ignore";
077
078    String JOB_COORD_ACTION_RERUN = "coord-rerun";
079
080    String JOB_COORD_UPDATE = "update";
081
082    String JOB_BUNDLE_ACTION_RERUN = "bundle-rerun";
083
084    String JOB_SHOW_PARAM = "show";
085
086    String JOB_SHOW_CONFIG = "config";
087
088    String JOB_SHOW_INFO = "info";
089
090    String JOB_SHOW_LOG = "log";
091
092    String JOB_SHOW_ERROR_LOG = "errorlog";
093
094    String JOB_SHOW_AUDIT_LOG = "auditlog";
095
096    String JOB_SHOW_DEFINITION = "definition";
097
098    String JOB_SHOW_GRAPH = "graph";
099
100    String JOB_SHOW_KILL_PARAM = "show-kill";
101
102    String JOB_SHOW_STATUS = "status";
103
104    String JOB_BUNDLE_RERUN_COORD_SCOPE_PARAM = "coord-scope";
105
106    String JOB_BUNDLE_RERUN_DATE_SCOPE_PARAM = "date-scope";
107
108    String JOB_COORD_RANGE_TYPE_PARAM = "type";
109
110    String JOB_COORD_SCOPE_DATE = "date";
111
112    String JOB_COORD_SCOPE_ACTION = "action";
113
114    String JOB_COORD_SCOPE_PARAM = "scope";
115
116    String JOB_COORD_RERUN_REFRESH_PARAM = "refresh";
117
118    String JOB_COORD_RERUN_NOCLEANUP_PARAM = "nocleanup";
119
120    String JOB_LOG_ACTION = "action";
121
122    String JOB_LOG_DATE = "date";
123
124    String JOB_LOG_SCOPE_PARAM = "scope";
125
126    String JOB_LOG_TYPE_PARAM = "type";
127
128    String JOBS_FILTER_PARAM = "filter";
129
130    String JOBS_BULK_PARAM = "bulk";
131
132    String JOBS_EXTERNAL_ID_PARAM = "external-id";
133
134    String ADMIN_STATUS_RESOURCE = "status";
135
136    String ADMIN_SAFE_MODE_PARAM = "safemode";
137
138    String ADMIN_SYSTEM_MODE_PARAM = "systemmode";
139
140    String ADMIN_LOG_RESOURCE = "log";
141
142    String ADMIN_OS_ENV_RESOURCE = "os-env";
143
144    String ADMIN_JAVA_SYS_PROPS_RESOURCE = "java-sys-properties";
145
146    String ADMIN_CONFIG_RESOURCE = "configuration";
147
148    String ADMIN_INSTRUMENTATION_RESOURCE = "instrumentation";
149
150    String ADMIN_BUILD_VERSION_RESOURCE = "build-version";
151
152    String ADMIN_QUEUE_DUMP_RESOURCE = "queue-dump";
153
154    String ADMIN_METRICS_RESOURCE = "metrics";
155
156    String OOZIE_ERROR_CODE = "oozie-error-code";
157
158    String OOZIE_ERROR_MESSAGE = "oozie-error-message";
159
160    String JOBTYPE_PARAM = "jobtype";
161
162    String SLA_GT_SEQUENCE_ID = "gt-sequence-id";
163
164    String MAX_EVENTS = "max-events";
165
166    String SLA = "sla";
167
168    String DO_AS_PARAM = "doAs";
169
170    String TIME_ZONE_PARAM = "timezone";
171
172    String ADMIN_TIME_ZONES_RESOURCE = "available-timezones";
173
174    String ADMIN_JMS_INFO = "jmsinfo";
175
176    String JOB_SHOW_JMS_TOPIC = "jmstopic";
177
178    String ADMIN_AVAILABLE_OOZIE_SERVERS_RESOURCE = "available-oozie-servers";
179
180    String ADMIN_UPDATE_SHARELIB = "update_sharelib";
181
182    String ADMIN_LIST_SHARELIB = "list_sharelib";
183
184    String SHARE_LIB_REQUEST_KEY = "lib";
185
186    String ALL_SERVER_REQUEST = "allservers";
187
188    String ALL_WORKFLOWS_FOR_COORD_ACTION = "allruns";
189
190    String LOG_FILTER_OPTION = "logfilter";
191
192    String JOB_COORD_RERUN_FAILED_PARAM = "failed";
193
194    String SLA_DISABLE_ALERT = "sla-disable";
195
196    String SLA_ENABLE_ALERT = "sla-enable";
197
198    String SLA_CHANGE = "sla-change";
199
200    String SLA_ALERT_RANGE = "sla-alert-range";
201
202    String COORDINATORS_PARAM = "coordinators";
203
204    String SLA_NOMINAL_TIME = "sla-nominal-time";
205
206    String SLA_SHOULD_START = "sla-should-start";
207
208    String SLA_SHOULD_END = "sla-should-end";
209
210    String SLA_MAX_DURATION = "sla-max-duration";
211
212    String JOB_COORD_SCOPE_ACTION_LIST = "action-list";
213
214    String VALIDATE = "validate";
215
216    String FILE_PARAM = "file";
217
218    String USER_PARAM = "user";
219
220}