servicenow.community.sql
Class JobController

java.lang.Object
  extended by servicenow.community.sql.JobController

public class JobController
extends java.lang.Object

Contains methods to process DataPump jobs.

Author:
LewisGF

Constructor Summary
JobController(Pumper pumper, GlideRecord jobrec)
           
JobController(Pumper pumper, java.lang.String text)
           
 
Method Summary
 java.lang.String getDescription()
           
 GlideDateTime getEndTime()
           
 int getFrequency()
           
protected  JobModel getModel()
           
 java.lang.String getName()
           
 GlideDateTime getStartTime()
           
 JobStatus getStatus()
           
 GlideTable glideTable()
           
 GlideDateTime nextRun()
           
 JobOperation operation()
           
 boolean pending()
           
 boolean polling()
           
 boolean ready()
           
 void reset()
           
 GlideDateTime resetInterval()
           
 JobStatus run()
           
 JobStatus run(GlideDateTime starttime)
           
 void setStatus(JobStatus newstatus)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

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
Method Detail

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()