org.compass.needle.coherence
Class InvocableCoherenceDirectory

java.lang.Object
  extended by org.apache.lucene.store.Directory
      extended by org.compass.needle.coherence.CoherenceDirectory
          extended by org.compass.needle.coherence.DataGridCoherenceDirectory
              extended by org.compass.needle.coherence.InvocableCoherenceDirectory

public class InvocableCoherenceDirectory
extends DataGridCoherenceDirectory

The invocable directory uses Coherence extended support for invocable cache services (not available at all editions).

Allow to better implement locking and batch deletions.

Author:
kimchy

Field Summary
 
Fields inherited from class org.compass.needle.coherence.DataGridCoherenceDirectory
DEFAULT_BUCKET_SIZE, DEFAULT_FLUSH_RATE
 
Fields inherited from class org.apache.lucene.store.Directory
lockFactory
 
Constructor Summary
InvocableCoherenceDirectory(com.tangosol.net.NamedCache cache, String indexName)
           
InvocableCoherenceDirectory(com.tangosol.net.NamedCache cache, String indexName, int bucketSize)
           
InvocableCoherenceDirectory(com.tangosol.net.NamedCache cache, String indexName, int bucketSize, int flushRate)
           
InvocableCoherenceDirectory(String cacheName)
           
InvocableCoherenceDirectory(String cacheName, String indexName)
           
InvocableCoherenceDirectory(String cacheName, String indexName, int bucketSize)
           
 
Method Summary
 void deleteContent()
           
 void deleteFile(String name)
           
protected  void doInit()
           
 
Methods inherited from class org.compass.needle.coherence.DataGridCoherenceDirectory
close, createOutput, fileExists, fileLength, fileModified, getBucketSize, getCache, getFileNameKeyExtractor, getFlushRate, getIndexName, getIndexNameEqualsFilter, getIndexNameKeyExtractor, getOnGoingIndexOutputs, getTypeKeyExtractor, list, openInput, renameFile, touchFile
 
Methods inherited from class org.apache.lucene.store.Directory
clearLock, copy, ensureOpen, getLockFactory, getLockID, makeLock, openInput, setLockFactory, sync
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InvocableCoherenceDirectory

public InvocableCoherenceDirectory(String cacheName)

InvocableCoherenceDirectory

public InvocableCoherenceDirectory(String cacheName,
                                   String indexName)

InvocableCoherenceDirectory

public InvocableCoherenceDirectory(String cacheName,
                                   String indexName,
                                   int bucketSize)

InvocableCoherenceDirectory

public InvocableCoherenceDirectory(com.tangosol.net.NamedCache cache,
                                   String indexName)

InvocableCoherenceDirectory

public InvocableCoherenceDirectory(com.tangosol.net.NamedCache cache,
                                   String indexName,
                                   int bucketSize)

InvocableCoherenceDirectory

public InvocableCoherenceDirectory(com.tangosol.net.NamedCache cache,
                                   String indexName,
                                   int bucketSize,
                                   int flushRate)
Method Detail

doInit

protected void doInit()
Overrides:
doInit in class DataGridCoherenceDirectory

deleteFile

public void deleteFile(String name)
                throws IOException
Overrides:
deleteFile in class DataGridCoherenceDirectory
Throws:
IOException

deleteContent

public void deleteContent()
Overrides:
deleteContent in class DataGridCoherenceDirectory


Copyright (c) 2004-2009 The Compass Project.