Class MachineIdDistributorSpec

java.lang.Object
me.ahoo.cosid.test.machine.distributor.MachineIdDistributorSpec

public abstract class MachineIdDistributorSpec extends Object
DistributorSpec .
  • Field Details

  • Constructor Details

    • MachineIdDistributorSpec

      public MachineIdDistributorSpec()
  • Method Details

    • mockInstance

      protected static InstanceId mockInstance(int port, boolean stable)
    • getSafeGuardDuration

      protected Duration getSafeGuardDuration()
    • getMachineBit

      protected int getMachineBit()
    • getDistributor

      protected abstract MachineIdDistributor 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()