use of org.jgroups.protocols.Locking in project JGroups by belaban.
the class LockServiceDuplicateLockTest method assertServerLocks.
protected void assertServerLocks(int num, int... indices) {
for (int index : indices) {
JChannel ch = channels[index];
Locking lock = ch.getProtocolStack().findProtocol(Locking.class);
assert lock.getNumServerLocks() == num : String.format("expected %d server locks but found %d in %s", num, lock.getNumServerLocks(), ch.getAddress());
}
}
Aggregations