Beispiel #1
0
 @Override
 public boolean write(byte[] b, int off, int len) throws ExodusException {
   try {
     file.write(b, off, len);
   } catch (IOException ioe) {
     if (lockingManager.getUsableSpace() < len) {
       throw new OutOfDiskSpaceException(ioe);
     }
     throw new ExodusException("Can't write to file", ioe);
   }
   return true;
 }
Beispiel #2
0
 @Override
 public String lockInfo() {
   return lockingManager.lockInfo();
 }
Beispiel #3
0
 @Override
 public boolean release() {
   return lockingManager.release();
 }
Beispiel #4
0
 @Override
 public boolean lock(long timeout) {
   return lockingManager.lock(timeout);
 }