public class ScheduleResourceHelper extends ServiceManagerHelper
Modifier and Type | Field and Description |
---|---|
static String |
SCHEDULER_BASE_URL |
static String |
SCHEDULER_INSTANCES_URL |
static String |
SCHEDULER_JOBS_URL |
Constructor and Description |
---|
ScheduleResourceHelper() |
ScheduleResourceHelper(String envFileName) |
exec, exec, exec, exec, exec, execDELETE, execGET, execPOST, execPUT, getAdminUrl, getBaseUrl, getClientDir, getCurrentDB, getJobConfUrl, getPassword, getServerDir, getServerHdfsUrl, getServerLens, getServiceURI, getSessionHandleString, getStartDate, getUserName, init, sendForm, sendQuery
public static final String SCHEDULER_BASE_URL
public static final String SCHEDULER_JOBS_URL
public static final String SCHEDULER_INSTANCES_URL
public ScheduleResourceHelper()
public ScheduleResourceHelper(String envFileName)
public javax.ws.rs.core.Response submitJobReturnResponse(String action, XJob job, String sessionHandleString) throws JAXBException, IOException, ParseException, DatatypeConfigurationException
public String submitJob(String action, XJob job, String session) throws JAXBException, IOException, ParseException, DatatypeConfigurationException
public String submitJob(XJob job, String session) throws JAXBException, IOException, ParseException, DatatypeConfigurationException
public String submitNScheduleJob(XJob job, String session) throws JAXBException, IOException, ParseException, DatatypeConfigurationException
public XJob getXJob(String name, String query, String db, String startTime, String endTime, XFrequencyEnum frequency) throws ParseException, DatatypeConfigurationException
public XJob getXJob(String name, String query, String db, String startTime, String endTime, String cronExpression) throws ParseException, DatatypeConfigurationException
public XTrigger getXTrigger(XFrequencyEnum frequency)
public XExecution getXExecution(String query, String db)
public XExecution getXExecution(String query, String db, List<MapType> queryConfig, List<MapType> sessionConfig)
public LensAPIResult<XJob> getJobDefinition(String jobHandle, String sessionId, javax.ws.rs.core.MediaType inputMedia, String outputMedia)
public LensAPIResult<XJob> getJobDefinition(String jobHandle, String sessionId)
public LensAPIResult deleteJob(String jobHandle, String sessionId)
public LensAPIResult updateJob(XJob job, String jobHandle, String sessionHandleString) throws JAXBException, IOException, ParseException, DatatypeConfigurationException
public LensAPIResult updateJob(String jobHandle, String action, String sessionHandleString) throws JAXBException, IOException, ParseException, DatatypeConfigurationException
public LensAPIResult<SchedulerJobInfo> getJobDetails(String jobHandle, String sessionHandleString)
public SchedulerJobState getJobStatus(String jobHandle, String sessionHandleString)
public SchedulerJobState getJobStatus(String jobHandle)
public List<SchedulerJobInstanceInfo> getAllInstancesOfJob(String jobHandle, String numResults, String sessionId) throws JAXBException, IOException, ParseException, DatatypeConfigurationException
public LensAPIResult<SchedulerJobInstanceInfo> getInstanceDetails(String instanceHandle, String sessionId) throws JAXBException, IOException, ParseException, DatatypeConfigurationException
public LensAPIResult<Boolean> updateInstance(String instanceHandle, String action, String sessionId) throws JAXBException, IOException, ParseException, DatatypeConfigurationException
Copyright © 2014–2018 Apache Software Foundation. All rights reserved.