Tabnine Logo
DBSemaphore.getLog
Code IndexAdd Tabnine to your IDE (free)

How to use
getLog
method
in
org.quartz.impl.jdbcjobstore.DBSemaphore

Best Java code snippets using org.quartz.impl.jdbcjobstore.DBSemaphore.getLog (Showing top 6 results out of 315)

origin: quartz-scheduler/quartz

/**
 * Release the lock on the identified resource if it is held by the calling
 * thread.
 */
public void releaseLock(String lockName) {
  if (isLockOwner(lockName)) {
    if(getLog().isDebugEnabled()) {
      getLog().debug(
        "Lock '" + lockName + "' returned by: "
            + Thread.currentThread().getName());
    }
    getThreadLocks().remove(lockName);
    //getThreadLocksObtainer().remove(lockName);
  } else if (getLog().isDebugEnabled()) {
    getLog().warn(
      "Lock '" + lockName + "' attempt to return by: "
          + Thread.currentThread().getName()
          + " -- but not owner!",
      new Exception("stack-trace of wrongful returner"));
  }
}
origin: quartz-scheduler/quartz

/**
 * Release the lock on the identified resource if it is held by the calling
 * thread.
 */
public void releaseLock(String lockName) {
  if (isLockOwner(lockName)) {
    if(getLog().isDebugEnabled()) {
      getLog().debug(
        "Lock '" + lockName + "' returned by: "
            + Thread.currentThread().getName());
    }
    getThreadLocks().remove(lockName);
    //getThreadLocksObtainer().remove(lockName);
  } else if (getLog().isDebugEnabled()) {
    getLog().warn(
      "Lock '" + lockName + "' attempt to return by: "
          + Thread.currentThread().getName()
          + " -- but not owner!",
      new Exception("stack-trace of wrongful returner"));
  }
}
origin: com.opensymphony.quartz/com.springsource.org.quartz

/**
 * Release the lock on the identified resource if it is held by the calling
 * thread.
 */
public void releaseLock(Connection conn, String lockName) {
  lockName = lockName.intern();
  if (isLockOwner(conn, lockName)) {
    if(getLog().isDebugEnabled()) {
      getLog().debug(
        "Lock '" + lockName + "' returned by: "
            + Thread.currentThread().getName());
    }
    getThreadLocks().remove(lockName);
    //getThreadLocksObtainer().remove(lockName);
  } else if (getLog().isDebugEnabled()) {
    getLog().warn(
      "Lock '" + lockName + "' attempt to return by: "
          + Thread.currentThread().getName()
          + " -- but not owner!",
      new Exception("stack-trace of wrongful returner"));
  }
}
origin: quartz/quartz-all

/**
 * Release the lock on the identified resource if it is held by the calling
 * thread.
 */
public void releaseLock(Connection conn, String lockName) {
  lockName = lockName.intern();
  if (isLockOwner(conn, lockName)) {
    if(getLog().isDebugEnabled()) {
      getLog().debug(
        "Lock '" + lockName + "' returned by: "
            + Thread.currentThread().getName());
    }
    getThreadLocks().remove(lockName);
    //getThreadLocksObtainer().remove(lockName);
  } else if (getLog().isDebugEnabled()) {
    getLog().warn(
      "Lock '" + lockName + "' attempt to return by: "
          + Thread.currentThread().getName()
          + " -- but not owner!",
      new Exception("stack-trace of wrongful returner"));
  }
}
origin: com.opensymphony.quartz/com.springsource.org.quartz

Log log = getLog();
origin: quartz/quartz-all

Log log = getLog();
org.quartz.impl.jdbcjobstoreDBSemaphoregetLog

Popular methods of DBSemaphore

  • executeSQL
    Execute the SQL that will lock the proper database row.
  • getTablePrefix
  • getThreadLocks
  • isLockOwner
    Determine whether the calling thread owns a lock on the identified resource.
  • setExpandedSQL
  • setSQL
  • getSchedName
  • getSchedulerNameLiteral
  • setInsertSQL

Popular in Java

  • Making http post requests using okhttp
  • findViewById (Activity)
  • startActivity (Activity)
  • getSystemService (Context)
  • FileReader (java.io)
    A specialized Reader that reads from a file in the file system. All read requests made by calling me
  • InetAddress (java.net)
    An Internet Protocol (IP) address. This can be either an IPv4 address or an IPv6 address, and in pra
  • ResourceBundle (java.util)
    ResourceBundle is an abstract class which is the superclass of classes which provide Locale-specifi
  • ImageIO (javax.imageio)
  • HttpServlet (javax.servlet.http)
    Provides an abstract class to be subclassed to create an HTTP servlet suitable for a Web site. A sub
  • Join (org.hibernate.mapping)
  • Top 17 Plugins for Android Studio
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyStudentsTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now