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