Class FirstCreateStrategy

  • All Implemented Interfaces:
    NodeAllocationStrategy

    public class FirstCreateStrategy
    extends AbstractNodeAllocationStrategy
    This strategy creates one wal node for each unique identifier. In other words, each identifier (like data region) has its own wal node.
    • Constructor Detail

      • FirstCreateStrategy

        public FirstCreateStrategy()
    • Method Detail

      • applyForWALNode

        public IWALNode applyForWALNode​(java.lang.String applicantUniqueId)
        Description copied from interface: NodeAllocationStrategy
        Allocate one wal node for the applicant
      • registerWALNode

        public void registerWALNode​(java.lang.String applicantUniqueId,
                                    java.lang.String logDirectory,
                                    long startFileVersion,
                                    long startSearchIndex)
      • deleteWALNode

        public void deleteWALNode​(java.lang.String applicantUniqueId)
      • getNodesSnapshot

        public java.util.List<WALNode> getNodesSnapshot()
        Description copied from interface: NodeAllocationStrategy
        Get all wal nodes
      • clear

        public void clear()