Index

A B C D E F H I L M N O R S T V 
All Classes and Interfaces|All Packages|Constant Field Values

A

acquire(String, Owner, int, Duration, Duration, int, OptionalInt) - Method in class me.ahoo.cosid.store.tck.FaultySlotLeaseStore
 
acquire(String, Owner, int, Duration, Duration, int, OptionalInt) - Method in class me.ahoo.cosid.store.tck.InMemoryStore
 
ACQUIRE - Enum constant in enum class me.ahoo.cosid.store.tck.FaultInjector.Operation
 
acquireFlagsDuplicateOwnerKeys() - Method in class me.ahoo.cosid.store.tck.SlotLeaseStoreContract
Basics: acquire flags a live lease of the same owner key under another incarnation, and only a live one.
acquireIsIdempotentForTheSameOwner() - Method in class me.ahoo.cosid.store.tck.SlotLeaseStoreContract
Basics: acquiring again with the same key and incarnation returns the same slot and fence.
acquireReturnsExhaustedWhenEverySlotIsHeld() - Method in class me.ahoo.cosid.store.tck.SlotLeaseStoreContract
Basics: with every slot below the limit held, acquire returns Exhausted with the earliest expiry.
acquireStaysBelowTheLimit() - Method in class me.ahoo.cosid.store.tck.SlotLeaseStoreContract
Basics: acquired slots are within [0, limit), for limit 1 and 2^bits.
acquireTakesTheLowestFreeSlot() - Method in class me.ahoo.cosid.store.tck.SlotLeaseStoreContract
Basics: without preferred or sticky slot, the lowest free slot is taken.
acquireTakesThePreferredSlot() - Method in class me.ahoo.cosid.store.tck.SlotLeaseStoreContract
Basics: a free preferred slot is taken before the sticky and the lowest ones.
acquireTakesTheStickySlotOfTheOwnerKey() - Method in class me.ahoo.cosid.store.tck.SlotLeaseStoreContract
Basics: a new incarnation of an owner key gets back the free slot that key held last.
advance(Duration) - Method in class me.ahoo.cosid.store.tck.ManualClock
Moves the time by amount; a negative amount moves it back.
always(FaultInjector.Operation, Fault) - Method in class me.ahoo.cosid.store.tck.FaultInjector
Applies fault to every call of operation until FaultInjector.clear().

B

BILL - Static variable in class me.ahoo.cosid.store.tck.internal.TestRuntimes
Periodic segment, yyyyMMdd + 6 digits.

C

calls(FaultInjector.Operation) - Method in class me.ahoo.cosid.store.tck.FaultInjector
How many calls of operation reached the wrapped store.
ceilingAndNextFloorNeverDecrease() - Method in class me.ahoo.cosid.store.tck.SlotLeaseStoreContract
Safety: over renewals, releases and takeovers, ceiling and the next floor of a slot never go down.
check(Path, List<Class<?>>, ClassLoader) - Static method in class me.ahoo.cosid.store.tck.ContractsRan
Lists the contract cases that no report shows as run.
clear() - Method in class me.ahoo.cosid.store.tck.FaultInjector
Removes every fault.
close() - Method in class me.ahoo.cosid.store.tck.FaultyRangeStore
 
close() - Method in class me.ahoo.cosid.store.tck.FaultySlotLeaseStore
 
close() - Method in class me.ahoo.cosid.store.tck.InMemoryStore
 
