Exemple #1
0
 public Lock getINodeLock(
     NameNode nameNode,
     TransactionLockTypes.INodeLockType lockType,
     TransactionLockTypes.INodeResolveType resolveType,
     String... paths) {
   return new INodeLock(
       lockType, resolveType, nameNode.getActiveNameNodes().getActiveNodes(), paths);
 }
Exemple #2
0
 public Lock getLegacyRenameINodeLock(
     NameNode nameNode,
     TransactionLockTypes.INodeLockType lockType,
     TransactionLockTypes.INodeResolveType resolveType,
     String src,
     String dst) {
   return new RenameINodeLock(
       lockType, resolveType, nameNode.getActiveNameNodes().getActiveNodes(), src, dst, true);
 }
Exemple #3
0
 public Lock getRenameINodeLock(
     NameNode nameNode,
     TransactionLockTypes.INodeLockType lockType,
     TransactionLockTypes.INodeResolveType resolveType,
     boolean ignoreLocalSubtreeLocks,
     String src,
     String dst) {
   return new RenameINodeLock(
       lockType,
       resolveType,
       ignoreLocalSubtreeLocks,
       nameNode.getId(),
       nameNode.getActiveNameNodes().getActiveNodes(),
       src,
       dst);
 }
Exemple #4
0
 public Lock getINodeLock(
     NameNode nameNode,
     TransactionLockTypes.INodeLockType lockType,
     TransactionLockTypes.INodeResolveType resolveType,
     boolean resolveLink,
     boolean ignoreLocalSubtreeLocks,
     String... paths) {
   return new INodeLock(
       lockType,
       resolveType,
       resolveLink,
       ignoreLocalSubtreeLocks,
       nameNode.getId(),
       nameNode.getActiveNameNodes().getActiveNodes(),
       paths);
 }