public interface BBjAdminReplicationJob extends BBjAdminCommitPropertyWriter, java.io.Serializable
BBjAdminReplicationTarget
for information
about the target side of a replication job. The most common type of replication job is a BBjAdminBBjReplicationJob
.
See this extension of this interface for more information and sample code.Modifier and Type | Field and Description |
---|---|
static java.lang.String |
ADVISORY_LOCKING
True if the job should use advisory locking when accessing the data files.
|
static java.lang.String |
ENABLED
True if the job is currently enabled/running.
|
static java.lang.String |
EVENT_EMAIL_RECIPIENTS
Deprecated.
|
static java.lang.String |
EVENT_EMAIL_SERVICE
Deprecated.
|
static java.lang.String |
EVENT_HANDLER
Deprecated.
|
static java.lang.String |
EVENT_HANDLER_CLASSPATH
Deprecated.
|
static java.lang.String |
EVENT_HANDLER_CONFIG
Deprecated.
|
static java.lang.String |
EVENT_HANDLER_PWD
Deprecated.
|
static java.lang.String |
EVENT_HANDLER_USER
Deprecated.
|
static java.lang.String |
EVENT_HANDLER_WORKING_DIR
Deprecated.
|
static java.lang.String |
ID
Unique ID for this job.
|
static java.lang.String |
MAX_BANDWIDTH
Maximum bandwidth this job should use communicating with the target.
|
static java.lang.String |
NAME
Name of the replication job.
|
static java.lang.String |
RECOPY_ENABLED
True if recopy of file is enabled.
|
static int |
STATE_COPYING_FILES
State of the job indicating it is currently copying files from the source to the target.
|
static int |
STATE_ERROR
State of the job indicating it currently has an error condition.
|
static int |
STATE_NOT_SINCE_START
State of the job indicating it is not yet up to date since starting the job initially.
|
static java.lang.String |
SYNCHRONOUS
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
boolean |
cancelDisableWhenCaughtUpToNow()
Tells the job to cancel the pause request that was made in a call to
disableWhenCaughtUpToNow() if one was made. |
void |
disableWhenCaughtUpToNow()
Tells the job to pause when the job is completely caught up on the target
with the items currently in the source log file as of the moment this
method is called.
|
java.lang.Throwable |
getCurrentError()
If there is any kind of problem experienced by the replication job, this
will return that current error.
|
BBjAdminList<BBjAdminProperty> |
getDescriptiveProperties()
Used primarily by GUI applications like the Enterprise Manager to dynamically generate
an admin UI.
|
long |
getLastInSync()
Returns the last time this job was in sync.
|
java.lang.String |
getLastInSyncString()
Returns the last time this job was in sync as a date/time formatted using the
specified locale of the BBjAdminBase.
|
long |
getLastLag()
The number of milliseconds that the timestamp lagged behind wall time as
of the last timestamp.
|
double |
getLastOpRate()
Get the number of operations per ms processed in the last successful
timestamp interval.
|
long |
getLastTimestamp()
Returns the last timestamp processed by the replication log.
|
double |
getLastTimestampRatio()
Get the relative replication log processing rate as of the last timestamp
successfully processed.
|
java.lang.String |
getLastTimestampSummary()
Get a string summarizing interesting stats as of the last timestamp.
|
long |
getLastWaitForLog()
Returns the last time that the replication process had to wait for the
log to catch up to the queue.
|
java.util.List<BBjAdminReplicationStartProcess> |
getStartProcesses()
Returns a list of all files that are currently being copied from
source to destination machine.
|
void |
setDescriptiveProperties(BBjAdminList<BBjAdminProperty> p_descriptiveProps)
Used primarily by GUI applications like the Enterprise Manager to dynamically generate
an admin UI.
|
void |
setEnabled(boolean p_enabled)
Sets the job enabled/disabled.
|
long |
waitingToDisable()
Returns the timestamp as a standard Java long value, for when the call
was made to
disableWhenCaughtUpToNow() . |
getChangedProperties, getClearedProperties, getOriginalProperties
addType, canAddNewProperties, canClear, clear, clearProperties, clearProperty, getReadOnly, hasChanged, isReadOnly, setBoolean, setDouble, setInt, setList, setLong, setProperties, setString, setValue
checkValueEqual, contains, contains, getBoolean, getDouble, getInt, getList, getLong, getProperties, getString, getType, getTypes, getValue
commit, rollback
static final java.lang.String NAME
BBjAdminAsynchTriggerJob
which extends this interface.static final java.lang.String ID
@Deprecated static final java.lang.String SYNCHRONOUS
static final java.lang.String ENABLED
static final java.lang.String ADVISORY_LOCKING
static final java.lang.String MAX_BANDWIDTH
static final java.lang.String RECOPY_ENABLED
@Deprecated static final java.lang.String EVENT_HANDLER
@Deprecated static final java.lang.String EVENT_HANDLER_USER
@Deprecated static final java.lang.String EVENT_HANDLER_PWD
@Deprecated static final java.lang.String EVENT_HANDLER_CONFIG
@Deprecated static final java.lang.String EVENT_HANDLER_WORKING_DIR
@Deprecated static final java.lang.String EVENT_HANDLER_CLASSPATH
@Deprecated static final java.lang.String EVENT_EMAIL_SERVICE
@Deprecated static final java.lang.String EVENT_EMAIL_RECIPIENTS
static final int STATE_COPYING_FILES
static final int STATE_NOT_SINCE_START
static final int STATE_ERROR
getLastInSync()
.long getLastWaitForLog() throws BBjAdminException
BBjAdminException
long getLastTimestamp() throws BBjAdminException
BBjAdminException
long getLastInSync() throws BBjAdminException
BBjAdminException
java.lang.String getLastInSyncString() throws BBjAdminException
BBjAdminException
void disableWhenCaughtUpToNow() throws BBjAdminException
BBjAdminException
boolean cancelDisableWhenCaughtUpToNow() throws BBjAdminException
disableWhenCaughtUpToNow()
if one was made. Returns true if it actually
cancelled something.BBjAdminException
long waitingToDisable() throws BBjAdminException
disableWhenCaughtUpToNow()
. If it is not waiting, it
returns -1.BBjAdminException
java.util.List<BBjAdminReplicationStartProcess> getStartProcesses() throws BBjAdminException
BBjAdminException
java.lang.Throwable getCurrentError() throws BBjAdminException
BBjAdminException
void setEnabled(boolean p_enabled) throws BBjAdminException
BBjAdminException
BBjAdminList<BBjAdminProperty> getDescriptiveProperties() throws BBjAdminException
BBjAdminException
void setDescriptiveProperties(BBjAdminList<BBjAdminProperty> p_descriptiveProps) throws BBjAdminException
BBjAdminException
double getLastOpRate() throws BBjAdminException
BBjAdminException
double getLastTimestampRatio() throws BBjAdminException
BBjAdminException
long getLastLag() throws BBjAdminException
BBjAdminException
java.lang.String getLastTimestampSummary() throws BBjAdminException
BBjAdminException