net.sf.lucis.core
Interface Store<T>

Type Parameters:
T - Checkpoint type.
All Superinterfaces:
DirectoryProvider
All Known Implementing Classes:
FSStore, RAMStore

public interface Store<T>
extends DirectoryProvider

A store is the combination of a Lucene directory and a checkpoint.

Author:
Andres Rodriguez

Method Summary
 T getCheckpoint()
          Returns the current checkpoint.
 void setCheckpoint(T checkpoint)
          Sets the current checkpoint.
 
Methods inherited from interface net.sf.lucis.core.DirectoryProvider
getDirectory, getManagedReader, getVersion
 

Method Detail

getCheckpoint

T getCheckpoint()
                throws StoreException
Returns the current checkpoint.

Returns:
The current checkpoint.
Throws:
StoreException

setCheckpoint

void setCheckpoint(T checkpoint)
                   throws StoreException
Sets the current checkpoint.

Parameters:
checkpoint - Checkpoint to set. Must not be null.
Throws:
Exception
StoreException


Copyright © 2013. All Rights Reserved.