Lines Matching refs:slave
53 LockSlaveMirror slave = startLockSlave();
61 testLockProtocol(blah, slave);
62 testAsyncClose(blah, slave);
68 slave.shutdown();
73 static void testLockProtocol(File file, LockSlaveMirror slave)
78 // slave VM opens file and acquires exclusive lock
79 slave.open(file.getPath()).lock();
85 // (lock should not be acquire until released by slave VM)
93 // slave VM releases lock
94 slave.unlock();
100 // slave VM acquires lock on range
101 slave.lock(0, 10, false);
109 slave.close();
113 static void testAsyncClose(File file, LockSlaveMirror slave) throws Exception {
114 // slave VM opens file and acquires exclusive lock
115 slave.open(file.getPath()).lock();
121 // try to lock file (should not complete because file is locked by slave)
144 slave.close();
147 // starts a "lock slave" in another process, returning a mirror object to
148 // control the slave
167 // wait for slave to connect
172 // commands that the slave understands
179 // provides a proxy to a "lock slave"
270 // slave process that responds to simple commands a socket connection