FileDocCategorySizeDatePackage
StorageCoreControllerStub.javaAPI DocApache Lucene 2.1.05820Wed Feb 14 10:46:02 GMT 2007org.apache.lucene.gdata.storage.lucenestorage

StorageCoreControllerStub

public class StorageCoreControllerStub extends StorageCoreController
author
Simon Willnauer

Fields Summary
private final org.apache.lucene.gdata.storage.IDGenerator
idGenerator
Constructors Summary
public StorageCoreControllerStub()

        try{
            this.idGenerator = new IDGenerator(5);
        }catch (NoSuchAlgorithmException e) {
            throw new StorageException(e);
        }
       
    
Methods Summary
protected org.apache.lucene.index.IndexModifiercreateIndexModifier()

see
org.apache.lucene.gdata.storage.lucenestorage.StorageCoreController#createIndexModifier()

        
        return null;
    
public voiddestroy()

see
org.apache.lucene.gdata.storage.lucenestorage.StorageCoreController#destroy()

        
        this.idGenerator.stopIDGenerator();
    
public voidforceWrite()

see
org.apache.lucene.gdata.storage.lucenestorage.StorageCoreController#forceWrite()

        
        
    
public intgetBufferSize()

see
org.apache.lucene.gdata.storage.lucenestorage.StorageCoreController#getBufferSize()

        
        return 1;
    
protected org.apache.lucene.store.DirectorygetDirectory()

see
org.apache.lucene.gdata.storage.lucenestorage.StorageCoreController#getDirectory()

        
        return null;
    
public intgetPersistFactor()

see
org.apache.lucene.gdata.storage.lucenestorage.StorageCoreController#getPersistFactor()

        
        return 1;
    
public org.apache.lucene.gdata.storage.StoragegetStorage()

see
org.apache.lucene.gdata.storage.lucenestorage.StorageCoreController#getStorage()

        
        return new StorageImplementation();
    
protected StorageModifiergetStorageModifier()

see
org.apache.lucene.gdata.storage.lucenestorage.StorageCoreController#getStorageModifier()

        
        try {
            return new StorageModifierStub();
        } catch (IOException e) {
            
            e.printStackTrace();
        } catch (StorageException e) {
            
            e.printStackTrace();
        }
        return null;
    
protected org.apache.lucene.gdata.utils.ReferenceCountergetStorageQuery()

see
org.apache.lucene.gdata.storage.lucenestorage.StorageCoreController#getStorageQuery()

        
        ReferenceCounter<StorageQuery> retVal =  new ReferenceCounter<StorageQuery>(new StorageQueryStub(null,null)){

            @Override
            protected void close() {
                //
            }
            
        };
        retVal.increamentReference();
        retVal.increamentReference();
        return retVal;
        
    
public voidinitialize()

see
org.apache.lucene.gdata.storage.lucenestorage.StorageCoreController#initialize()

//        this.setStorageDir(new RAMDirectory());
//        super.initialize();
    
protected voidregisterNewStorageQuery()

see
org.apache.lucene.gdata.storage.lucenestorage.StorageCoreController#registerNewStorageQuery()

        
       
    
public synchronized java.lang.StringreleaseId()

see
org.apache.lucene.gdata.storage.lucenestorage.StorageCoreController#releaseId()

        
        try {
            return this.idGenerator.getUID();
        } catch (InterruptedException e) {
            
          throw new StorageException(e);
        } 
    
protected StorageBufferreleaseNewStorageBuffer()

see
org.apache.lucene.gdata.storage.lucenestorage.StorageCoreController#releaseNewStorageBuffer()

        
        return null;
    
public voidsetBufferSize(int storageBufferSize)

see
org.apache.lucene.gdata.storage.lucenestorage.StorageCoreController#setBufferSize(int)

        
        
    
public voidsetPersistFactor(int storagePersistFactor)

see
org.apache.lucene.gdata.storage.lucenestorage.StorageCoreController#setPersistFactor(int)