Class MachineIdDistributorSpec
java.lang.Object
me.ahoo.cosid.test.machine.distributor.MachineIdDistributorSpec
DistributorSpec .
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
void
void
void
void
void
void
protected abstract MachineIdDistributor
protected int
protected Duration
void
guard()
void
protected static InstanceId
mockInstance
(int port, boolean stable) void
revert()
-
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()
-