org.compass.needle.gigaspaces.store
Class GigaSpaceLockFactoryProvider

java.lang.Object
  extended by org.compass.needle.gigaspaces.store.GigaSpaceLockFactoryProvider
All Implemented Interfaces:
LockFactoryProvider

public class GigaSpaceLockFactoryProvider
extends Object
implements LockFactoryProvider

A general lock factory provider based on GigaSpaces. Can be used as a distributed lock manager for other storage systems then GigaSpaces.

Author:
kimchy
See Also:
GigaSpaceLockFactory

Constructor Summary
GigaSpaceLockFactoryProvider()
           
 
Method Summary
 LockFactory createLockFactory(String path, String subContext, String subIndex, CompassSettings settings)
          Creates the a lock factory.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GigaSpaceLockFactoryProvider

public GigaSpaceLockFactoryProvider()
Method Detail

createLockFactory

public LockFactory createLockFactory(String path,
                                     String subContext,
                                     String subIndex,
                                     CompassSettings settings)
                              throws SearchEngineException
Description copied from interface: LockFactoryProvider
Creates the a lock factory.

Specified by:
createLockFactory in interface LockFactoryProvider
Parameters:
path - The path the lock factory will work with. Does not have to be an actual file system path.
subContext - The sub context the index is created with.
subIndex - The sub index within the index (under the sub context).
settings - Additional configuration settings
Returns:
The actual lock factory
Throws:
SearchEngineException


Copyright (c) 2004-2009 The Compass Project.