|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface StorageController
An interface to define a central storage controller acting as a
Stroage Factory. The StroageController manages the
storage logic. Subclasses of StorageController
can be registered as
Component
in the
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
GDataAccount
with all
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 GDataAccount.createAdminAccount()
Method Summary | |
---|---|
void |
destroy()
Destroys the controller - this method is called by the registry when the context will be destroyed |
Storage |
getStorage()
Creates Storage instances to access the underlaying storage component |
String |
releaseId()
Releases a new unique ID |
Methods inherited from interface org.apache.lucene.gdata.server.registry.ServerComponent |
---|
initialize |
Method Detail |
---|
void destroy()
destroy
in interface ServerComponent
Storage getStorage() throws StorageException
StorageException
- -
if the storage instance can not be createdString releaseId()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |