|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.elkoserver.objdb.store.filestore.FileObjectStore
public class FileObjectStore
A simple ObjectStore implementation that stores objects in text
files, one file per object. Each file contains a JSON-encoded
representation of the object it stores.
| Constructor Summary | |
|---|---|
FileObjectStore()
Constructor. |
|
| Method Summary | |
|---|---|
void |
getObjects(RequestDesc[] what,
GetResultHandler handler)
Service a 'get' request. |
void |
initialize(BootProperties props,
String propRoot,
Trace appTrace)
Do the initialization required to begin providing object store services. |
void |
putObjects(PutDesc[] what,
RequestResultHandler handler)
Service a 'put' request. |
void |
queryObjects(QueryDesc[] what,
GetResultHandler handler)
Service a 'query' request. |
void |
removeObjects(RequestDesc[] what,
RequestResultHandler handler)
Service a 'remove' request. |
void |
shutdown()
Do any work required immediately prior to shutting down the server. |
void |
updateObjects(UpdateDesc[] what,
RequestResultHandler handler)
Service an 'update' request. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public FileObjectStore()
initialize().
| Method Detail |
|---|
public void initialize(BootProperties props,
String propRoot,
Trace appTrace)
The property "propRoot.odb" should specify the pathname of the directory in which the object description files are stored.
initialize in interface ObjectStoreprops - Properties describing configuration information.propRoot - Prefix string for selecting relevant properties.appTrace - Trace object for use in logging.
public void getObjects(RequestDesc[] what,
GetResultHandler handler)
getObjects in interface ObjectStorewhat - The objects sought.handler - Object to receive results (i.e., the objects retrieved
or failure indicators), when available.
public void putObjects(PutDesc[] what,
RequestResultHandler handler)
putObjects in interface ObjectStorewhat - The objects to be written.handler - Object to receive results (i.e., operation success or
failure indicators), when available.
public void queryObjects(QueryDesc[] what,
GetResultHandler handler)
queryObjects in interface ObjectStorewhat - Query templates for the objects sought.handler - Object to receive results (i.e., the objects retrieved
or failure indicators), when available.
public void removeObjects(RequestDesc[] what,
RequestResultHandler handler)
removeObjects in interface ObjectStorewhat - The objects to be removed.handler - Object to receive results (i.e., operation success or
failure indicators), when available.public void shutdown()
shutdown in interface ObjectStore
public void updateObjects(UpdateDesc[] what,
RequestResultHandler handler)
updateObjects in interface ObjectStorewhat - The objects to be written.handler - Object to receive results (i.e., operation success or
failure indicators), when available.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||