Class RoundRobinStrategy
- java.lang.Object
-
- org.apache.iotdb.db.wal.allocation.AbstractNodeAllocationStrategy
-
- org.apache.iotdb.db.wal.allocation.RoundRobinStrategy
-
- All Implemented Interfaces:
NodeAllocationStrategy
public class RoundRobinStrategy extends AbstractNodeAllocationStrategy
This strategy creates n wal nodes and allocate them by round-robin strategy. In other words, several identifiers (like data regions) can share one wal node.
-
-
Field Summary
-
Fields inherited from class org.apache.iotdb.db.wal.allocation.AbstractNodeAllocationStrategy
folderManager
-
-
Constructor Summary
Constructors Constructor Description RoundRobinStrategy(int maxWalNodeNum)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IWALNodeapplyForWALNode(java.lang.String applicantUniqueId)Allocate one wal node for the applicantvoidclear()java.util.List<WALNode>getNodesSnapshot()Get all wal nodes-
Methods inherited from class org.apache.iotdb.db.wal.allocation.AbstractNodeAllocationStrategy
createWALNode, createWALNode, createWALNode
-
-
-
-
Method Detail
-
applyForWALNode
public IWALNode applyForWALNode(java.lang.String applicantUniqueId)
Description copied from interface:NodeAllocationStrategyAllocate one wal node for the applicant
-
getNodesSnapshot
public java.util.List<WALNode> getNodesSnapshot()
Description copied from interface:NodeAllocationStrategyGet all wal nodes
-
clear
public void clear()
-
-