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 SVG_IMAGE_CONTENT_TYPE = "image/svg+xml"; 045 046 String ACTION_PARAM = "action"; 047 048 String OFFSET_PARAM = "offset"; 049 050 String LEN_PARAM = "len"; 051 052 String ORDER_PARAM = "order"; 053 054 String ACTION_NAME_PARAM = "action-name"; 055 056 String JOB_FILTER_PARAM = "filter"; 057 058 String JOB_RESOURCE = "/job"; 059 060 String JOB_ACTION_START = "start"; 061 062 String JOB_ACTION_SUBMIT = "submit"; 063 064 String JOB_ACTION_DRYRUN = "dryrun"; 065 066 String JOB_ACTION_SHOWDIFF = "diff"; 067 068 String JOB_ACTION_SUSPEND = "suspend"; 069 070 String JOB_ACTION_RESUME = "resume"; 071 072 String JOB_ACTION_KILL = "kill"; 073 074 String JOB_ACTION_CHANGE = "change"; 075 076 String JOB_CHANGE_VALUE = "value"; 077 078 String JOB_ACTION_RERUN = "rerun"; 079 080 String JOB_ACTION_IGNORE = "ignore"; 081 082 String JOB_COORD_ACTION_RERUN = "coord-rerun"; 083 084 String JOB_COORD_UPDATE = "update"; 085 086 String JOB_BUNDLE_ACTION_RERUN = "bundle-rerun"; 087 088 String JOB_SHOW_PARAM = "show"; 089 090 String JOB_SHOW_ACTION_RETRIES_PARAM = "retries"; 091 092 String JOB_SHOW_CONFIG = "config"; 093 094 String JOB_SHOW_INFO = "info"; 095 096 String JOB_SHOW_LOG = "log"; 097 098 String JOB_SHOW_ERROR_LOG = "errorlog"; 099 100 String JOB_SHOW_AUDIT_LOG = "auditlog"; 101 102 String JOB_SHOW_DEFINITION = "definition"; 103 104 String JOB_SHOW_GRAPH = "graph"; 105 106 String JOB_SHOW_KILL_PARAM = "show-kill"; 107 108 String JOB_FORMAT_PARAM = "format"; 109 110 String JOB_SHOW_STATUS = "status"; 111 112 String JOB_SHOW_WF_ACTIONS_IN_COORD = "wf-actions"; 113 114 String JOB_BUNDLE_RERUN_COORD_SCOPE_PARAM = "coord-scope"; 115 116 String JOB_BUNDLE_RERUN_DATE_SCOPE_PARAM = "date-scope"; 117 118 String JOB_COORD_RANGE_TYPE_PARAM = "type"; 119 120 String JOB_COORD_SCOPE_DATE = "date"; 121 122 String JOB_COORD_SCOPE_ACTION = "action"; 123 124 String JOB_COORD_SCOPE_PARAM = "scope"; 125 126 String JOB_COORD_RERUN_REFRESH_PARAM = "refresh"; 127 128 String JOB_COORD_RERUN_NOCLEANUP_PARAM = "nocleanup"; 129 130 String JOB_LOG_ACTION = "action"; 131 132 String JOB_LOG_DATE = "date"; 133 134 String JOB_LOG_SCOPE_PARAM = "scope"; 135 136 String JOB_LOG_TYPE_PARAM = "type"; 137 138 String JOBS_FILTER_PARAM = "filter"; 139 140 String JOBS_BULK_PARAM = "bulk"; 141 142 String JOBS_EXTERNAL_ID_PARAM = "external-id"; 143 144 String ADMIN_STATUS_RESOURCE = "status"; 145 146 String ADMIN_SAFE_MODE_PARAM = "safemode"; 147 148 String ADMIN_SYSTEM_MODE_PARAM = "systemmode"; 149 150 String ADMIN_LOG_RESOURCE = "log"; 151 152 String ADMIN_OS_ENV_RESOURCE = "os-env"; 153 154 String ADMIN_JAVA_SYS_PROPS_RESOURCE = "java-sys-properties"; 155 156 String ADMIN_CONFIG_RESOURCE = "configuration"; 157 158 String ADMIN_INSTRUMENTATION_RESOURCE = "instrumentation"; 159 160 String ADMIN_BUILD_VERSION_RESOURCE = "build-version"; 161 162 String ADMIN_QUEUE_DUMP_RESOURCE = "queue-dump"; 163 164 String ADMIN_METRICS_RESOURCE = "metrics"; 165 166 String OOZIE_ERROR_CODE = "oozie-error-code"; 167 168 String OOZIE_ERROR_MESSAGE = "oozie-error-message"; 169 170 String JOBTYPE_PARAM = "jobtype"; 171 172 String SLA_GT_SEQUENCE_ID = "gt-sequence-id"; 173 174 String MAX_EVENTS = "max-events"; 175 176 String SLA = "sla"; 177 178 String DO_AS_PARAM = "doAs"; 179 180 String TIME_ZONE_PARAM = "timezone"; 181 182 String ADMIN_TIME_ZONES_RESOURCE = "available-timezones"; 183 184 String ADMIN_JMS_INFO = "jmsinfo"; 185 186 String JOB_SHOW_JMS_TOPIC = "jmstopic"; 187 188 String ADMIN_AVAILABLE_OOZIE_SERVERS_RESOURCE = "available-oozie-servers"; 189 190 String ADMIN_UPDATE_SHARELIB = "update_sharelib"; 191 192 String ADMIN_LIST_SHARELIB = "list_sharelib"; 193 194 String SHARE_LIB_REQUEST_KEY = "lib"; 195 196 String ALL_SERVER_REQUEST = "allservers"; 197 198 String ALL_WORKFLOWS_FOR_COORD_ACTION = "allruns"; 199 200 String LOG_FILTER_OPTION = "logfilter"; 201 202 String JOB_COORD_RERUN_FAILED_PARAM = "failed"; 203 204 String SLA_DISABLE_ALERT = "sla-disable"; 205 206 String SLA_ENABLE_ALERT = "sla-enable"; 207 208 String SLA_CHANGE = "sla-change"; 209 210 String SLA_ALERT_RANGE = "sla-alert-range"; 211 212 String COORDINATORS_PARAM = "coordinators"; 213 214 String SLA_NOMINAL_TIME = "sla-nominal-time"; 215 216 String SLA_SHOULD_START = "sla-should-start"; 217 218 String SLA_SHOULD_END = "sla-should-end"; 219 220 String SLA_MAX_DURATION = "sla-max-duration"; 221 222 String JOB_COORD_SCOPE_ACTION_LIST = "action-list"; 223 224 String VALIDATE = "validate"; 225 226 String FILE_PARAM = "file"; 227 228 String USER_PARAM = "user"; 229 230 String COORD_ACTION_MISSING_DEPENDENCIES = "missing-dependencies"; 231 232 String ADMIN_PURGE = "purge"; 233 String PURGE_WF_AGE = "wf"; 234 String PURGE_COORD_AGE = "coord"; 235 String PURGE_BUNDLE_AGE = "bundle"; 236 String PURGE_LIMIT = "limit"; 237 String PURGE_OLD_COORD_ACTION = "oldcoordaction"; 238}