org.compass.needle.terracotta
Class TerracottaLockFactory

java.lang.Object
  extended by org.apache.lucene.store.LockFactory
      extended by org.compass.needle.terracotta.TerracottaLockFactory

public class TerracottaLockFactory
extends LockFactory

A lock factory that creates TerracottaLocks. Uses a concurrent hash map to hold the locks.

Author:
kimchy

Field Summary
(package private) static Object MARK
           
 
Fields inherited from class org.apache.lucene.store.LockFactory
lockPrefix
 
Constructor Summary
TerracottaLockFactory()
           
TerracottaLockFactory(String prefix)
           
 
Method Summary
 void clearLock(String lockName)
           
 Lock makeLock(String lockName)
           
 
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

MARK

static final Object MARK
Constructor Detail

TerracottaLockFactory

public TerracottaLockFactory()

TerracottaLockFactory

public TerracottaLockFactory(String prefix)
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


Copyright (c) 2004-2009 The Compass Project.