servicenow.community.sql
Class JobController
java.lang.Object
servicenow.community.sql.JobController
public class JobController
- extends java.lang.Object
Contains methods to process DataPump jobs.
- Author:
- LewisGF
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JobController
public JobController(Pumper pumper,
java.lang.String text)
throws PumperException,
java.io.IOException,
java.sql.SQLException,
org.jdom2.JDOMException
- Throws:
PumperException
java.io.IOException
java.sql.SQLException
org.jdom2.JDOMException
JobController
public JobController(Pumper pumper,
GlideRecord jobrec)
throws PumperException,
java.io.IOException,
java.sql.SQLException,
org.jdom2.JDOMException,
java.text.ParseException
- Throws:
PumperException
java.io.IOException
java.sql.SQLException
org.jdom2.JDOMException
java.text.ParseException
getName
public java.lang.String getName()
glideTable
public GlideTable glideTable()
operation
public JobOperation operation()
polling
public boolean polling()
pending
public boolean pending()
getModel
protected JobModel getModel()
getStatus
public JobStatus getStatus()
setStatus
public void setStatus(JobStatus newstatus)
throws java.io.IOException
- Throws:
java.io.IOException
getFrequency
public int getFrequency()
getStartTime
public GlideDateTime getStartTime()
getEndTime
public GlideDateTime getEndTime()
nextRun
public GlideDateTime nextRun()
reset
public void reset()
throws java.io.IOException
- Throws:
java.io.IOException
resetInterval
public GlideDateTime resetInterval()
throws java.io.IOException,
java.text.ParseException
- Throws:
java.io.IOException
java.text.ParseException
ready
public boolean ready()
run
public JobStatus run()
throws java.lang.Exception
- Throws:
java.lang.Exception
run
public JobStatus run(GlideDateTime starttime)
throws java.lang.Exception
- Throws:
java.lang.Exception
getDescription
public java.lang.String getDescription()