congrats Icon
New! Announcing our next generation AI code completions
Read here
Tabnine Logo
A_CmsReportThread.getRuntime
Code IndexAdd Tabnine to your IDE (free)

How to use
getRuntime
method
in
org.opencms.report.A_CmsReportThread

Best Java code snippets using org.opencms.report.A_CmsReportThread.getRuntime (Showing top 2 results out of 315)

origin: org.opencms/opencms-core

/**
 * Returns true if this thread is already "doomed" to be deleted.<p>
 *
 * A OpenCms deamon Thread (the "Grim Reaper") will collect all
 * doomed Threads, i.e. threads that are not longer active for some
 * time.<p>
 *
 * @return true if this thread is already "doomed" to be deleted
 */
public synchronized boolean isDoomed() {
  if (isAlive()) {
    // as long as the Thread is still active it is never doomed
    return false;
  }
  if (m_doomed) {
    // not longer active, and already doomed, so rest in peace...
    return true;
  }
  // condemn the Thread to be collected by the grim reaper next time
  m_starttime = getRuntime();
  m_doomed = true;
  return false;
}
origin: org.opencms/opencms-solr

/**
 * Returns true if this thread is already "doomed" to be deleted.<p>
 * 
 * A OpenCms deamon Thread (the "Grim Reaper") will collect all 
 * doomed Threads, i.e. threads that are not longer active for some
 * time.<p>
 * 
 * @return true if this thread is already "doomed" to be deleted
 */
public synchronized boolean isDoomed() {
  if (isAlive()) {
    // as long as the Thread is still active it is never doomed
    return false;
  }
  if (m_doomed) {
    // not longer active, and already doomed, so rest in peace...
    return true;
  }
  // condemn the Thread to be collected by the grim reaper next time  
  m_starttime = getRuntime();
  m_doomed = true;
  return false;
}
org.opencms.reportA_CmsReportThreadgetRuntime

Javadoc

Returns the time this report has been running.

Popular methods of A_CmsReportThread

  • getReportUpdate
    Returns the part of the report that is ready for output.
  • isAlive
  • getName
  • getReport
    Returns the report where the output of this Thread is written to.
  • getUUID
    Returns the OpenCms UUID of this report thread.
  • hasError
    Returns if the report generated an error output.
  • isDoomed
    Returns true if this thread is already "doomed" to be deleted. A OpenCms deamon Thread (the "Grim Re
  • join
  • setDaemon
  • setName
  • start
  • getLastEntryTime
    Returns the time of last report entry. Will return zero if no entry has been written.
  • start,
  • getLastEntryTime,
  • getLogChannel,
  • interrupt

Popular in Java

  • Parsing JSON documents to java classes using gson
  • addToBackStack (FragmentTransaction)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • setScale (BigDecimal)
  • BufferedReader (java.io)
    Wraps an existing Reader and buffers the input. Expensive interaction with the underlying reader is
  • URLConnection (java.net)
    A connection to a URL for reading or writing. For HTTP connections, see HttpURLConnection for docume
  • Locale (java.util)
    Locale represents a language/country/variant combination. Locales are used to alter the presentatio
  • UUID (java.util)
    UUID is an immutable representation of a 128-bit universally unique identifier (UUID). There are mul
  • LogFactory (org.apache.commons.logging)
    Factory for creating Log instances, with discovery and configuration features similar to that employ
  • Logger (org.apache.log4j)
    This is the central class in the log4j package. Most logging operations, except configuration, are d
  • 21 Best IntelliJ Plugins
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