Examples of canLock()


Examples of com.hp.hpl.jena.tdb.base.file.LocationLock.canLock()

           
            if (SystemTDB.DiskLocationMultiJvmUsagePrevention)
            {
                // Obtain the lock ASAP
                LocationLock lock = location.getLock();
                if (lock.canLock()) {
                    if (!lock.canObtain())
                        throw new TDBException("Can't open database at location " + location.getDirectoryPath() + " as it is already locked by the process with PID " + lock.getOwner() + ".  TDB databases do not permit concurrent usage across JVMs so in order to prevent possible data corruption you cannot open this location from the JVM that does not own the lock for the dataset");

                    lock.obtain();
                    // There's an interesting race condition here that two JVMs might write out the lock file one after another without
View Full Code Here

Examples of org.jahia.ajax.gwt.client.data.node.GWTJahiaNode.canLock()

        GWTJahiaNode singleSelection = lh.getSingleSelection();
        setEnabled(singleSelection!=null
                && singleSelection.isLockable()
                && !lh.isLocked()
                && PermissionsUtils.isPermitted("jcr:lockManagement", lh.getSelectionPermissions())
                && singleSelection.canLock() && !lh.isSecondarySelection());
    }
}
View Full Code Here

Examples of org.mt4j.input.inputData.InputCursor.canLock()

   */
  protected boolean canLock(InputCursor... cursors){
    int locked = 0;
    for (int i = 0; i < cursors.length; i++) {
      InputCursor m = cursors[i];
      if (m.canLock(this)){
        locked++;
      }
    }
    return locked == cursors.length;
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.