@Before public void setup() throws Exception { clock = new Clock.Virtual(); clock.waitUntil(System.currentTimeMillis()); ClusterNodeInfo.setClock(clock); store = new MemoryDocumentStore(); wd1 = UUID.randomUUID().toString(); wd2 = UUID.randomUUID().toString(); }
@Before public void prepareStores() throws Exception { clock = new Clock.Virtual(); //TODO Temp mode to change the default setting so as to test it //If we retain this feature then need to have better config support for it System.setProperty("oak.mongo.maxDeltaForModTimeIdxSecs", "120"); mongoDS = new MongoDocumentStore(mongoConnection.getMongoClient(), mongoConnection.getDatabase(), new DocumentMK.Builder()); mongoDS.setClock(clock); TRACE_LOGGER.addHandler(testHandler); TRACE_LOGGER.setLevel(Level.FINEST); }
@Before public void setUp() throws InterruptedException { clock = new Clock.Virtual(); // baseline the clock clock.waitUntil(System.currentTimeMillis()); Revision.setClock(clock); }
@Before public void setUp() throws InterruptedException { final DocumentStore docStore = fixture.createDocumentStore(); DocumentStore testStore = new TestStore(docStore); clock = new Clock.Virtual(); store = new DocumentMK.Builder() .clock(clock) .setLeaseCheckMode(LeaseCheckMode.LENIENT) .setDocumentStore(testStore) .setAsyncDelay(0) .getNodeStore(); gc = store.getVersionGarbageCollector(); //Baseline the clock clock.waitUntil(Revision.getCurrentTimestamp()); }
protected Clock getClock() { return new Clock.Virtual(); }
private DocumentMK createMK(int clusterId) throws InterruptedException { clock = new Clock.Virtual(); return openMK(clusterId, fixture.createDocumentStore()); }
@Override protected Clock getTestClock() throws InterruptedException { return new Clock.Virtual(); }
@Before public void setUp() throws InterruptedException { clock = new Clock.Virtual(); clock.waitUntil(System.currentTimeMillis()); Revision.setClock(clock); store = new DocumentMK.Builder() .clock(clock) .setLeaseCheckMode(LeaseCheckMode.LENIENT) .setDocumentStore(fixture.createDocumentStore()) .setAsyncDelay(0) .getNodeStore(); gc = store.getVersionGarbageCollector(); }
@Override protected Clock getTestClock() throws InterruptedException { clock = new Clock.Virtual(); clock.waitUntil(Revision.getCurrentTimestamp()); return clock; }
@Before public void setup() throws Exception { clock = new Clock.Virtual(); ClusterNodeInfo.setClock(clock); ds = new TestStore(); ns = new DocumentMK.Builder().clock(clock).setDocumentStore(ds) .setLeaseCheckMode(LeaseCheckMode.LENIENT).getNodeStore(); }
@Before public void before() throws Exception { clock = new Clock.Virtual(); clock.waitUntil(System.currentTimeMillis()); Revision.setClock(clock); ns = new DocumentMK.Builder().setAsyncDelay(0).clock(clock).getNodeStore(); logCustomizer.starting(); }
@Before public void before() throws Exception { clock = new Clock.Virtual(); clock.waitUntil(System.currentTimeMillis()); DocumentMK.Builder builder = builderProvider.newBuilder(); builder.clock(clock).setAsyncDelay(0); Revision.setClock(clock); mk = builder.open(); ns = builder.getNodeStore(); store = ns.getDocumentStore(); seeker = builder.createMissingLastRevSeeker(); }
@Before public void before() throws Exception { clock = new Clock.Virtual(); clock.waitUntil(System.currentTimeMillis()); ClusterNodeInfo.setClock(clock); store = new TestStore(); }
@Before public void setUp() throws InterruptedException { clock = new Clock.Virtual(); store = builderProvider.newBuilder().clock(clock).getNodeStore(); }
protected Clock getTestClock() throws InterruptedException { Clock clock = new Clock.Virtual(); clock.waitUntil(getCurrentTimestamp()); return clock; }
@Before public void before() throws Exception { clock = new Clock.Virtual(); clock.waitUntil(System.currentTimeMillis()); Revision.setClock(clock); ClusterNodeInfo.setClock(clock); store = new FailingDocumentStore(new MemoryDocumentStore()); ns = createDocumentNodeStore(0); }
@Before public void before() throws Exception { clock = new Clock.Virtual(); clock.waitUntil(System.currentTimeMillis()); Revision.setClock(clock); ClusterNodeInfo.setClock(clock); store = new FailingDocumentStore(new MemoryDocumentStore()); ns = createDocumentNodeStore(); }
@Before public void before() throws Exception { clock = new Clock.Virtual(); clock.waitUntil(System.currentTimeMillis()); Revision.setClock(clock); ClusterNodeInfo.setClock(clock); }
@Before public void setup() throws Exception { clock = new Clock.Virtual(); blobStore = new ChunkDeletionTrackingBlobStore(); createBlobCollector(); }
public MongoStoreFixture() { c = MongoUtils.getConnection(); if (c != null) { MongoUtils.dropCollections(c.getDBName()); } clock = new Clock.Virtual(); }