public class LocalOozieClientCoord extends org.apache.oozie.client.OozieClient
getJobsInfo(String)
getJobsInfo(String, int, int) methods:
[NAME=VALUE][;NAME=VALUE]*.
Valid filter names are:
org.apache.oozie.client.OozieClient.ClientCallable<T>, org.apache.oozie.client.OozieClient.Instrumentation, org.apache.oozie.client.OozieClient.MapClientCallable, org.apache.oozie.client.OozieClient.Metrics, org.apache.oozie.client.OozieClient.SORT_BY, org.apache.oozie.client.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_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_ID, FILTER_SLA_NOMINAL_END, FILTER_SLA_NOMINAL_START, FILTER_SLA_PARENT_ID, 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, 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 |
|---|
LocalOozieClientCoord(CoordinatorEngine coordEngine)
Create a coordinator client for Oozie local use.
|
| Modifier and Type | Method and Description |
|---|---|
java.util.Properties |
createConfiguration()
Create an empty configuration with just the
OozieClient.USER_NAME set to the
JVM user name and the OozieClient.GROUP_NAME set to 'other'. |
org.apache.oozie.client.CoordinatorAction |
getCoordActionInfo(java.lang.String actionId)
Get the info of a coordinator action.
|
org.apache.oozie.client.CoordinatorJob |
getCoordJobInfo(java.lang.String jobId)
Get the info of a coordinator job.
|
org.apache.oozie.client.CoordinatorJob |
getCoordJobInfo(java.lang.String jobId,
java.lang.String filter,
int start,
int len)
Get the info of a coordinator job.
|
java.util.List<org.apache.oozie.client.CoordinatorJob> |
getCoordJobsInfo(java.lang.String filter,
int start,
int len)
Return the info of the coordinator jobs that match the filter.
|
java.lang.String |
getHeader(java.lang.String name)
Get the value of a set HTTP header from the coordinator instance.
|
java.util.Iterator<java.lang.String> |
getHeaderNames()
Return an iterator with all the header names set in the coordinator
instance.
|
org.apache.oozie.client.WorkflowJob |
getJobInfo(java.lang.String jobId)
Deprecated.
|
java.util.List<org.apache.oozie.client.WorkflowJob> |
getJobsInfo(java.lang.String filter)
Deprecated.
|
java.util.List<org.apache.oozie.client.WorkflowJob> |
getJobsInfo(java.lang.String filter,
int start,
int len)
Deprecated.
|
java.lang.String |
getOozieUrl()
Return the Oozie URL of the coordinator client instance.
|
java.lang.String |
getProtocolUrl()
Return the Oozie URL used by the client and server for WS communications.
|
void |
kill(java.lang.String jobId)
Kill a coordinator job.
|
void |
removeHeader(java.lang.String name)
Remove a HTTP header from the coordinator client instance.
|
void |
reRun(java.lang.String jobId,
java.util.Properties conf)
Deprecated.
|
java.util.List<org.apache.oozie.client.CoordinatorAction> |
reRunCoord(java.lang.String jobId,
java.lang.String rerunType,
java.lang.String scope,
boolean refresh,
boolean noCleanup)
Rerun coordinator actions.
|
java.util.List<org.apache.oozie.client.CoordinatorAction> |
reRunCoord(java.lang.String jobId,
java.lang.String rerunType,
java.lang.String scope,
boolean refresh,
boolean noCleanup,
boolean failed)
Rerun coordinator actions with failed option.
|
void |
resume(java.lang.String jobId)
Resume a coordinator job.
|
java.lang.String |
run(java.util.Properties conf)
Submit and start a coordinator job.
|
void |
setHeader(java.lang.String name,
java.lang.String value)
Set a HTTP header to be used in the WS requests by the coordinator
instance.
|
void |
start(java.lang.String jobId)
Deprecated.
|
java.lang.String |
submit(java.util.Properties conf)
Submit a coordinator job.
|
void |
suspend(java.lang.String jobId)
Suspend a coordinator job.
|
void |
validateWSVersion()
Validate that the Oozie client and server instances are protocol
compatible.
|
bulkModifyJobs, change, createConnection, createRetryableConnection, doAs, dryrun, getAvailableOozieServers, getBulkInfo, getBundleJobInfo, getBundleJobsInfo, getClientBuildVersion, getCoordJobInfo, getDebugMode, getHeaders, getInstrumentation, getJavaSystemProperties, getJMSConnectionInfo, getJMSTopicName, getJobDefinition, getJobId, getJobInfo, getJobLog, getJobLog, getJobLog, getMetrics, getOSEnv, getQueueDump, getRetryCount, getServerBuildVersion, getServerConfiguration, getSlaInfo, getStatus, getSystemMode, getWfsForCoordAction, getWorkflowActionInfo, ignore, kill, killJobs, listShareLib, notEmpty, notNull, pollJob, reRunBundle, resumeJobs, setDebugMode, setRetryCount, setSystemMode, suspendJobs, updateCoord, updateCoord, updateShareLib, validateXML, writeToXmlpublic LocalOozieClientCoord(CoordinatorEngine coordEngine)
coordEngine - the engine instance to use.public java.lang.String getOozieUrl()
getOozieUrl in class org.apache.oozie.client.OozieClientpublic java.lang.String getProtocolUrl() throws org.apache.oozie.client.OozieClientException
getProtocolUrl in class org.apache.oozie.client.OozieClientorg.apache.oozie.client.OozieClientException - thrown in the client
and the server are not protocol compatible.public void validateWSVersion() throws org.apache.oozie.client.OozieClientException
validateWSVersion in class org.apache.oozie.client.OozieClientorg.apache.oozie.client.OozieClientException - thrown in the client
and the server are not protocol compatible.public java.util.Properties createConfiguration()
OozieClient.USER_NAME set to the
JVM user name and the OozieClient.GROUP_NAME set to 'other'.createConfiguration in class org.apache.oozie.client.OozieClientpublic void setHeader(java.lang.String name, java.lang.String value)
setHeader in class org.apache.oozie.client.OozieClientname - header name.value - header value.public java.lang.String getHeader(java.lang.String name)
getHeader in class org.apache.oozie.client.OozieClientname - header name.null if not set.public void removeHeader(java.lang.String name)
removeHeader in class org.apache.oozie.client.OozieClientname - header name.public java.util.Iterator<java.lang.String> getHeaderNames()
getHeaderNames in class org.apache.oozie.client.OozieClientpublic java.lang.String submit(java.util.Properties conf) throws org.apache.oozie.client.OozieClientException
submit in class org.apache.oozie.client.OozieClientconf - job configuration.org.apache.oozie.client.OozieClientException - thrown if the job
could not be submitted.@Deprecated public void start(java.lang.String jobId) throws org.apache.oozie.client.OozieClientException
start in class org.apache.oozie.client.OozieClientjobId - job Id.org.apache.oozie.client.OozieClientException - thrown if the job
could not be started.public java.lang.String run(java.util.Properties conf) throws org.apache.oozie.client.OozieClientException
run in class org.apache.oozie.client.OozieClientconf - job configuration.org.apache.oozie.client.OozieClientException - thrown if the job
could not be submitted.@Deprecated public void reRun(java.lang.String jobId, java.util.Properties conf) throws org.apache.oozie.client.OozieClientException
reRun in class org.apache.oozie.client.OozieClientjobId - job Id to rerun.conf - configuration information for the rerun.org.apache.oozie.client.OozieClientException - thrown if the job
could not be started.public java.util.List<org.apache.oozie.client.CoordinatorAction> reRunCoord(java.lang.String jobId, java.lang.String rerunType, java.lang.String scope, boolean refresh, boolean noCleanup) throws org.apache.oozie.client.OozieClientException
reRunCoord in class org.apache.oozie.client.OozieClientjobId - coordinator jobIdrerunType - rerun type 'date' if -date is used, 'action-id' if
-action is usedscope - rerun scope for date or actionIdsrefresh - true if -refresh is given in command optionnoCleanup - true if -nocleanup is given in command optionorg.apache.oozie.client.OozieClientExceptionpublic java.util.List<org.apache.oozie.client.CoordinatorAction> reRunCoord(java.lang.String jobId, java.lang.String rerunType, java.lang.String scope, boolean refresh, boolean noCleanup, boolean failed) throws org.apache.oozie.client.OozieClientException
reRunCoord in class org.apache.oozie.client.OozieClientjobId - coordinator jobIdrerunType - rerun type 'date' if -date is used, 'action-id' if
-action is usedscope - rerun scope for date or actionIdsrefresh - true if -refresh is given in command optionnoCleanup - true if -nocleanup is given in command optionfailed - true if -failed is given in command optionorg.apache.oozie.client.OozieClientExceptionpublic void suspend(java.lang.String jobId) throws org.apache.oozie.client.OozieClientException
suspend in class org.apache.oozie.client.OozieClientjobId - job Id.org.apache.oozie.client.OozieClientException - thrown if the job
could not be suspended.public void resume(java.lang.String jobId) throws org.apache.oozie.client.OozieClientException
resume in class org.apache.oozie.client.OozieClientjobId - job Id.org.apache.oozie.client.OozieClientException - thrown if the job
could not be resume.public void kill(java.lang.String jobId) throws org.apache.oozie.client.OozieClientException
kill in class org.apache.oozie.client.OozieClientjobId - job Id.org.apache.oozie.client.OozieClientException - thrown if the job
could not be killed.@Deprecated public org.apache.oozie.client.WorkflowJob getJobInfo(java.lang.String jobId) throws org.apache.oozie.client.OozieClientException
getJobInfo in class org.apache.oozie.client.OozieClientjobId - job Id.org.apache.oozie.client.OozieClientException - thrown if the job
info could not be retrieved.public org.apache.oozie.client.CoordinatorJob getCoordJobInfo(java.lang.String jobId) throws org.apache.oozie.client.OozieClientException
getCoordJobInfo in class org.apache.oozie.client.OozieClientjobId - job Id.org.apache.oozie.client.OozieClientException - thrown if the job
info could not be retrieved.public org.apache.oozie.client.CoordinatorJob getCoordJobInfo(java.lang.String jobId, java.lang.String filter, int start, int len) throws org.apache.oozie.client.OozieClientException
getCoordJobInfo in class org.apache.oozie.client.OozieClientjobId - job Id.filter - filter the status filterstart - starting index in the list of actions belonging to the joblen - number of actions to be returnedorg.apache.oozie.client.OozieClientException - thrown if the job
info could not be retrieved.public org.apache.oozie.client.CoordinatorAction getCoordActionInfo(java.lang.String actionId) throws org.apache.oozie.client.OozieClientException
getCoordActionInfo in class org.apache.oozie.client.OozieClientactionId - Id.org.apache.oozie.client.OozieClientException - thrown if the job info could not be
retrieved.@Deprecated public java.util.List<org.apache.oozie.client.WorkflowJob> getJobsInfo(java.lang.String filter, int start, int len) throws org.apache.oozie.client.OozieClientException
getJobsInfo in class org.apache.oozie.client.OozieClientfilter - job filter. Refer to the OozieClient for the filter
syntax.start - jobs offset, base 1.len - number of jobs to return.org.apache.oozie.client.OozieClientException - thrown if the jobs info could not be
retrieved.public java.util.List<org.apache.oozie.client.CoordinatorJob> getCoordJobsInfo(java.lang.String filter, int start, int len) throws org.apache.oozie.client.OozieClientException
getCoordJobsInfo in class org.apache.oozie.client.OozieClientfilter - job filter. Refer to the OozieClient for the filter
syntax.start - jobs offset, base 1.len - number of jobs to return.org.apache.oozie.client.OozieClientException - thrown if the jobs info could not be
retrieved.@Deprecated public java.util.List<org.apache.oozie.client.WorkflowJob> getJobsInfo(java.lang.String filter) throws org.apache.oozie.client.OozieClientException
getJobsInfo in class org.apache.oozie.client.OozieClientfilter - job filter. Refer to the LocalOozieClient for the
filter syntax.org.apache.oozie.client.OozieClientException - thrown if the jobs
info could not be retrieved.Copyright © 2017 Apache Software Foundation. All Rights Reserved.