public interface ObjectStore
This interface is used by both the Repository (which provides object
storage remotely via a JSON protocol) and ObjDBLocal
(which provides object storage locally via
direct access to an object database). In either case, they are configured
with the fully qualified class name of an implementor of this interface,
which they instantiate at startup time.
Modifier and Type | Method and Description |
---|---|
void |
getObjects(RequestDesc[] what,
GetResultHandler handler)
Service a 'get' request.
|
void |
initialize(BootProperties props,
String propRoot,
Trace trace)
Do whatever initialization is required to begin serving objects.
|
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.
|
void initialize(BootProperties props, String propRoot, Trace trace)
props
- Properties describing configuration information.propRoot
- Prefix string for selecting relevant properties.trace
- Trace object for use in logging.void getObjects(RequestDesc[] what, GetResultHandler handler)
what
- The objects sought.handler
- Object to receive results (i.e., the objects retrieved
or failure indicators), when available.void queryObjects(QueryDesc[] what, GetResultHandler handler)
what
- Query templates for the objects sought.handler
- Object to receive results (i.e., the objects retrieved
or failure indicators), when available.void putObjects(PutDesc[] what, RequestResultHandler handler)
what
- The objects to be written.handler
- Object to receive results (i.e., operation success or
failure indicators), when available.void removeObjects(RequestDesc[] what, RequestResultHandler handler)
what
- The objects to be removed.handler
- Object to receive results (i.e., operation success or
failure indicators), when available.void shutdown()
void updateObjects(UpdateDesc[] what, RequestResultHandler handler)
what
- The objects to be written.handler
- Object to receive results (i.e., operation success or
failure indicators), when available.Copyright © 2017. All rights reserved.