org.compass.needle.gigaspaces.store
Class GigaSpaceLockFactory

java.lang.Object
  extended by org.apache.lucene.store.LockFactory
      extended by org.compass.needle.gigaspaces.store.GigaSpaceLockFactory

public class GigaSpaceLockFactory
extends LockFactory

A locak factory using a FileLock entry as a mark that a certain lock is obtained.

Author:
kimchy

Nested Class Summary
 class GigaSpaceLockFactory.GigaSpaceLock
           
 
Field Summary
 
Fields inherited from class org.apache.lucene.store.LockFactory
lockPrefix
 
Constructor Summary
GigaSpaceLockFactory(com.j_spaces.core.IJSpace space, String indexName)
           
 
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
 

Constructor Detail

GigaSpaceLockFactory

public GigaSpaceLockFactory(com.j_spaces.core.IJSpace space,
                            String indexName)
Method Detail

clearLock

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

makeLock

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


Copyright (c) 2004-2009 The Compass Project.