Codota Logo
CommitLog.<init>
Code IndexAdd Codota to your IDE (free)

How to use
org.apache.rocketmq.store.CommitLog
constructor

Best Java code snippets using org.apache.rocketmq.store.CommitLog.<init> (Showing top 3 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
SimpleDateFormat s =
  • Codota IconString pattern;new SimpleDateFormat(pattern)
  • Codota IconString template;Locale locale;new SimpleDateFormat(template, locale)
  • Codota Iconnew SimpleDateFormat()
  • Smart code suggestions by Codota
}
origin: apache/rocketmq

public DefaultMessageStore(final MessageStoreConfig messageStoreConfig, final BrokerStatsManager brokerStatsManager,
  final MessageArrivingListener messageArrivingListener, final BrokerConfig brokerConfig) throws IOException {
  this.messageArrivingListener = messageArrivingListener;
  this.brokerConfig = brokerConfig;
  this.messageStoreConfig = messageStoreConfig;
  this.brokerStatsManager = brokerStatsManager;
  this.allocateMappedFileService = new AllocateMappedFileService(this);
  this.commitLog = new CommitLog(this);
  this.consumeQueueTable = new ConcurrentHashMap<>(32);
  this.flushConsumeQueueService = new FlushConsumeQueueService();
  this.cleanCommitLogService = new CleanCommitLogService();
  this.cleanConsumeQueueService = new CleanConsumeQueueService();
  this.storeStatsService = new StoreStatsService();
  this.indexService = new IndexService(this);
  this.haService = new HAService(this);
  this.reputMessageService = new ReputMessageService();
  this.scheduleMessageService = new ScheduleMessageService(this);
  this.transientStorePool = new TransientStorePool(messageStoreConfig);
  if (messageStoreConfig.isTransientStorePoolEnable()) {
    this.transientStorePool.init();
  }
  this.allocateMappedFileService.start();
  this.indexService.start();
  this.dispatcherList = new LinkedList<>();
  this.dispatcherList.addLast(new CommitLogDispatcherBuildConsumeQueue());
  this.dispatcherList.addLast(new CommitLogDispatcherBuildIndex());
  File file = new File(StorePathConfigHelper.getLockFile(messageStoreConfig.getStorePathRootDir()));
  MappedFile.ensureDirOK(file.getParent());
  lockFile = new RandomAccessFile(file, "rw");
}
origin: didi/DDMQ

public DefaultMessageStore(final MessageStoreConfig messageStoreConfig, final BrokerStatsManager brokerStatsManager,
  final MessageArrivingListener messageArrivingListener, final BrokerConfig brokerConfig) throws IOException {
  this.messageArrivingListener = messageArrivingListener;
  this.brokerConfig = brokerConfig;
  this.messageStoreConfig = messageStoreConfig;
  this.brokerStatsManager = brokerStatsManager;
  this.allocateMappedFileService = new AllocateMappedFileService(this);
  this.commitLog = new CommitLog(this);
  this.consumeQueueTable = new ConcurrentHashMap<>(32);
  this.flushConsumeQueueService = new FlushConsumeQueueService();
  this.cleanCommitLogService = new CleanCommitLogService();
  this.cleanConsumeQueueService = new CleanConsumeQueueService();
  this.storeStatsService = new StoreStatsService();
  this.indexService = new IndexService(this);
  this.haService = new HAService(this);
  this.reputMessageService = new ReputMessageService();
  this.scheduleMessageService = new ScheduleMessageService(this);
  this.transientStorePool = new TransientStorePool(messageStoreConfig);
  if (messageStoreConfig.isTransientStorePoolEnable()) {
    this.transientStorePool.init();
  }
  this.allocateMappedFileService.start();
  this.indexService.start();
  this.dispatcherList = new LinkedList<>();
  this.dispatcherList.addLast(new CommitLogDispatcherBuildConsumeQueue());
  this.dispatcherList.addLast(new CommitLogDispatcherBuildIndex());
  File file = new File(StorePathConfigHelper.getLockFile(messageStoreConfig.getStorePathRootDir()));
  MappedFile.ensureDirOK(file.getParent());
  lockFile = new RandomAccessFile(file, "rw");
}
origin: org.apache.rocketmq/rocketmq-store

public DefaultMessageStore(final MessageStoreConfig messageStoreConfig, final BrokerStatsManager brokerStatsManager,
  final MessageArrivingListener messageArrivingListener, final BrokerConfig brokerConfig) throws IOException {
  this.messageArrivingListener = messageArrivingListener;
  this.brokerConfig = brokerConfig;
  this.messageStoreConfig = messageStoreConfig;
  this.brokerStatsManager = brokerStatsManager;
  this.allocateMappedFileService = new AllocateMappedFileService(this);
  this.commitLog = new CommitLog(this);
  this.consumeQueueTable = new ConcurrentHashMap<>(32);
  this.flushConsumeQueueService = new FlushConsumeQueueService();
  this.cleanCommitLogService = new CleanCommitLogService();
  this.cleanConsumeQueueService = new CleanConsumeQueueService();
  this.storeStatsService = new StoreStatsService();
  this.indexService = new IndexService(this);
  this.haService = new HAService(this);
  this.reputMessageService = new ReputMessageService();
  this.scheduleMessageService = new ScheduleMessageService(this);
  this.transientStorePool = new TransientStorePool(messageStoreConfig);
  if (messageStoreConfig.isTransientStorePoolEnable()) {
    this.transientStorePool.init();
  }
  this.allocateMappedFileService.start();
  this.indexService.start();
  this.dispatcherList = new LinkedList<>();
  this.dispatcherList.addLast(new CommitLogDispatcherBuildConsumeQueue());
  this.dispatcherList.addLast(new CommitLogDispatcherBuildIndex());
  File file = new File(StorePathConfigHelper.getLockFile(messageStoreConfig.getStorePathRootDir()));
  MappedFile.ensureDirOK(file.getParent());
  lockFile = new RandomAccessFile(file, "rw");
}
org.apache.rocketmq.storeCommitLog<init>

Popular methods of CommitLog

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

Popular in Java

  • Finding current android device location
  • startActivity (Activity)
  • getSupportFragmentManager (FragmentActivity)
  • addToBackStack (FragmentTransaction)
  • LinkedHashMap (java.util)
    Hash table and linked list implementation of the Map interface, with predictable iteration order. Th
  • Scanner (java.util)
    A parser that parses a text string of primitive types and strings with the help of regular expressio
  • BlockingQueue (java.util.concurrent)
    A java.util.Queue that additionally supports operations that wait for the queue to become non-empty
  • Notification (javax.management)
  • JPanel (javax.swing)
  • JTable (javax.swing)
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now