|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object AbstractLocalRpcService com.google.appengine.api.datastore.dev.LocalDatastoreService
@ServiceProvider(value=) public final class LocalDatastoreService
A local implementation of the Datastore service interface. This is a memory-based implementation which can persist itself to disk through a batch operation. TODO(tobyr) Improve this implementation such that it's backed by something like Derby (which is bundled with the JDK), perhaps in "iteration 2".
Field Summary | |
---|---|
static java.lang.String |
BACKING_STORE_PROPERTY
Where to read/store the datastore from/to. |
static java.lang.String |
HIGH_REP_JOB_POLICY_CLASS_PROPERTY
The fully-qualifed name of a class that implements HighRepJobPolicy and has a no-arg constructor. |
static java.lang.String |
MAX_QUERY_LIFETIME_PROPERTY
How long a query can stay "live" before we expire it. |
static java.lang.String |
MAX_TRANSACTION_LIFETIME_PROPERTY
How long a transaction can stay "live" before we expire it. |
static java.lang.String |
NO_INDEX_AUTO_GEN_PROP
True to prevent the datastore from writing com.google.apphosting.utils.config.IndexesXmlReader#GENERATED_INDEX_FILENAME . |
static java.lang.String |
NO_STORAGE_PROPERTY
True to put the datastore into "memory-only" mode. |
static java.lang.String |
PACKAGE
The package name for this service. |
static java.lang.String |
STORE_DELAY_PROPERTY
How long to wait before updating the persistent store in milliseconds. |
Constructor Summary | |
---|---|
LocalDatastoreService()
|
Method Summary | ||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
VoidProto |
addActions(Status status,
TaskQueueBulkAddRequest request)
PACKAGEpublic static final java.lang.String PACKAGE
MAX_QUERY_LIFETIME_PROPERTYpublic static final java.lang.String MAX_QUERY_LIFETIME_PROPERTY
MAX_TRANSACTION_LIFETIME_PROPERTYpublic static final java.lang.String MAX_TRANSACTION_LIFETIME_PROPERTY
STORE_DELAY_PROPERTYpublic static final java.lang.String STORE_DELAY_PROPERTY
BACKING_STORE_PROPERTYpublic static final java.lang.String BACKING_STORE_PROPERTY
NO_INDEX_AUTO_GEN_PROPpublic static final java.lang.String NO_INDEX_AUTO_GEN_PROP
NO_STORAGE_PROPERTYpublic static final java.lang.String NO_STORAGE_PROPERTY
HIGH_REP_JOB_POLICY_CLASS_PROPERTYpublic static final java.lang.String HIGH_REP_JOB_POLICY_CLASS_PROPERTY
LocalDatastoreServicepublic LocalDatastoreService()
clearProfilespublic void clearProfiles()
initpublic void init(LocalServiceContext context, java.util.Map<java.lang.String,java.lang.String> properties) startpublic void start() stoppublic void stop() setMaxQueryLifetimepublic void setMaxQueryLifetime(int milliseconds) setMaxTransactionLifetimepublic void setMaxTransactionLifetime(int milliseconds) setBackingStorepublic void setBackingStore(java.lang.String backingStore) setStoreDelaypublic void setStoreDelay(int delayMs) setNoStoragepublic void setNoStorage(boolean noStorage) getPackagepublic java.lang.String getPackage() getputputImplpublic PutResponse putImpl(Status status, PutRequest request) deleteaddActionsdeleteImplpublic DeleteResponse deleteImpl(Status status, DeleteRequest request) runQuerynextcountpublic Integer64Proto count(Status status, Query request) deleteCursorpublic VoidProto deleteCursor(Status status, Cursor request) beginTransactioncommitrollbackcreateIndexpublic Integer64Proto createIndex(Status status, CompositeIndex req) updateIndexpublic VoidProto updateIndex(Status status, CompositeIndex req) getIndicespublic CompositeIndices getIndices(Status status, StringProto req) deleteIndexpublic VoidProto deleteIndex(Status status, CompositeIndex req) allocateIdsgetDefaultDeadlinepublic java.lang.Double getDefaultDeadline(boolean isOfflineRequest) getMaximumDeadlinepublic java.lang.Double getMaximumDeadline(boolean isOfflineRequest)
|