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_MODE
ACTION_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, writeToXml
public LocalOozieClientBundle(BundleEngine bundleEngine)
public BundleJob getBundleJobInfo(String jobId) throws OozieClientException
OozieClientException
public Void reRunBundle(String jobId, String coordScope, String dateScope, boolean refresh, boolean noCleanup) throws OozieClientException
OozieClientException
public List<BundleJob> getBundleJobsInfo(String filter, int start, int len) throws OozieClientException
OozieClientException
public List<BulkResponse> getBulkInfo(String filter, int start, int len) throws OozieClientException
OozieClientException
public String getOozieUrl()
getOozieUrl
in class OozieClient
public String getProtocolUrl() throws OozieClientException
getProtocolUrl
in class OozieClient
OozieClientException
public void validateWSVersion() throws OozieClientException
validateWSVersion
in class OozieClient
OozieClientException
public Properties createConfiguration()
createConfiguration
in class OozieClient
public void setHeader(String name, String value)
setHeader
in class OozieClient
public String getHeader(String name)
getHeader
in class OozieClient
public void removeHeader(String name)
removeHeader
in class OozieClient
public Iterator<String> getHeaderNames()
getHeaderNames
in class OozieClient
public Map<String,String> getHeaders()
getHeaders
in class OozieClient
public String submit(Properties conf) throws OozieClientException
submit
in class OozieClient
OozieClientException
public void start(String jobId) throws OozieClientException
start
in class OozieClient
OozieClientException
public String run(Properties conf) throws OozieClientException
run
in class OozieClient
OozieClientException
public void reRun(String jobId, Properties conf) throws OozieClientException
reRun
in class OozieClient
OozieClientException
public void suspend(String jobId) throws OozieClientException
suspend
in class OozieClient
OozieClientException
public void resume(String jobId) throws OozieClientException
resume
in class OozieClient
OozieClientException
public void kill(String jobId) throws OozieClientException
kill
in class OozieClient
OozieClientException
public String dryrun(Properties conf) throws OozieClientException
dryrun
in class OozieClient
OozieClientException
public String getStatus(String jobId) throws OozieClientException
getStatus
in class OozieClient
OozieClientException
public String getJobDefinition(String jobId) throws OozieClientException
getJobDefinition
in class OozieClient
OozieClientException
public String getJobId(String externalId) throws OozieClientException
getJobId
in class OozieClient
OozieClientException
public void slaEnableAlert(String bundleId, String actions, String dates, String coords) throws OozieClientException
slaEnableAlert
in class OozieClient
OozieClientException
public void slaEnableAlert(String jobIds, String actions, String dates) throws OozieClientException
slaEnableAlert
in class OozieClient
OozieClientException
public void slaDisableAlert(String bundleId, String actions, String dates, String coords) throws OozieClientException
slaDisableAlert
in class OozieClient
OozieClientException
public void slaDisableAlert(String jobIds, String actions, String dates) throws OozieClientException
slaDisableAlert
in class OozieClient
OozieClientException
public void slaChange(String bundleId, String actions, String dates, String coords, String newSlaParams) throws OozieClientException
slaChange
in class OozieClient
OozieClientException
public void slaChange(String jobIds, String actions, String dates, String newSlaParams) throws OozieClientException
slaChange
in class OozieClient
OozieClientException
public void slaChange(String bundleId, String actions, String dates, String coords, Map<String,String> newSlaParams) throws OozieClientException
slaChange
in class OozieClient
OozieClientException
public void change(String jobId, String changeValue) throws OozieClientException
change
in class OozieClient
OozieClientException
public org.json.simple.JSONObject bulkModifyJobs(String actionType, String filter, String jobType, int start, int len) throws OozieClientException
bulkModifyJobs
in class OozieClient
OozieClientException
public org.json.simple.JSONObject killJobs(String filter, String jobType, int start, int len) throws OozieClientException
killJobs
in class OozieClient
OozieClientException
public org.json.simple.JSONObject suspendJobs(String filter, String jobType, int start, int len) throws OozieClientException
suspendJobs
in class OozieClient
OozieClientException
public org.json.simple.JSONObject resumeJobs(String filter, String jobType, int start, int len) throws OozieClientException
resumeJobs
in class OozieClient
OozieClientException
public WorkflowJob getJobInfo(String jobId) throws OozieClientException
getJobInfo
in class OozieClient
OozieClientException
public WorkflowJob getJobInfo(String jobId, int start, int len) throws OozieClientException
getJobInfo
in class OozieClient
OozieClientException
public List<WorkflowJob> getJobsInfo(String filter, int start, int len) throws OozieClientException
getJobsInfo
in class OozieClient
OozieClientException
public List<WorkflowJob> getJobsInfo(String filter) throws OozieClientException
getJobsInfo
in class OozieClient
OozieClientException
public List<CoordinatorAction> kill(String jobId, String rangeType, String scope) throws OozieClientException
kill
in class OozieClient
OozieClientException
public String updateCoord(String jobId, Properties conf, String dryrun, String showDiff) throws OozieClientException
updateCoord
in class OozieClient
OozieClientException
public String updateCoord(String jobId, String dryrun, String showDiff) throws OozieClientException
updateCoord
in class OozieClient
OozieClientException
public WorkflowAction getWorkflowActionInfo(String actionId) throws OozieClientException
getWorkflowActionInfo
in class OozieClient
OozieClientException
public CoordinatorJob getCoordJobInfo(String jobId) throws OozieClientException
getCoordJobInfo
in class OozieClient
OozieClientException
public CoordinatorJob getCoordJobInfo(String jobId, String filter, int start, int len) throws OozieClientException
getCoordJobInfo
in class OozieClient
OozieClientException
public CoordinatorJob getCoordJobInfo(String jobId, String filter, int start, int len, String order) throws OozieClientException
getCoordJobInfo
in class OozieClient
OozieClientException
public List<WorkflowJob> getWfsForCoordAction(String coordActionId) throws OozieClientException
getWfsForCoordAction
in class OozieClient
OozieClientException
public CoordinatorAction getCoordActionInfo(String actionId) throws OozieClientException
getCoordActionInfo
in class OozieClient
OozieClientException
public List<CoordinatorAction> reRunCoord(String jobId, String rerunType, String scope, boolean refresh, boolean noCleanup) throws OozieClientException
reRunCoord
in class OozieClient
OozieClientException
public List<CoordinatorAction> reRunCoord(String jobId, String rerunType, String scope, boolean refresh, boolean noCleanup, boolean failed, Properties props) throws OozieClientException
reRunCoord
in class OozieClient
OozieClientException
public List<CoordinatorJob> getCoordJobsInfo(String filter, int start, int len) throws OozieClientException
getCoordJobsInfo
in class OozieClient
OozieClientException
protected HttpURLConnection createRetryableConnection(URL url, String method) throws IOException
createRetryableConnection
in class OozieClient
IOException
protected HttpURLConnection createConnection(URL url, String method) throws IOException, OozieClientException
createConnection
in class OozieClient
IOException
OozieClientException
public List<CoordinatorAction> ignore(String jobId, String scope) throws OozieClientException
ignore
in class OozieClient
OozieClientException
public JMSConnectionInfo getJMSConnectionInfo() throws OozieClientException
getJMSConnectionInfo
in class OozieClient
OozieClientException
public String getJobLog(String jobId) throws OozieClientException
getJobLog
in class OozieClient
OozieClientException
public void getJobAuditLog(String jobId, PrintStream ps) throws OozieClientException
getJobAuditLog
in class OozieClient
OozieClientException
public void getJobLog(String jobId, String logRetrievalType, String logRetrievalScope, String logFilter, PrintStream ps) throws OozieClientException
getJobLog
in class OozieClient
OozieClientException
public void getJobErrorLog(String jobId, PrintStream ps) throws OozieClientException
getJobErrorLog
in class OozieClient
OozieClientException
public void getJobLog(String jobId, String logRetrievalType, String logRetrievalScope, PrintStream ps) throws OozieClientException
getJobLog
in class OozieClient
OozieClientException
public String getJMSTopicName(String jobId) throws OozieClientException
getJMSTopicName
in class OozieClient
OozieClientException
public void getSlaInfo(int start, int len, String filter) throws OozieClientException
getSlaInfo
in class OozieClient
OozieClientException
public void setSystemMode(OozieClient.SYSTEM_MODE status) throws OozieClientException
setSystemMode
in class OozieClient
OozieClientException
public OozieClient.SYSTEM_MODE getSystemMode() throws OozieClientException
getSystemMode
in class OozieClient
OozieClientException
public String updateShareLib() throws OozieClientException
updateShareLib
in class OozieClient
OozieClientException
public String listShareLib(String sharelibKey) throws OozieClientException
listShareLib
in class OozieClient
OozieClientException
public String getServerBuildVersion() throws OozieClientException
getServerBuildVersion
in class OozieClient
OozieClientException
public String getClientBuildVersion()
getClientBuildVersion
in class OozieClient
public String validateXML(String file) throws OozieClientException
validateXML
in class OozieClient
OozieClientException
public void pollJob(String id, int timeout, int interval, boolean verbose) throws OozieClientException
pollJob
in class OozieClient
OozieClientException
public List<String> getQueueDump() throws OozieClientException
getQueueDump
in class OozieClient
OozieClientException
public Map<String,String> getAvailableOozieServers() throws OozieClientException
getAvailableOozieServers
in class OozieClient
OozieClientException
public Map<String,String> getServerConfiguration() throws OozieClientException
getServerConfiguration
in class OozieClient
OozieClientException
public Map<String,String> getJavaSystemProperties() throws OozieClientException
getJavaSystemProperties
in class OozieClient
OozieClientException
public Map<String,String> getOSEnv() throws OozieClientException
getOSEnv
in class OozieClient
OozieClientException
public OozieClient.Metrics getMetrics() throws OozieClientException
getMetrics
in class OozieClient
OozieClientException
public OozieClient.Instrumentation getInstrumentation() throws OozieClientException
getInstrumentation
in class OozieClient
OozieClientException
Copyright © 2018 Apache Software Foundation. All rights reserved.