public class LocalOozieClientBundle extends OozieClient
This class is thread safe.
Syntax for filter for the getJobsInfo(String) getJobsInfo(String, int, int) methods:
[NAME=VALUE][;NAME=VALUE]*.
Valid filter names are:
The query will do an AND among all the filter names. The query will do an OR among all the filter values for the same name. Multiple values must be specified as different name value pairs.
OozieClient.ClientCallable<T>, OozieClient.Instrumentation, OozieClient.MapClientCallable, OozieClient.Metrics, OozieClient.SORT_BY, OozieClient.SYSTEM_MODEACTION_MAX_RETRIES, ACTION_NOTIFICATION_URL, ACTION_RETRY_INTERVAL, APP_PATH, BUNDLE_APP_PATH, BUNDLE_ID, CHANGE_VALUE_CONCURRENCY, CHANGE_VALUE_ENDTIME, CHANGE_VALUE_PAUSETIME, CHANGE_VALUE_STATUS, COORD_ACTION_NOTIFICATION_PROXY, COORD_ACTION_NOTIFICATION_URL, COORDINATOR_APP_PATH, debugMode, EXTERNAL_ID, FILTER_APPNAME, FILTER_BUNDLE, FILTER_CREATED_TIME_END, FILTER_CREATED_TIME_START, FILTER_FREQUENCY, FILTER_GROUP, FILTER_ID, FILTER_JOBID, FILTER_NAME, FILTER_NOMINAL_TIME, FILTER_SLA_APPNAME, FILTER_SLA_EVENT_STATUS, FILTER_SLA_ID, FILTER_SLA_NOMINAL_END, FILTER_SLA_NOMINAL_START, FILTER_SLA_PARENT_ID, FILTER_SLA_STATUS, FILTER_SORT_BY, FILTER_STATUS, FILTER_TEXT, FILTER_UNIT, FILTER_USER, GROUP_NAME, JOB_ACL, LIBPATH, LOG_TOKEN, OOZIE_SUSPEND_ON_NODES, RERUN_FAIL_NODES, RERUN_SKIP_NODES, SLA_DISABLE_ALERT, SLA_DISABLE_ALERT_COORD, SLA_DISABLE_ALERT_OLDER_THAN, SLA_ENABLE_ALERT, USE_SYSTEM_LIBPATH, USER_NAME, WORKFLOW_NOTIFICATION_PROXY, WORKFLOW_NOTIFICATION_URL, WS_PROTOCOL_VERSION, WS_PROTOCOL_VERSION_0, WS_PROTOCOL_VERSION_1| Constructor and Description |
|---|
LocalOozieClientBundle(BundleEngine bundleEngine) |
doAs, getCoordActionMissingDependencies, getCoordActionMissingDependencies, getDebugMode, getRetryCount, getWorkflowActionRetriesInfo, mapToString, notEmpty, notNull, purgeCommand, setDebugMode, setRetryCount, writeToXmlpublic LocalOozieClientBundle(BundleEngine bundleEngine)
public BundleJob getBundleJobInfo(String jobId) throws OozieClientException
OozieClientExceptionpublic Void reRunBundle(String jobId, String coordScope, String dateScope, boolean refresh, boolean noCleanup) throws OozieClientException
OozieClientExceptionpublic List<BundleJob> getBundleJobsInfo(String filter, int start, int len) throws OozieClientException
OozieClientExceptionpublic List<BulkResponse> getBulkInfo(String filter, int start, int len) throws OozieClientException
OozieClientExceptionpublic String getOozieUrl()
getOozieUrl in class OozieClientpublic String getProtocolUrl() throws OozieClientException
getProtocolUrl in class OozieClientOozieClientExceptionpublic void validateWSVersion() throws OozieClientException
validateWSVersion in class OozieClientOozieClientExceptionpublic Properties createConfiguration()
createConfiguration in class OozieClientpublic void setHeader(String name, String value)
setHeader in class OozieClientpublic String getHeader(String name)
getHeader in class OozieClientpublic void removeHeader(String name)
removeHeader in class OozieClientpublic Iterator<String> getHeaderNames()
getHeaderNames in class OozieClientpublic Map<String,String> getHeaders()
getHeaders in class OozieClientpublic String submit(Properties conf) throws OozieClientException
submit in class OozieClientOozieClientExceptionpublic void start(String jobId) throws OozieClientException
start in class OozieClientOozieClientExceptionpublic String run(Properties conf) throws OozieClientException
run in class OozieClientOozieClientExceptionpublic void reRun(String jobId, Properties conf) throws OozieClientException
reRun in class OozieClientOozieClientExceptionpublic void suspend(String jobId) throws OozieClientException
suspend in class OozieClientOozieClientExceptionpublic void resume(String jobId) throws OozieClientException
resume in class OozieClientOozieClientExceptionpublic void kill(String jobId) throws OozieClientException
kill in class OozieClientOozieClientExceptionpublic String dryrun(Properties conf) throws OozieClientException
dryrun in class OozieClientOozieClientExceptionpublic String getStatus(String jobId) throws OozieClientException
getStatus in class OozieClientOozieClientExceptionpublic String getJobDefinition(String jobId) throws OozieClientException
getJobDefinition in class OozieClientOozieClientExceptionpublic String getJobId(String externalId) throws OozieClientException
getJobId in class OozieClientOozieClientExceptionpublic void slaEnableAlert(String bundleId, String actions, String dates, String coords) throws OozieClientException
slaEnableAlert in class OozieClientOozieClientExceptionpublic void slaEnableAlert(String jobIds, String actions, String dates) throws OozieClientException
slaEnableAlert in class OozieClientOozieClientExceptionpublic void slaDisableAlert(String bundleId, String actions, String dates, String coords) throws OozieClientException
slaDisableAlert in class OozieClientOozieClientExceptionpublic void slaDisableAlert(String jobIds, String actions, String dates) throws OozieClientException
slaDisableAlert in class OozieClientOozieClientExceptionpublic void slaChange(String bundleId, String actions, String dates, String coords, String newSlaParams) throws OozieClientException
slaChange in class OozieClientOozieClientExceptionpublic void slaChange(String jobIds, String actions, String dates, String newSlaParams) throws OozieClientException
slaChange in class OozieClientOozieClientExceptionpublic void slaChange(String bundleId, String actions, String dates, String coords, Map<String,String> newSlaParams) throws OozieClientException
slaChange in class OozieClientOozieClientExceptionpublic void change(String jobId, String changeValue) throws OozieClientException
change in class OozieClientOozieClientExceptionpublic org.json.simple.JSONObject bulkModifyJobs(String actionType, String filter, String jobType, int start, int len) throws OozieClientException
bulkModifyJobs in class OozieClientOozieClientExceptionpublic org.json.simple.JSONObject killJobs(String filter, String jobType, int start, int len) throws OozieClientException
killJobs in class OozieClientOozieClientExceptionpublic org.json.simple.JSONObject suspendJobs(String filter, String jobType, int start, int len) throws OozieClientException
suspendJobs in class OozieClientOozieClientExceptionpublic org.json.simple.JSONObject resumeJobs(String filter, String jobType, int start, int len) throws OozieClientException
resumeJobs in class OozieClientOozieClientExceptionpublic WorkflowJob getJobInfo(String jobId) throws OozieClientException
getJobInfo in class OozieClientOozieClientExceptionpublic WorkflowJob getJobInfo(String jobId, int start, int len) throws OozieClientException
getJobInfo in class OozieClientOozieClientExceptionpublic List<WorkflowJob> getJobsInfo(String filter, int start, int len) throws OozieClientException
getJobsInfo in class OozieClientOozieClientExceptionpublic List<WorkflowJob> getJobsInfo(String filter) throws OozieClientException
getJobsInfo in class OozieClientOozieClientExceptionpublic List<CoordinatorAction> kill(String jobId, String rangeType, String scope) throws OozieClientException
kill in class OozieClientOozieClientExceptionpublic String updateCoord(String jobId, Properties conf, String dryrun, String showDiff) throws OozieClientException
updateCoord in class OozieClientOozieClientExceptionpublic String updateCoord(String jobId, String dryrun, String showDiff) throws OozieClientException
updateCoord in class OozieClientOozieClientExceptionpublic WorkflowAction getWorkflowActionInfo(String actionId) throws OozieClientException
getWorkflowActionInfo in class OozieClientOozieClientExceptionpublic CoordinatorJob getCoordJobInfo(String jobId) throws OozieClientException
getCoordJobInfo in class OozieClientOozieClientExceptionpublic CoordinatorJob getCoordJobInfo(String jobId, String filter, int start, int len) throws OozieClientException
getCoordJobInfo in class OozieClientOozieClientExceptionpublic CoordinatorJob getCoordJobInfo(String jobId, String filter, int start, int len, String order) throws OozieClientException
getCoordJobInfo in class OozieClientOozieClientExceptionpublic List<WorkflowJob> getWfsForCoordAction(String coordActionId) throws OozieClientException
getWfsForCoordAction in class OozieClientOozieClientExceptionpublic CoordinatorAction getCoordActionInfo(String actionId) throws OozieClientException
getCoordActionInfo in class OozieClientOozieClientExceptionpublic List<CoordinatorAction> reRunCoord(String jobId, String rerunType, String scope, boolean refresh, boolean noCleanup) throws OozieClientException
reRunCoord in class OozieClientOozieClientExceptionpublic List<CoordinatorAction> reRunCoord(String jobId, String rerunType, String scope, boolean refresh, boolean noCleanup, boolean failed, Properties props) throws OozieClientException
reRunCoord in class OozieClientOozieClientExceptionpublic List<CoordinatorJob> getCoordJobsInfo(String filter, int start, int len) throws OozieClientException
getCoordJobsInfo in class OozieClientOozieClientExceptionprotected HttpURLConnection createRetryableConnection(URL url, String method) throws IOException
createRetryableConnection in class OozieClientIOExceptionprotected HttpURLConnection createConnection(URL url, String method) throws IOException, OozieClientException
createConnection in class OozieClientIOExceptionOozieClientExceptionpublic List<CoordinatorAction> ignore(String jobId, String scope) throws OozieClientException
ignore in class OozieClientOozieClientExceptionpublic JMSConnectionInfo getJMSConnectionInfo() throws OozieClientException
getJMSConnectionInfo in class OozieClientOozieClientExceptionpublic String getJobLog(String jobId) throws OozieClientException
getJobLog in class OozieClientOozieClientExceptionpublic void getJobAuditLog(String jobId, PrintStream ps) throws OozieClientException
getJobAuditLog in class OozieClientOozieClientExceptionpublic void getJobLog(String jobId, String logRetrievalType, String logRetrievalScope, String logFilter, PrintStream ps) throws OozieClientException
getJobLog in class OozieClientOozieClientExceptionpublic void getJobErrorLog(String jobId, PrintStream ps) throws OozieClientException
getJobErrorLog in class OozieClientOozieClientExceptionpublic void getJobLog(String jobId, String logRetrievalType, String logRetrievalScope, PrintStream ps) throws OozieClientException
getJobLog in class OozieClientOozieClientExceptionpublic String getJMSTopicName(String jobId) throws OozieClientException
getJMSTopicName in class OozieClientOozieClientExceptionpublic void getSlaInfo(int start, int len, String filter) throws OozieClientException
getSlaInfo in class OozieClientOozieClientExceptionpublic void setSystemMode(OozieClient.SYSTEM_MODE status) throws OozieClientException
setSystemMode in class OozieClientOozieClientExceptionpublic OozieClient.SYSTEM_MODE getSystemMode() throws OozieClientException
getSystemMode in class OozieClientOozieClientExceptionpublic String updateShareLib() throws OozieClientException
updateShareLib in class OozieClientOozieClientExceptionpublic String listShareLib(String sharelibKey) throws OozieClientException
listShareLib in class OozieClientOozieClientExceptionpublic String getServerBuildVersion() throws OozieClientException
getServerBuildVersion in class OozieClientOozieClientExceptionpublic String getClientBuildVersion()
getClientBuildVersion in class OozieClientpublic String validateXML(String file) throws OozieClientException
validateXML in class OozieClientOozieClientExceptionpublic void pollJob(String id, int timeout, int interval, boolean verbose) throws OozieClientException
pollJob in class OozieClientOozieClientExceptionpublic List<String> getQueueDump() throws OozieClientException
getQueueDump in class OozieClientOozieClientExceptionpublic Map<String,String> getAvailableOozieServers() throws OozieClientException
getAvailableOozieServers in class OozieClientOozieClientExceptionpublic Map<String,String> getServerConfiguration() throws OozieClientException
getServerConfiguration in class OozieClientOozieClientExceptionpublic Map<String,String> getJavaSystemProperties() throws OozieClientException
getJavaSystemProperties in class OozieClientOozieClientExceptionpublic Map<String,String> getOSEnv() throws OozieClientException
getOSEnv in class OozieClientOozieClientExceptionpublic OozieClient.Metrics getMetrics() throws OozieClientException
getMetrics in class OozieClientOozieClientExceptionpublic OozieClient.Instrumentation getInstrumentation() throws OozieClientException
getInstrumentation in class OozieClientOozieClientExceptionCopyright © 2018 Apache Software Foundation. All rights reserved.