protected static class TestDistributedTransactionServiceRestart.MockDistributedTransactionService extends DistributedTransactionService
DistributedTransactionService.NotifyReleaseTimeTask, DistributedTransactionService.Options, DistributedTransactionService.SnapshotHelper
AbstractTransactionService.TxState
BASENAME, commitTimeIndex, dataDir, EXT
ERR_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, snapshot
abort, 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, updateReleaseTime
clearLoggingContext, getHostname, getServiceName, getServiceUUID, setServiceUUID, setupLoggingContext
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
abort, commit, getReleaseTime, newTx
nextTimestamp
getHostname, getServiceIface, getServiceName, getServiceUUID
public TestDistributedTransactionServiceRestart.MockDistributedTransactionService(Properties properties)
public AbstractFederation getFederation()
AbstractService
getFederation
in class AbstractService
protected void setReleaseTime(long releaseTime)
DistributedTransactionService
DistributedTransactionService.commitTimeIndex
such only
the commit times requires for reading on timestamps GTE to the new
releaseTime are retained.setReleaseTime
in class DistributedTransactionService
releaseTime
- The new value.protected void addScheduledTasks()
addScheduledTasks
in class DistributedTransactionService
public TestDistributedTransactionServiceRestart.MockDistributedTransactionService start()
AbstractTransactionService
AbstractTransactionService.nextTimestamp()
will not report a time before
AbstractTransactionService.getLastCommitTime()
and then changes the TxServiceRunState
to TxServiceRunState.Running
.start
in class DistributedTransactionService
protected void updateReleaseTimeForBareCommit(long commitTime)
updateReleaseTimeForBareCommit
in class AbstractTransactionService
Copyright © 2006–2019 SYSTAP, LLC DBA Blazegraph. All rights reserved.