|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectservicenow.community.sql.JobModel
public class JobModel
Contains the representation of a DataPump job. The job may be instantiated from string/command or from a u_datapump_job GlideRecord. If the job is a u_datapump_job in the ServiceNow instance, then this class will also update the status of the job.
Constructor Summary | |
---|---|
JobModel(Instance instance,
CommandParser buffer)
|
|
JobModel(Instance instance,
GlideRecord jobrec)
|
Method Summary | |
---|---|
JobStatus |
finish()
|
GlideFilter |
getBaseFilter()
|
java.lang.Integer |
getFrequency()
Returns the frequency of this polling job in seconds. |
GlideFilter |
getFullFilter()
|
GlideDateTime |
getIntervalEnd()
|
GlideFilter |
getIntervalFilter()
|
GlideDateTime |
getIntervalStart()
|
LoadMethod |
getMethod()
|
java.lang.String |
getSortField()
|
java.lang.String |
getSqlCommand()
|
java.lang.String |
getSqlTableName()
|
JobStatus |
getStatus()
|
GlideTable |
getTable()
|
GlideDateTime |
getTimestamp()
|
JobOperation |
operation()
|
boolean |
persistent()
|
boolean |
polling()
|
void |
postMetrics(Metrics metrics)
|
protected GlideRecord |
readRecord()
Get the pumper job record from ServiceNow. |
void |
readRefreshOptions(CommandParser buffer)
|
void |
reset()
Set the Status of this job to Pending. |
GlideDateTime |
resetInterval()
|
void |
setFrequency(int seconds)
|
void |
setStatus(JobStatus newstatus)
|
GlideDateTime |
start(GlideDateTime runstart)
|
boolean |
truncate()
|
boolean |
useKeys()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public JobModel(Instance instance, GlideRecord jobrec) throws java.io.IOException, java.text.ParseException, PumperException
java.io.IOException
java.text.ParseException
PumperException
public JobModel(Instance instance, CommandParser buffer) throws java.io.IOException, PumperException
java.io.IOException
PumperException
Method Detail |
---|
public void readRefreshOptions(CommandParser buffer) throws PumperException
PumperException
public JobOperation operation()
public boolean persistent()
public boolean polling()
public boolean useKeys()
public boolean truncate()
public GlideTable getTable()
public LoadMethod getMethod()
public JobStatus getStatus()
public java.lang.String getSortField()
public java.lang.Integer getFrequency()
public void setFrequency(int seconds)
public java.lang.String getSqlCommand()
public GlideFilter getBaseFilter()
public GlideDateTime getIntervalStart()
public GlideDateTime getIntervalEnd()
public GlideFilter getIntervalFilter()
public GlideFilter getFullFilter()
public GlideDateTime start(GlideDateTime runstart) throws java.io.IOException, java.text.ParseException
java.io.IOException
java.text.ParseException
public JobStatus finish() throws java.io.IOException
java.io.IOException
public void reset() throws java.io.IOException
java.io.IOException
public GlideDateTime resetInterval() throws java.io.IOException, java.text.ParseException
java.io.IOException
java.text.ParseException
public void setStatus(JobStatus newstatus) throws java.io.IOException
java.io.IOException
public GlideDateTime getTimestamp() throws java.io.IOException
java.io.IOException
public java.lang.String getSqlTableName()
public void postMetrics(Metrics metrics) throws java.io.IOException
java.io.IOException
protected GlideRecord readRecord() throws java.io.IOException
java.io.IOException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |