use of org.apache.geode.distributed.DistributedLockService in project geode by apache.
the class AutoBalancerIntegrationJUnitTest method canReacquireLock.
@Test
public void canReacquireLock() throws InterruptedException {
acquireLockInDifferentThread(2);
DistributedLockService dls = new GeodeCacheFacade().getDLS();
assertFalse(dls.lock(AutoBalancer.AUTO_BALANCER_LOCK, 0, -1));
}
use of org.apache.geode.distributed.DistributedLockService in project geode by apache.
the class AutoBalancerIntegrationJUnitTest method testLockSuccess.
@Test
public void testLockSuccess() throws InterruptedException {
acquireLockInDifferentThread(1);
DistributedLockService dls = new GeodeCacheFacade().getDLS();
assertFalse(dls.lock(AutoBalancer.AUTO_BALANCER_LOCK, 0, -1));
}
Aggregations