congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
CommitLog.<init>
Code IndexAdd Tabnine 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)

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

  • Start an intent from android
  • getSupportFragmentManager (FragmentActivity)
  • getSystemService (Context)
  • findViewById (Activity)
  • Container (java.awt)
    A generic Abstract Window Toolkit(AWT) container object is a component that can contain other AWT co
  • Iterator (java.util)
    An iterator over a sequence of objects, such as a collection.If a collection has been changed since
  • Properties (java.util)
    A Properties object is a Hashtable where the keys and values must be Strings. Each property can have
  • UUID (java.util)
    UUID is an immutable representation of a 128-bit universally unique identifier (UUID). There are mul
  • ReentrantLock (java.util.concurrent.locks)
    A reentrant mutual exclusion Lock with the same basic behavior and semantics as the implicit monitor
  • Get (org.apache.hadoop.hbase.client)
    Used to perform Get operations on a single row. To get everything for a row, instantiate a Get objec
  • Top Sublime Text plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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