org.apache.solr.store.hdfs
Class HdfsLockFactory

java.lang.Object
  extended by org.apache.lucene.store.LockFactory
      extended by org.apache.solr.store.hdfs.HdfsLockFactory

public class HdfsLockFactory
extends LockFactory


Field Summary
static org.slf4j.Logger log
           
 
Fields inherited from class org.apache.lucene.store.LockFactory
lockPrefix
 
Constructor Summary
HdfsLockFactory(org.apache.hadoop.fs.Path lockPath, org.apache.hadoop.conf.Configuration configuration)
           
 
Method Summary
 void clearLock(String lockName)
           
 org.apache.hadoop.fs.Path getLockPath()
           
 Lock makeLock(String lockName)
           
 void setLockPath(org.apache.hadoop.fs.Path lockPath)
           
 
Methods inherited from class org.apache.lucene.store.LockFactory
getLockPrefix, setLockPrefix
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

public static org.slf4j.Logger log
Constructor Detail

HdfsLockFactory

public HdfsLockFactory(org.apache.hadoop.fs.Path lockPath,
                       org.apache.hadoop.conf.Configuration configuration)
Method Detail

makeLock

public Lock makeLock(String lockName)
Specified by:
makeLock in class LockFactory

clearLock

public void clearLock(String lockName)
               throws IOException
Specified by:
clearLock in class LockFactory
Throws:
IOException

getLockPath

public org.apache.hadoop.fs.Path getLockPath()

setLockPath

public void setLockPath(org.apache.hadoop.fs.Path lockPath)


Copyright © 2000-2014 Apache Software Foundation. All Rights Reserved.