public abstract class ConsolidatorQueueProcessor
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
ALL_PUBLICATIONS |
static java.lang.String |
ALL_SUBSCRIPTIONS |
static java.lang.String |
ALL_TEMPLATE_ITEMS |
static java.lang.String |
ALL_TEMPLATES |
static java.lang.String |
ALL_VPKS |
static java.lang.String |
EQ_CONTROL |
static java.lang.String |
EQ_DML_PREFIX |
static java.lang.String |
IN_DML_PREFIX |
static java.lang.String |
INQ_CONTROL |
oracle.lite.sync.tracing.Logger |
m_log |
static java.lang.String |
PUB_ITEMS_Q |
Constructor and Description |
---|
ConsolidatorQueueProcessor() |
Modifier and Type | Method and Description |
---|---|
abstract void |
downloadComplete(java.sql.Connection conn,
java.sql.Connection rmtConn,
java.lang.String clientid)
Called after client has successfully disconnected from the mobile server
|
abstract void |
downloadInit(java.sql.Connection conn,
java.sql.Connection rmtConn,
java.lang.String clientid,
long lastTran,
long currTran,
java.lang.String highPrty)
Called with pubListQ populated with pub items to be downloaded
|
abstract java.util.LinkedList |
getPubListQ()
Called by sync session after downloadInit() to get a list
of publication items flags for complete refresh and optionally,
for record count in each out queue.
|
abstract void |
setPubListQ(java.util.LinkedList ll)
Called before downloadInit() is called, to identify which publication
items need to be synchronized.
|
abstract void |
uploadComplete(java.sql.Connection conn,
java.sql.Connection rmtConn,
java.lang.String clientid,
long tranid)
Called after all records are uploaded
|
public static final java.lang.String ALL_PUBLICATIONS
public static final java.lang.String ALL_SUBSCRIPTIONS
public static final java.lang.String ALL_TEMPLATE_ITEMS
public static final java.lang.String ALL_TEMPLATES
public static final java.lang.String ALL_VPKS
public static final java.lang.String EQ_CONTROL
public static final java.lang.String EQ_DML_PREFIX
public static final java.lang.String IN_DML_PREFIX
public static final java.lang.String INQ_CONTROL
public oracle.lite.sync.tracing.Logger m_log
public static final java.lang.String PUB_ITEMS_Q
public abstract void downloadComplete(java.sql.Connection conn, java.sql.Connection rmtConn, java.lang.String clientid) throws java.lang.Throwable
conn
- mobile server connectionrmtConn
- if publication resides on a separate db instance from the mobile server
this will be not nullclientid
- Stringjava.lang.Throwable
public abstract void downloadInit(java.sql.Connection conn, java.sql.Connection rmtConn, java.lang.String clientid, long lastTran, long currTran, java.lang.String highPrty) throws java.lang.Throwable
conn
- mobile server connectionrmtConn
- if publication resides on a separate db instance from the mobile server
this will be not nullclientid
- StringlastTran
- last acknowledge server transaction received by the clientcurrTran
- current sync session download transaction idhighPrty
- indicates whether or not client is performing a high priority syncjava.lang.Throwable
public abstract java.util.LinkedList getPubListQ()
setPubListQ(LinkedList)
public abstract void setPubListQ(java.util.LinkedList ll)
ll
- contains a LinkedList of QueueListRecord objects corresponding
to each publication itemQueueListRecord.QueueListRecord(String, String, int)
,
QueueListRecord.QueueListRecord(String, String)
public abstract void uploadComplete(java.sql.Connection conn, java.sql.Connection rmtConn, java.lang.String clientid, long tranid) throws java.lang.Throwable
conn
- mobile server connectionrmtConn
- if publication resides on a separate db instance from the mobile server
this will be not nullclientid
- Stringtranid
- upload transaction id. This transaction id is used to identify records in the
mobile server in queuejava.lang.Throwable