concurrentAcquiresGetDistinctSlots() - Method in class me.ahoo.cosid.store.tck.SlotLeaseStoreContract
Concurrency: N clients acquiring in one namespace at once get pairwise distinct slots.
concurrentClients() - Method in class me.ahoo.cosid.store.tck.SlotLeaseStoreContract
How many clients SlotLeaseStoreContract.concurrentAcquiresGetDistinctSlots() runs at once; it uses clients * 2 / 3 slots, so a third of them find the namespace exhausted.
concurrentFirstReservesCreateTheKeyOnce() - Method in class me.ahoo.cosid.store.tck.RangeStoreContract
Range: concurrent first reserves of one key create it once: one range starts at initialOffset, none overlap (S2).
concurrentReservesAcrossStoresNeverOverlapAndStrictlyIncrease() - Method in class me.ahoo.cosid.store.tck.RangeStoreContract
Range: N threads on M store instances reserve one key: ranges are disjoint and strictly increase in completion order (S1, S4).
ContractsRan - Class in me.ahoo.cosid.store.tck
Checks from the JUnit XML reports of a backend that its contract cases really ran (roadmap R2: a CI job that silently skipped its backend must fail).
currentMillis() - Method in class me.ahoo.cosid.store.tck.ManualClock
 

D

DEFAULT - Static variable in class me.ahoo.cosid.store.tck.internal.TestRuntimes
Snowflake, decimal.
delay() - Method in record class me.ahoo.cosid.store.tck.Fault.Delay
Returns the value of the delay record component.
Delay(Duration) - Constructor for record class me.ahoo.cosid.store.tck.Fault.Delay
Creates an instance of a Delay record class.

E

equals(Object) - Method in record class me.ahoo.cosid.store.tck.Fault.Delay
Indicates whether some other object is "equal to" this one.
equals(Object) - Method in record class me.ahoo.cosid.store.tck.Fault.Fail
Indicates whether some other object is "equal to" this one.
equals(Object) - Method in record class me.ahoo.cosid.store.tck.Fault.LoseResponse
Indicates whether some other object is "equal to" this one.
error() - Method in record class me.ahoo.cosid.store.tck.Fault.Fail
Returns the value of the error record component.
error() - Method in record class me.ahoo.cosid.store.tck.Fault.LoseResponse
Returns the value of the error record component.
expiredHolderCannotRenewOrRelease() - Method in class me.ahoo.cosid.store.tck.SlotLeaseStoreContract
Safety: once taken over, renew of the previous holder returns empty and its release returns false.
expiresAtIsTtlAfterStoreNow() - Method in class me.ahoo.cosid.store.tck.SlotLeaseStoreContract
Clock: expiresAt minus storeNow equals ttl: both come from the same write.

F

Fail(Supplier<? extends RuntimeException>) - Constructor for record class me.ahoo.cosid.store.tck.Fault.Fail
Creates an instance of a Fail record class.
Fault - Interface in me.ahoo.cosid.store.tck
A fault a FaultInjector applies to one store operation (06-stores.md §3).
Fault.Delay - Record Class in me.ahoo.cosid.store.tck
Waits, then performs the operation: a slow store, or a timeout when longer than the caller waits.
Fault.Fail - Record Class in me.ahoo.cosid.store.tck
Throws without performing the operation: the request never reached the store.
Fault.LoseResponse - Record Class in me.ahoo.cosid.store.tck
Performs the operation, then throws instead of returning: the response was lost, and a retry replays a request the store already applied.
FaultInjector - Class in me.ahoo.cosid.store.tck
The faults a FaultyRangeStore or FaultySlotLeaseStore applies, per operation: one-shot faults in the order they were queued, then the standing fault if any.
FaultInjector() - Constructor for class me.ahoo.cosid.store.tck.FaultInjector
An injector without faults.
FaultInjector.Operation - Enum Class in me.ahoo.cosid.store.tck
A store operation.
FaultyRangeStore - Class in me.ahoo.cosid.store.tck
A RangeStore that applies the faults of a FaultInjector before delegating, for the generator tests of R1 (delays, timeouts, lost responses).
FaultyRangeStore(RangeStore, FaultInjector) - Constructor for class me.ahoo.cosid.store.tck.FaultyRangeStore
 
FaultySlotLeaseStore - Class in me.ahoo.cosid.store.tck
A SlotLeaseStore that applies the faults of a FaultInjector before delegating, for the lease tests of R1 (delays, timeouts, a lost renewal response then its replay).
FaultySlotLeaseStore(SlotLeaseStore, FaultInjector) - Constructor for class me.ahoo.cosid.store.tck.FaultySlotLeaseStore
 
firstReserveStartsAtInitialOffset() - Method in class me.ahoo.cosid.store.tck.RangeStoreContract
Range: the first range of a new key starts at initialOffset (S2).
floorAfterReleaseIsAtLeastLastIssued() - Method in class me.ahoo.cosid.store.tck.SlotLeaseStoreContract
Safety: after release(lease, lastIssued), the floor of the next holder is at least min(lastIssued, ceiling) and at least the released floor.

H

hashCode() - Method in record class me.ahoo.cosid.store.tck.Fault.Delay
Returns a hash code value for this object.
hashCode() - Method in record class me.ahoo.cosid.store.tck.Fault.Fail
Returns a hash code value for this object.
hashCode() - Method in record class me.ahoo.cosid.store.tck.Fault.LoseResponse
Returns a hash code value for this object.

I

InMemoryStore - Class in me.ahoo.cosid.store.tck
The in-memory reference store (06-stores.md §3): passes every contract, for the unit tests of core and Spring.
InMemoryStore() - Constructor for class me.ahoo.cosid.store.tck.InMemoryStore
A store on the system clock.
InMemoryStore(TimeSource) - Constructor for class me.ahoo.cosid.store.tck.InMemoryStore
A store on its own clock, for tests that move the store clock apart from the client clock, such as a ManualClock.

L

LONG_TTL - Static variable in class me.ahoo.cosid.store.tck.SlotLeaseStoreContract
The ttl of leases that must not expire during a case.
LoseResponse(Supplier<? extends RuntimeException>) - Constructor for record class me.ahoo.cosid.store.tck.Fault.LoseResponse
Creates an instance of a LoseResponse record class.

M

main(String[]) - Static method in class me.ahoo.cosid.store.tck.ContractsRan
Checks the reports in args[0] against the contracts named by the other arguments.
ManualClock - Class in me.ahoo.cosid.store.tck
A clock that moves only when told to, in either direction: the store clock of an InMemoryStore or the client clock of a generator under test.
ManualClock() - Constructor for class me.ahoo.cosid.store.tck.ManualClock
A clock at the current system time.
ManualClock(long) - Constructor for class me.ahoo.cosid.store.tck.ManualClock
A clock at startMillis.
maxStoreClockOffset() - Method in class me.ahoo.cosid.store.tck.SlotLeaseStoreContract
How far the store clock may be from the clock of the test machine, for the plausibility check of SlotLeaseStoreContract.storeNowComesFromTheStore() on a store without a controllable clock.
me.ahoo.cosid.store.tck - package me.ahoo.cosid.store.tck
 
me.ahoo.cosid.store.tck.internal - package me.ahoo.cosid.store.tck.internal
 

N

newStore() - Method in class me.ahoo.cosid.store.tck.RangeStoreContract
A store on the backend under test.
newStore() - Method in class me.ahoo.cosid.store.tck.SlotLeaseStoreContract
A store on the backend under test.

O

OFF - Static variable in class me.ahoo.cosid.store.tck.internal.TestRuntimes
Disabled.
once(FaultInjector.Operation, Fault) - Method in class me.ahoo.cosid.store.tck.FaultInjector
Applies fault to the next call of operation only.
OptionalCapability - Annotation Interface in me.ahoo.cosid.store.tck
Marks a contract case of an optional capability, such as seal: it aborts by an assumption on a backend without the capability, and ContractsRan accepts it skipped.
options() - Static method in class me.ahoo.cosid.store.tck.internal.TestRuntimes
 
ORDER - Static variable in class me.ahoo.cosid.store.tck.internal.TestRuntimes
Segment, radix 36 with the prefix O.
overflowThrowsRangeExhausted() - Method in class me.ahoo.cosid.store.tck.RangeStoreContract
Range: a reservation passing Long.MAX_VALUE throws RangeExhaustedException and never wraps (S5).

R

ranges() - Method in class me.ahoo.cosid.store.tck.InMemoryStore
 
RangeStoreContract - Class in me.ahoo.cosid.store.tck
The RangeStore contract (04-segment.md §1, 06-stores.md §3).
RangeStoreContract() - Constructor for class me.ahoo.cosid.store.tck.RangeStoreContract
 
rejectsMismatchedNamespaceParameters() - Method in class me.ahoo.cosid.store.tck.SlotLeaseStoreContract
Metadata: acquiring with another limit or tolerance than the namespace was first used with throws NamespaceMismatchException.
rejectsMismatchedSlotOffset() - Method in class me.ahoo.cosid.store.tck.SlotLeaseStoreContract
Metadata: the slot offset is recorded with the limit and the tolerance (api-freeze.md §2.5.1); another offset throws NamespaceMismatchException, and the offset does not change the slots: they stay [0, limit).
release(SlotLease, long) - Method in class me.ahoo.cosid.store.tck.FaultySlotLeaseStore
 
release(SlotLease, long) - Method in class me.ahoo.cosid.store.tck.InMemoryStore
 
RELEASE - Enum constant in enum class me.ahoo.cosid.store.tck.FaultInjector.Operation
 
renew(SlotLease, Duration, Duration) - Method in class me.ahoo.cosid.store.tck.FaultySlotLeaseStore
 
renew(SlotLease, Duration, Duration) - Method in class me.ahoo.cosid.store.tck.InMemoryStore
 
RENEW - Enum constant in enum class me.ahoo.cosid.store.tck.FaultInjector.Operation
 
renewIsIdempotent() - Method in class me.ahoo.cosid.store.tck.SlotLeaseStoreContract
Safety: replaying a renew keeps the fence and succeeds.
reserve(String, long, long) - Method in class me.ahoo.cosid.store.tck.FaultyRangeStore
 
reserve(String, long, long) - Method in class me.ahoo.cosid.store.tck.InMemoryStore
 
RESERVE - Enum constant in enum class me.ahoo.cosid.store.tck.FaultInjector.Operation
 
reservesOfDifferentKeysOnOneConnectionStayIndependent() - Method in class me.ahoo.cosid.store.tck.RangeStoreContract
Range: reserving key A then key B on the same connection gives B its own range (no stale last_insert_id).
reservesPerThread() - Method in class me.ahoo.cosid.store.tck.RangeStoreContract

S

sameKeyWithAnotherIncarnationNeverTakesOver() - Method in class me.ahoo.cosid.store.tck.SlotLeaseStoreContract
Safety: a live lease is never taken over by the same owner key with another incarnation.
seal(String) - Method in class me.ahoo.cosid.store.tck.FaultyRangeStore
 
seal(String) - Method in class me.ahoo.cosid.store.tck.InMemoryStore
Seals the key; a key that does not exist yet is sealed too, so it is never created (S6).
SEAL - Enum constant in enum class me.ahoo.cosid.store.tck.FaultInjector.Operation
 
sealedKeyRejectsReserveAndKeepsItsValue() - Method in class me.ahoo.cosid.store.tck.RangeStoreContract
Range: after seal, reserve throws RangeSealedException and the next value is unchanged; skipped when seal returns false (S6).
set(long) - Method in class me.ahoo.cosid.store.tck.ManualClock
Sets the time, forwards or backwards.
shortTtl() - Method in class me.ahoo.cosid.store.tck.SlotLeaseStoreContract
The ttl of tests that wait for a lease to expire: short, but long enough for the clock resolution of the backend.
SlotLeaseStoreContract - Class in me.ahoo.cosid.store.tck
The SlotLeaseStore contract (05-machine-lease.md §2, 06-stores.md §3).
SlotLeaseStoreContract() - Constructor for class me.ahoo.cosid.store.tck.SlotLeaseStoreContract
 
slots() - Method in class me.ahoo.cosid.store.tck.InMemoryStore
 
spec(String) - Static method in class me.ahoo.cosid.store.tck.internal.TestRuntimes
 
start(String) - Static method in class me.ahoo.cosid.store.tck.internal.TestRuntimes
A runtime of every strategy.
storeClock() - Method in class me.ahoo.cosid.store.tck.InMemoryStore
The clock that stamps every lease of this store.
storeClock() - Method in class me.ahoo.cosid.store.tck.SlotLeaseStoreContract
The store clock, when the test controls it: the expiry cases then move it past the expiry instead of waiting.
storeInstances() - Method in class me.ahoo.cosid.store.tck.RangeStoreContract
How many store instances the concurrency cases spread the threads over.
storeInstances() - Method in class me.ahoo.cosid.store.tck.SlotLeaseStoreContract
How many store instances the concurrency cases spread the clients over.
storeNowComesFromTheStore() - Method in class me.ahoo.cosid.store.tck.SlotLeaseStoreContract
Clock: storeNow is the store clock, not the client clock.
storesTheKeysOfDottedGeneratorNames() - Method in class me.ahoo.cosid.store.tck.RangeStoreContract
Keys: the range keys of a generator named with a dot, as Wow names one per aggregate (<context>.<aggregate>): <namespace>/eshop-ordering.order for a segment and <namespace>/eshop-ordering.order/<period> for a periodic segment, each a key of its own, apart from the keys of eshop-ordering and eshop-ordering/order.
storesTheLongestPortableKey() - Method in class me.ahoo.cosid.store.tck.RangeStoreContract
Keys: the longest portable range key (StoreKeys, R1-spi-02) is a key of its own, every allowed punctuation and non-ASCII letters included; keys that differ in the last character stay apart.
storesTheLongestPortableNamespaceAndOwnerKey() - Method in class me.ahoo.cosid.store.tck.SlotLeaseStoreContract
Keys: the longest portable namespace and owner key (StoreKeys, R1-spi-02) are stored and read back as they are, every allowed punctuation and a non-ASCII owner key included.

T

takeoverFloorIsAtLeastThePreviousStoredCeiling() - Method in class me.ahoo.cosid.store.tck.SlotLeaseStoreContract
Safety: after expiry, the floor of the next holder is at least the last ceiling stored for the previous holder.
takeoverTimeout() - Method in class me.ahoo.cosid.store.tck.SlotLeaseStoreContract
How long a case waits for an expired lease to be taken over before it fails.
TestRuntimes - Class in me.ahoo.cosid.store.tck.internal
Runtimes of every strategy on InMemoryStores, for the tests of CosId's own integrations and other runtime users.
threads() - Method in class me.ahoo.cosid.store.tck.RangeStoreContract
How many threads the concurrency cases run.
TOKEN - Static variable in class me.ahoo.cosid.store.tck.internal.TestRuntimes
80-bit CosId, radix 62.
TOLERANCE - Static variable in class me.ahoo.cosid.store.tck.SlotLeaseStoreContract
The tolerance of every namespace of the contract (D20 default).
toString() - Method in record class me.ahoo.cosid.store.tck.Fault.Delay
Returns a string representation of this record class.
toString() - Method in record class me.ahoo.cosid.store.tck.Fault.Fail
Returns a string representation of this record class.
toString() - Method in record class me.ahoo.cosid.store.tck.Fault.LoseResponse
Returns a string representation of this record class.

V

valueOf(String) - Static method in enum class me.ahoo.cosid.store.tck.FaultInjector.Operation
Returns the enum constant of this class with the specified name.
values() - Static method in enum class me.ahoo.cosid.store.tck.FaultInjector.Operation
Returns an array containing the constants of this enum class, in the order they are declared.
valuesBeyond2Pow53StayExact() - Method in class me.ahoo.cosid.store.tck.RangeStoreContract
Range: ranges starting beyond 2^53 come back exact, with no floating point loss.
A B C D E F H I L M N O R S T V 
All Classes and Interfaces|All Packages|Constant Field Values