Examples of unlock()


Examples of com.cloud.utils.db.GlobalLock.unlock()

                    return;
                }

                upgrade(dbVersion, currentVersion);
            } finally {
                lock.unlock();
            }
        } finally {
            lock.releaseRef();
        }
    }
View Full Code Here

Examples of com.cybozu.vmbkp.control.VmArchiveManager.unlock()

            } catch (Exception e) {
                logException
                    (e, String.format
                     ("backupVm of %s failed.", vmMoref));
            } finally {
                vmArcMgr.unlock();
            }

            System.out.printf("BACKUP %s %s\n",
                              (ret ? "OK" : "NG"), vmInfo.toString());
        }
View Full Code Here

Examples of com.cybozu.vmbkp.profile.ProfileAllVm.unlock()

        } catch (Exception e) {
            throw e;
           
        } finally {
            profAllVm.unlock();
        }

        return profAllVm;
    }
   
View Full Code Here

Examples of com.dotmarketing.beans.VersionInfo.unLock()

            if(!UtilMethods.isSet(info.getIdentifier()))
                throw new DotStateException("No version info. Call setWorking first");
            if(locked)
                info.setLocked(user.getUserId());
            else
                info.unLock();
            vfac.saveVersionInfo(info, false);
        }
    }

    public void setWorking(Versionable versionable) throws DotDataException, DotStateException, DotSecurityException {
View Full Code Here

Examples of com.dotmarketing.business.RoleAPI.unLock()

    ActivityLogger.logInfo(getClass(), "Unlocking Role", "Date:" + date + "; "+ "User:" + user.getUserId() + "; RoleID:" + role.getId() );
    AdminLogger.log(getClass(), "Unlocking Role", "Date:" + date + "; "+ "User:" + user.getUserId() + "; RoleID:" + role.getId() );

    try {
      roleAPI.unLock(role);
    } catch(DotDataException e) {
      ActivityLogger.logInfo(getClass(), "Error Unlocking Role", "Date:" + date + ";  "+ "User:" + user.getUserId() + "; RoleID:" + role.getId() );
      AdminLogger.log(getClass(), "Error Unlocking Role", "Date:" + date + ";  "+ "User:" + user.getUserId() + "; RoleID:" + role.getId() );
      throw e;
    }
View Full Code Here

Examples of com.dotmarketing.portlets.contentlet.business.ContentletAPI.unlock()

      }

      if(publish && contentlet!=null){
        ContentletAPI capi = APILocator.getContentletAPI();
        capi.publish(contentlet, user, true);
        capi.unlock(contentlet, user, true);
        callbackData.put("contentletLocked", contentlet.isLocked());
      }

      if (contentlet!=null && contentlet.getStructure().getVelocityVarName().equalsIgnoreCase("host")) {
        String copyOptionsStr = (String)contentletFormData.get("copyOptions");
View Full Code Here

Examples of com.dotmarketing.portlets.contentlet.model.ContentletVersionInfo.unLock()

            if(!UtilMethods.isSet(info.getIdentifier()))
                throw new DotStateException("No version info. Call setWorking first");
            if(locked)
                info.setLocked(user.getUserId());
            else
                info.unLock();
            vfac.saveContentletVersionInfo(info, false);
        }
        else {
            VersionInfo info = vfac.getVersionInfo(ver.getVersionId());
            if(!UtilMethods.isSet(info.getIdentifier()))
View Full Code Here

Examples of com.ericsson.ssa.sip.persistence.ReplicationUnitOfWork.unlock()

     */
    public void endPipelineInvoke() {
        ReplicationUnitOfWork uow =
            ReplicationUnitOfWork.getThreadLocalUnitOfWork();
        if (uow != null) {
            uow.unlock();
        } else {
            throw new IllegalStateException(
                "Missing Unit-of-work when there should be one");
        }
    }
View Full Code Here

Examples of com.founder.fix.fixflow.core.impl.runtime.TokenEntity.unlock()

          // 直接执行方式
          connector.execute(executionContext);
        }

      } finally {
        token.unlock();
      }

    } catch (Exception exception) {
      // NOTE that Error's are not caught because that might halt the JVM
      // and mask the original Error
View Full Code Here

Examples of com.google.jstestdriver.SlaveBrowser.unlock()

  }

  public void stopSession(String id, String sessionId, PrintWriter writer) {
    SlaveBrowser browser = capturedBrowsers.getBrowser(id);
    try {
      browser.unlock(sessionId);
      browser.clearCommandRunning();
    } finally {
      writer.flush();
    }
  }
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.