org.apache.lucene.store.jdbc.lock
Interface JdbcLock

All Known Implementing Classes:
NoOpLock, PhantomReadLock, SelectForUpdateLock

public interface JdbcLock

An extension insterface for Lucene Lock class.

Author:
kimchy

Method Summary
 void configure(JdbcDirectory jdbcDirectory, String name)
          Configures the lock.
 void initializeDatabase(JdbcDirectory jdbcDirectory)
          Called without configure.
 

Method Detail

configure

void configure(JdbcDirectory jdbcDirectory,
               String name)
               throws IOException
Configures the lock. Called just after the lock is instantiated.

Parameters:
jdbcDirectory - The directory using the lock
name - The name of the lock
Throws:
IOException

initializeDatabase

void initializeDatabase(JdbcDirectory jdbcDirectory)
                        throws IOException
Called without configure. Should initialize a creates database.

Parameters:
jdbcDirectory - The directory owning the lock
Throws:
IOException


Copyright (c) 2004-2009 The Compass Project.