|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.wm.app.tn.util.TNFixedData
com.wm.app.tn.delivery.GuaranteedJob
com.wm.app.tn.delivery.DeliveryJob
public class DeliveryJob
A DeliveryJob represents one unit of work for the reliable delivery engine. Each document that is delivered via reliable delivery is assigned to a delivery job.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class com.wm.app.tn.util.TNFixedData |
---|
TNFixedData.TreeCursor |
Field Summary |
---|
Fields inherited from class com.wm.app.tn.delivery.GuaranteedJob |
---|
DELIVERING, DONE, FAILED, HELD, NEW, NO_JOB_ID, PENDING, QUEUED, STATUS_STRINGS, STOPPED |
Constructor Summary | |
---|---|
DeliveryJob()
Default constructor needed for subclasses of TNFixedData |
|
DeliveryJob(java.lang.String jobId,
java.lang.String serverId,
DeliveryService service,
BizDocEnvelope bizdoc,
long ttw,
int retryLimit,
int retryFactor,
java.lang.String username,
java.lang.String password)
Define a new Job |
Method Summary | |
---|---|
void |
addActivityEntry(int type,
java.lang.String brief,
java.lang.String full)
Adds an activity log entry. |
static com.wm.data.IData |
create()
create needed for subclasses of TNFixedData |
static java.lang.Object[][] |
DeliveryJobSchema()
|
java.lang.String |
getClassification()
This method should return the job "classification" which is a String representing an abbreviated name for the class. |
com.wm.data.IData |
getDBIData()
This method is used by the DB operations when storing jobs. |
void |
setBizDocEnvelope(BizDocEnvelope bizdoc)
Sets the bizdoc and sets up the inputs for the DeliveryService. |
void |
setDBIData(com.wm.data.IData data)
This method is used by the DB operations when restoring jobs from the database. |
java.lang.String |
toString()
Default toString implementation returns class name followed by contents. |
Methods inherited from class com.wm.app.tn.util.TNFixedData |
---|
clone, dataSize, get, get, getCursor, getHashCursor, getIndexCursor, getKey, getSharedCursor, getTreeCursor, indexOf, merge, set, set |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public DeliveryJob()
public DeliveryJob(java.lang.String jobId, java.lang.String serverId, DeliveryService service, BizDocEnvelope bizdoc, long ttw, int retryLimit, int retryFactor, java.lang.String username, java.lang.String password)
jobId
- job idserverId
- server idservice
- service to be invoked when running this jobbizdoc
- document to deliverttw
- Time-to-wait (in milliseconds)retryLimit
- max number of retry attemptsretryFactor
- back-off factor for retrying jobsMethod Detail |
---|
public static com.wm.data.IData create()
public static java.lang.Object[][] DeliveryJobSchema()
public java.lang.String getClassification()
GuaranteedJob
getClassification
in class GuaranteedJob
public void addActivityEntry(int type, java.lang.String brief, java.lang.String full)
addActivityEntry
in class GuaranteedJob
type
- activity log typebrief
- brief message to insertfull
- full message to insertpublic void setBizDocEnvelope(BizDocEnvelope bizdoc)
setBizDocEnvelope
in class GuaranteedJob
bizdoc
- the document associated with this jobpublic com.wm.data.IData getDBIData()
getDBIData
in class GuaranteedJob
public void setDBIData(com.wm.data.IData data)
setDBIData
in class GuaranteedJob
data
- data to setpublic java.lang.String toString()
TNFixedData
toString
in class GuaranteedJob
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |