Class MachineIdDistributorSpec
java.lang.Object
me.ahoo.cosid.test.machine.distributor.MachineIdDistributorSpec
DistributorSpec .
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidvoidvoidvoidvoidvoidprotected abstract MachineIdDistributorprotected intprotected Durationvoidguard()voidprotected static InstanceIdmockInstance(int port, boolean stable) voidrevert()
-
Field Details
-
TEST_HOST
- See Also:
-
-
Constructor Details
-
MachineIdDistributorSpec
public MachineIdDistributorSpec()
-
-
Method Details
-
mockInstance
-
getSafeGuardDuration
-
getMachineBit
protected int getMachineBit() -
getDistributor
-
distribute
@Test public void distribute() -
distributeOverflow
@Test public void distributeOverflow() -
distributeRevert
@Test public void distributeRevert() -
distributeSafeGuard
@Test public void distributeSafeGuard() -
guard
@Test public void guard() -
guardLost
@Test public void guardLost() -
distributeStable
@Test public void distributeStable() -
revert
@Test public void revert() -
distributeConcurrent
@Test public void distributeConcurrent() -
distributeIdempotent
@Test public void distributeIdempotent()
-