protected static class TestDistributedTransactionServiceRestart.MockDistributedTransactionService extends DistributedTransactionService
DistributedTransactionService.NotifyReleaseTimeTask, DistributedTransactionService.Options, DistributedTransactionService.SnapshotHelperAbstractTransactionService.TxStateBASENAME, commitTimeIndex, dataDir, EXTERR_NO_SUCH, ERR_NOT_ACTIVE, ERR_READ_ONLY, ERR_SERVICE_NOT_AVAIL, lock, log, txDeactivate| Constructor and Description |
|---|
TestDistributedTransactionServiceRestart.MockDistributedTransactionService(Properties properties) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addScheduledTasks()
Note: The scheduled tasks are disabled for the unit test since we do
not have a federation for this test.
|
AbstractFederation |
getFederation()
Return the proxy used to access other services in the federation.
|
protected void |
setReleaseTime(long releaseTime)
Extended to truncate the head of the
DistributedTransactionService.commitTimeIndex such only
the commit times requires for reading on timestamps GTE to the new
releaseTime are retained. |
TestDistributedTransactionServiceRestart.MockDistributedTransactionService |
start()
Verifies that
AbstractTransactionService.nextTimestamp() will not report a time before
AbstractTransactionService.getLastCommitTime() and then changes the TxServiceRunState
to TxServiceRunState.Running. |
protected void |
updateReleaseTimeForBareCommit(long commitTime)
This is overridden to be a NOP for this test suite.
|
abortImpl, commitImpl, committed, declareResources, destroy, findCommitTime, findNextCommitTime, getCounters, getDataServices, getLastCommitTime, notifyCommit, prepared, shutdown, shutdownNow, singlePhaseCommit, snapshotabort, abortAllTx, activateTx, assertOpen, assignTransactionIdentifier, commit, deactivateTx, findUnusedTimestamp, getAbortCount, getActiveCount, getCommitCount, getEarliestActiveTx, getEffectiveReleaseTimeForHA, getMinReleaseAge, getProperties, getReadOnlyActiveCount, getReadsOnTime, getReadWriteActiveCount, getReleaseTime, getRunState, getServiceIface, getStartCount, getTxState, isOpen, isReleaseTimeConsensusProtocol, newTx, nextTimestamp, setRunState, updateReleaseTimeclearLoggingContext, getHostname, getServiceName, getServiceUUID, setServiceUUID, setupLoggingContextclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitabort, commit, getReleaseTime, newTxnextTimestampgetHostname, getServiceIface, getServiceName, getServiceUUIDpublic TestDistributedTransactionServiceRestart.MockDistributedTransactionService(Properties properties)
public AbstractFederation getFederation()
AbstractServicegetFederation in class AbstractServiceprotected void setReleaseTime(long releaseTime)
DistributedTransactionServiceDistributedTransactionService.commitTimeIndex such only
the commit times requires for reading on timestamps GTE to the new
releaseTime are retained.setReleaseTime in class DistributedTransactionServicereleaseTime - The new value.protected void addScheduledTasks()
addScheduledTasks in class DistributedTransactionServicepublic TestDistributedTransactionServiceRestart.MockDistributedTransactionService start()
AbstractTransactionServiceAbstractTransactionService.nextTimestamp() will not report a time before
AbstractTransactionService.getLastCommitTime() and then changes the TxServiceRunState
to TxServiceRunState.Running.start in class DistributedTransactionServiceprotected void updateReleaseTimeForBareCommit(long commitTime)
updateReleaseTimeForBareCommit in class AbstractTransactionServiceCopyright © 2006–2019 SYSTAP, LLC DBA Blazegraph. All rights reserved.