congrats Icon
New! Tabnine Pro 14-day free trial
Start a free trial
Tabnine Logo
CommitLog.getBeginTimeInLock
Code IndexAdd Tabnine to your IDE (free)

How to use
getBeginTimeInLock
method
in
org.apache.rocketmq.store.CommitLog

Best Java code snippets using org.apache.rocketmq.store.CommitLog.getBeginTimeInLock (Showing top 6 results out of 315)

origin: apache/rocketmq

  @Override
  public void run() {
    if (DefaultMessageStore.this.getMessageStoreConfig().isDebugLockEnable()) {
      try {
        if (DefaultMessageStore.this.commitLog.getBeginTimeInLock() != 0) {
          long lockTime = System.currentTimeMillis() - DefaultMessageStore.this.commitLog.getBeginTimeInLock();
          if (lockTime > 1000 && lockTime < 10000000) {
            String stack = UtilAll.jstack();
            final String fileName = System.getProperty("user.home") + File.separator + "debug/lock/stack-"
              + DefaultMessageStore.this.commitLog.getBeginTimeInLock() + "-" + lockTime;
            MixAll.string2FileNotSafe(stack, fileName);
          }
        }
      } catch (Exception e) {
      }
    }
  }
}, 1, 1, TimeUnit.SECONDS);
origin: apache/rocketmq

@Override
public boolean isOSPageCacheBusy() {
  long begin = this.getCommitLog().getBeginTimeInLock();
  long diff = this.systemClock.now() - begin;
  return diff < 10000000
      && diff > this.messageStoreConfig.getOsPageCacheBusyTimeOutMills();
}
origin: didi/DDMQ

  @Override
  public void run() {
    if (DefaultMessageStore.this.getMessageStoreConfig().isDebugLockEnable()) {
      try {
        if (DefaultMessageStore.this.commitLog.getBeginTimeInLock() != 0) {
          long lockTime = System.currentTimeMillis() - DefaultMessageStore.this.commitLog.getBeginTimeInLock();
          if (lockTime > 1000 && lockTime < 10000000) {
            String stack = UtilAll.jstack();
            final String fileName = System.getProperty("user.home") + File.separator + "debug/lock/stack-"
              + DefaultMessageStore.this.commitLog.getBeginTimeInLock() + "-" + lockTime;
            MixAll.string2FileNotSafe(stack, fileName);
          }
        }
      } catch (Exception e) {
      }
    }
  }
}, 1, 1, TimeUnit.SECONDS);
origin: didi/DDMQ

@Override
public boolean isOSPageCacheBusy() {
  long begin = this.getCommitLog().getBeginTimeInLock();
  long diff = this.systemClock.now() - begin;
  return diff < 10000000
    && diff > this.messageStoreConfig.getOsPageCacheBusyTimeOutMills();
}
origin: org.apache.rocketmq/rocketmq-store

  @Override
  public void run() {
    if (DefaultMessageStore.this.getMessageStoreConfig().isDebugLockEnable()) {
      try {
        if (DefaultMessageStore.this.commitLog.getBeginTimeInLock() != 0) {
          long lockTime = System.currentTimeMillis() - DefaultMessageStore.this.commitLog.getBeginTimeInLock();
          if (lockTime > 1000 && lockTime < 10000000) {
            String stack = UtilAll.jstack();
            final String fileName = System.getProperty("user.home") + File.separator + "debug/lock/stack-"
              + DefaultMessageStore.this.commitLog.getBeginTimeInLock() + "-" + lockTime;
            MixAll.string2FileNotSafe(stack, fileName);
          }
        }
      } catch (Exception e) {
      }
    }
  }
}, 1, 1, TimeUnit.SECONDS);
origin: org.apache.rocketmq/rocketmq-store

@Override
public boolean isOSPageCacheBusy() {
  long begin = this.getCommitLog().getBeginTimeInLock();
  long diff = this.systemClock.now() - begin;
  return diff < 10000000
      && diff > this.messageStoreConfig.getOsPageCacheBusyTimeOutMills();
}
org.apache.rocketmq.storeCommitLoggetBeginTimeInLock

Popular methods of CommitLog

  • <init>
  • appendData
  • calMsgLength
  • checkMessageAndReturnSize
    check the message and returns the message size
  • checkSelf
  • deleteExpiredFile
  • destroy
  • doNothingForDeadCode
  • flush
  • getConfirmOffset
  • getData
  • getMaxOffset
  • getData,
  • getMaxOffset,
  • getMessage,
  • getMinOffset,
  • handleDiskFlush,
  • handleHA,
  • isMappedFileMatchedRecover,
  • load,
  • lockTimeMills

Popular in Java

  • Finding current android device location
  • scheduleAtFixedRate (ScheduledExecutorService)
  • addToBackStack (FragmentTransaction)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • BufferedInputStream (java.io)
    A BufferedInputStream adds functionality to another input stream-namely, the ability to buffer the i
  • ServerSocket (java.net)
    This class represents a server-side socket that waits for incoming client connections. A ServerSocke
  • Hashtable (java.util)
    A plug-in replacement for JDK1.5 java.util.Hashtable. This version is based on org.cliffc.high_scale
  • UUID (java.util)
    UUID is an immutable representation of a 128-bit universally unique identifier (UUID). There are mul
  • XPath (javax.xml.xpath)
    XPath provides access to the XPath evaluation environment and expressions. Evaluation of XPath Expr
  • Logger (org.apache.log4j)
    This is the central class in the log4j package. Most logging operations, except configuration, are d
  • 14 Best Plugins for Eclipse
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