FileDocCategorySizeDatePackage
StorageController.javaAPI DocApache Lucene 2.1.02710Wed Feb 14 10:46:04 GMT 2007org.apache.lucene.gdata.storage

StorageController

public interface StorageController implements org.apache.lucene.gdata.server.registry.ServerComponent
An interface to define a central storage controller acting as a Stroage Factory. The StroageController manages the storage logic. Subclasses of {@link StorageController} can be registered as {@link org.apache.lucene.gdata.server.registry.Component} in the {@link org.apache.lucene.gdata.server.registry.GDataServerRegistry}. A single instance of the contorller will be loaded and passed to clients via the lookup service.

This instances, registered in the registry must be thread save as they are shared between several clients

Each StroageController implementation must provide a super user {@link org.apache.lucene.gdata.data.GDataAccount} with all {@link org.apache.lucene.gdata.data.GDataAccount.AccountRole} set. This account must have the defined name administrator and a default password password. The password has to be updated by the server administrator before production use. To get the predefinded GDataAccount use {@link org.apache.lucene.gdata.data.GDataAccount#createAdminAccount()}

author
Simon Willnauer

Fields Summary
Constructors Summary
Methods Summary
public abstract voiddestroy()
Destroys the controller - this method is called by the registry when the context will be destroyed

public abstract StoragegetStorage()
Creates Storage instances to access the underlaying storage component

return
a storage instance
throws
StorageException - if the storage instance can not be created

public abstract java.lang.StringreleaseId()
Releases a new unique ID

return
- unique ID