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 * Json element tags used by client beans.
023 */
024public interface JsonTags {
025
026    String OOZIE_SAFE_MODE = "safeMode"; //Applicable for V0 only
027    String OOZIE_SYSTEM_MODE = "systemMode";
028    String BUILD_INFO = "buildInfo";
029    String BUILD_VERSION = "buildVersion";
030    String QUEUE_DUMP = "queueDump";
031    String CALLABLE_DUMP = "callableDump";
032    String UNIQUE_MAP_DUMP = "uniqueMapDump";
033    String UNIQUE_ENTRY_DUMP = "uniqueEntryDump";
034
035    String SHARELIB_LIB_UPDATE = "sharelibUpdate";
036    String SHARELIB_LIB = "sharelib";
037    String SHARELIB_LIB_NAME = "name";
038    String SHARELIB_LIB_FILES = "files";
039    String SHARELIB_UPDATE_HOST = "host";
040    String SHARELIB_UPDATE_STATUS = "status";
041
042    String JOB_ID = "id";
043
044    String JOB_IDS = "ids";
045
046    String WORKFLOW_APP_PATH = "appPath";
047    String WORKFLOW_APP_NAME = "appName";
048    String WORKFLOW_ID = "id";
049    String WORKFLOW_EXTERNAL_ID = "externalId";
050    String WORKFLOW_PARENT_ID = "parentId";
051    String WORKFLOW_CONF = "conf";
052    String WORKFLOW_STATUS = "status";
053    String WORKFLOW_LAST_MOD_TIME = "lastModTime";
054    String WORKFLOW_CREATED_TIME = "createdTime";
055    String WORKFLOW_START_TIME = "startTime";
056    String WORKFLOW_END_TIME = "endTime";
057    String WORKFLOW_USER = "user";
058    @Deprecated
059    String WORKFLOW_GROUP = "group";
060    String WORKFLOW_ACL = "acl";
061    String WORKFLOW_RUN = "run";
062    String WORKFLOW_CONSOLE_URL = "consoleUrl";
063    String WORKFLOW_ACTIONS = "actions";
064
065    String WORKFLOWS_JOBS = "workflows";
066    String WORKFLOWS_TOTAL = "total";
067    String WORKFLOWS_OFFSET = "offset";
068    String WORKFLOWS_LEN = "len";
069
070    String WORKFLOW_ACTION_ID = "id";
071    String WORKFLOW_ACTION_NAME = "name";
072    String WORKFLOW_ACTION_AUTH = "cred";
073    String WORKFLOW_ACTION_TYPE = "type";
074    String WORKFLOW_ACTION_CONF = "conf";
075    String WORKFLOW_ACTION_RETRIES = "retries";
076    String WORKFLOW_ACTION_START_TIME = "startTime";
077    String WORKFLOW_ACTION_END_TIME = "endTime";
078    String WORKFLOW_ACTION_STATUS = "status";
079    String WORKFLOW_ACTION_TRANSITION = "transition";
080    String WORKFLOW_ACTION_DATA = "data";
081    String WORKFLOW_ACTION_STATS = "stats";
082    String WORKFLOW_ACTION_EXTERNAL_CHILD_IDS = "externalChildIDs";
083    String WORKFLOW_ACTION_EXTERNAL_ID = "externalId";
084    String WORKFLOW_ACTION_EXTERNAL_STATUS = "externalStatus";
085    String WORKFLOW_ACTION_TRACKER_URI = "trackerUri";
086    String WORKFLOW_ACTION_CONSOLE_URL = "consoleUrl";
087    String WORKFLOW_ACTION_ERROR_CODE = "errorCode";
088    String WORKFLOW_ACTION_ERROR_MESSAGE = "errorMessage";
089    String WORKFLOW_ACTION_USER_RETRY_INTERVAL = "userRetryInterval";
090    String WORKFLOW_ACTION_USER_RETRY_COUNT = "userRetryCount";
091    String WORKFLOW_ACTION_USER_RETRY_MAX = "userRetryMax";
092    String WORKFLOW_ACTION_CRED = "cred";
093
094    String COORDINATOR_JOB_ID = "coordJobId";
095    String COORDINATOR_JOB_NAME = "coordJobName";
096    String COORDINATOR_JOB_PATH = "coordJobPath";
097    String COORDINATOR_JOB_FREQUENCY = "frequency";
098    String COORDINATOR_JOB_TIMEUNIT = "timeUnit";
099    String COORDINATOR_JOB_TIMEZONE = "timeZone";
100    String COORDINATOR_JOB_CONCURRENCY = "concurrency";
101    String COORDINATOR_JOB_MAT_THROTTLING = "mat_throttling";
102    String COORDINATOR_JOB_EXECUTION = "execution";
103    String COORDINATOR_JOB_TIMEOUT = "timeOut";
104    String COORDINATOR_JOB_LAST_ACTION_TIME = "lastAction";
105    String COORDINATOR_JOB_NEXT_MATERIALIZED_TIME = "nextMaterializedTime";
106    String COORDINATOR_JOB_CONF = "conf";
107    String COORDINATOR_JOB_STATUS = "status";
108    String COORDINATOR_JOB_EXECUTIONPOLICY = "executionPolicy";
109    String COORDINATOR_JOB_CREATED_TIME = "createdTime";
110    String COORDINATOR_JOB_START_TIME = "startTime";
111    String COORDINATOR_JOB_END_TIME = "endTime";
112    String COORDINATOR_JOB_PAUSE_TIME = "pauseTime";
113    String COORDINATOR_JOB_CONSOLE_URL = "consoleUrl";
114    String COORDINATOR_JOB_ACTIONS = "actions";
115    String COORDINATOR_JOB_USER = "user";
116    String COORDINATOR_JOB_NUM_ACTION = "total";
117
118    @Deprecated
119    String COORDINATOR_JOB_GROUP = "group";
120    String COORDINATOR_JOB_ACL = "acl";
121    String COORDINATOR_JOB_EXTERNAL_ID = "coordExternalId";
122
123    String COORDINATOR_ACTION_ID = "id";
124    String COORDINATOR_ACTION_NAME = "name";
125    String COORDINATOR_ACTION_TYPE = "type";
126    String COORDINATOR_ACTION_CREATED_CONF = "createdConf";
127    String COORDINATOR_ACTION_RUNTIME_CONF = "runConf";
128    String COORDINATOR_ACTION_NUMBER = "actionNumber";
129    String COORDINATOR_ACTION_CREATED_TIME = "createdTime";
130    String COORDINATOR_ACTION_EXTERNALID = "externalId";
131    String COORDINATOR_JOB_BUNDLE_ID = "bundleId";
132    String COORDINATOR_ACTION_LAST_MODIFIED_TIME = "lastModifiedTime";
133    String COORDINATOR_ACTION_NOMINAL_TIME = "nominalTime";
134    String COORDINATOR_ACTION_STATUS = "status";
135    String COORDINATOR_ACTION_MISSING_DEPS = "missingDependencies";
136    String COORDINATOR_ACTION_PUSH_MISSING_DEPS = "pushMissingDependencies";
137    String COORDINATOR_ACTION_EXTERNAL_STATUS = "externalStatus";
138    String COORDINATOR_ACTION_TRACKER_URI = "trackerUri";
139    String COORDINATOR_ACTION_CONSOLE_URL = "consoleUrl";
140    String COORDINATOR_ACTION_ERROR_CODE = "errorCode";
141    String COORDINATOR_ACTION_ERROR_MESSAGE = "errorMessage";
142    String COORDINATOR_ACTIONS = "actions";
143    String COORDINATOR_ACTION_DATA = "data";
144    String COORDINATOR_JOB_DATA = "data";
145    String COORDINATOR_ACTION_DATASETS = "dataSets";
146    String COORDINATOR_ACTION_DATASET = "dataSet";
147
148    String COORDINATOR_WF_ACTION_NUMBER = "actionNumber";
149    String COORDINATOR_WF_ACTION = "action";
150    String COORDINATOR_WF_ACTION_NULL_REASON = "nullReason";
151    String COORDINATOR_WF_ACTIONS = "actions";
152
153    String BUNDLE_JOB_ID = "bundleJobId";
154    String BUNDLE_JOB_NAME = "bundleJobName";
155    String BUNDLE_JOB_PATH = "bundleJobPath";
156    String BUNDLE_JOB_TIMEUNIT = "timeUnit";
157    String BUNDLE_JOB_TIMEOUT = "timeOut";
158    String BUNDLE_JOB_CONF = "conf";
159    String BUNDLE_JOB_STATUS = "status";
160    String BUNDLE_JOB_KICKOFF_TIME = "kickoffTime";
161    String BUNDLE_JOB_START_TIME = "startTime";
162    String BUNDLE_JOB_END_TIME = "endTime";
163    String BUNDLE_JOB_PAUSE_TIME = "pauseTime";
164    String BUNDLE_JOB_CREATED_TIME = "createdTime";
165    String BUNDLE_JOB_CONSOLE_URL = "consoleUrl";
166    String BUNDLE_JOB_USER = "user";
167    @Deprecated
168    String BUNDLE_JOB_GROUP = "group";
169    String BUNDLE_JOB_ACL = "acl";
170    String BUNDLE_JOB_EXTERNAL_ID = "bundleExternalId";
171    String BUNDLE_COORDINATOR_JOBS = "bundleCoordJobs";
172
173    String SLA_SUMMARY_LIST = "slaSummaryList";
174    String SLA_SUMMARY_ID = "id";
175    String SLA_SUMMARY_PARENT_ID = "parentId";
176    String SLA_SUMMARY_APP_NAME = "appName";
177    String SLA_SUMMARY_APP_TYPE = "appType";
178    String SLA_SUMMARY_USER = "user";
179    String SLA_SUMMARY_NOMINAL_TIME = "nominalTime";
180    String SLA_SUMMARY_EXPECTED_START = "expectedStart";
181    String SLA_SUMMARY_ACTUAL_START = "actualStart";
182    String SLA_SUMMARY_START_DELAY = "startDelay";
183    String SLA_SUMMARY_EXPECTED_END = "expectedEnd";
184    String SLA_SUMMARY_ACTUAL_END = "actualEnd";
185    String SLA_SUMMARY_END_DELAY = "endDelay";
186    String SLA_SUMMARY_EXPECTED_DURATION = "expectedDuration";
187    String SLA_SUMMARY_ACTUAL_DURATION = "actualDuration";
188    String SLA_SUMMARY_DURATION_DELAY = "durationDelay";
189    String SLA_SUMMARY_JOB_STATUS = "jobStatus";
190    String SLA_SUMMARY_SLA_STATUS = "slaStatus";
191    String SLA_SUMMARY_EVENT_STATUS = "eventStatus";
192    String SLA_SUMMARY_LAST_MODIFIED = "lastModified";
193    String SLA_ALERT_STATUS = "slaAlertStatus";
194
195
196    String TO_STRING = "toString";
197
198
199    String ERROR = "error";
200    String ERROR_CODE = "code";
201    String ERROR_MESSAGE = "message";
202
203    String HTTP_STATUS_CODE = "httpStatusCode";
204
205    String INSTR_TIMERS = "timers";
206    String INSTR_VARIABLES = "variables";
207    String INSTR_SAMPLERS = "samplers";
208    String INSTR_COUNTERS = "counters";
209    String INSTR_DATA = "data";
210
211    String INSTR_GROUP = "group";
212    String INSTR_NAME = "name";
213
214    String INSTR_TIMER_OWN_TIME_AVG = "ownTimeAvg";
215    String INSTR_TIMER_TOTAL_TIME_AVG = "totalTimeAvg";
216    String INSTR_TIMER_TICKS = "ticks";
217    String INSTR_TIMER_OWN_STD_DEV = "ownTimeStdDev";
218    String INSTR_TIMER_TOTAL_STD_DEV = "totalTimeStdDev";
219    String INSTR_TIMER_OWN_MIN_TIME = "ownMinTime";
220    String INSTR_TIMER_OWN_MAX_TIME = "ownMaxTime";
221    String INSTR_TIMER_TOTAL_MIN_TIME = "totalMinTime";
222    String INSTR_TIMER_TOTAL_MAX_TIME = "totalMaxTime";
223
224    String INSTR_VARIABLE_VALUE = "value";
225    String INSTR_SAMPLER_VALUE = "value";
226
227    Object COORDINATOR_JOBS = "coordinatorjobs";
228    Object COORD_JOB_TOTAL = "total";
229    Object COORD_JOB_OFFSET = "offset";
230    Object COORD_JOB_LEN = "len";
231
232    Object BUNDLE_JOBS = "bundlejobs";
233    Object BUNDLE_JOB_TOTAL = "total";
234    Object BUNDLE_JOB_OFFSET = "offset";
235    Object BUNDLE_JOB_LEN = "len";
236
237    String BULK_RESPONSE_BUNDLE = "bulkbundle";
238    String BULK_RESPONSE_COORDINATOR = "bulkcoord";
239    String BULK_RESPONSE_ACTION = "bulkaction";
240    Object BULK_RESPONSES = "bulkresponses";
241    Object BULK_RESPONSE_TOTAL = "total";
242    Object BULK_RESPONSE_OFFSET = "offset";
243    Object BULK_RESPONSE_LEN = "len";
244
245    String AVAILABLE_TIME_ZONES = "available-timezones";
246    String TIME_ZOME_DISPLAY_NAME = "timezoneDisplayName";
247    String TIME_ZONE_ID = "timezoneId";
248
249    String JMS_TOPIC_PATTERN = "jmsTopicPattern";
250    String JMS_JNDI_PROPERTIES = "jmsJNDIProps";
251    String JMS_TOPIC_PREFIX = "jmsTopicPrefix";
252
253    String JMS_TOPIC_NAME = "jmsTopicName";
254    String COORD_UPDATE = RestConstants.JOB_COORD_UPDATE;
255    String COORD_UPDATE_DIFF = "diff";
256
257    String STATUS = "status";
258    String ACTION_ATTEMPT = "attempt";
259    String VALIDATE = "validate";
260    String COORD_ACTION_MISSING_DEPENDENCIES = "missingDependencies";
261    String COORD_ACTION_FIRST_MISSING_DEPENDENCIES = "blockedOn";
262
263
264    String PURGE = "purge";
265}