Class LocalBlobstoreService
java.lang.Object
com.google.appengine.tools.development.AbstractLocalRpcService
com.google.appengine.api.blobstore.dev.LocalBlobstoreService
- All Implemented Interfaces:
LocalRpcService
@AutoService(LocalRpcService.class)
public final class LocalBlobstoreService
extends AbstractLocalRpcService
Implementation of local blobstore service.
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.google.appengine.tools.development.LocalRpcService
LocalRpcService.Status -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateEncodedGoogleStorageKey(LocalRpcService.Status status, BlobstoreServicePb.CreateEncodedGoogleStorageKeyRequest request) com.google.apphosting.base.protos.api.ApiBasePb.VoidProtodeleteBlob(LocalRpcService.Status status, BlobstoreServicePb.DeleteBlobRequest request) fetchData(LocalRpcService.Status status, BlobstoreServicePb.FetchDataRequest request) Returns the package for the service, for example, "datastore_v3".voidinit(LocalServiceContext context, Map<String, String> properties) Initializes the service with a set of configuration properties.voidstart()Puts a new service into "serving" mode.voidstop()Stops the service, releasing all of its resources.Methods inherited from class com.google.appengine.tools.development.AbstractLocalRpcService
getDefaultDeadline, getMaxApiRequestSize, getMaximumDeadline
-
Field Details
-
BACKING_STORE_PROPERTY
Where to read/store the blobs from/to.- See Also:
-
NO_STORAGE_PROPERTY
True to put the blobstore into "memory-only" mode.- See Also:
-
PACKAGE
The package name for this service.- See Also:
-
GOOGLE_STORAGE_KEY_PREFIX
The prefix we apply to encoded Google Storage BlobKeys- See Also:
-
-
Constructor Details
-
LocalBlobstoreService
public LocalBlobstoreService()
-
-
Method Details
-
getPackage
Description copied from interface:LocalRpcServiceReturns the package for the service, for example, "datastore_v3".- Returns:
- a not
nullpackage name.
-
init
Description copied from interface:LocalRpcServiceInitializes the service with a set of configuration properties. Must be called before a service isstarted.- Specified by:
initin interfaceLocalRpcService- Overrides:
initin classAbstractLocalRpcService- Parameters:
context- A context object for the applicationproperties- A read-onlyMapof properties.
-
start
public void start()Description copied from interface:LocalRpcServicePuts a new service into "serving" mode. Aside from setting properties, the service is not functional until after having been started.- Specified by:
startin interfaceLocalRpcService- Overrides:
startin classAbstractLocalRpcService
-
stop
public void stop()Description copied from interface:LocalRpcServiceStops the service, releasing all of its resources.- Specified by:
stopin interfaceLocalRpcService- Overrides:
stopin classAbstractLocalRpcService
-
createUploadURL
public BlobstoreServicePb.CreateUploadURLResponse createUploadURL(LocalRpcService.Status status, BlobstoreServicePb.CreateUploadURLRequest request) -
deleteBlob
public com.google.apphosting.base.protos.api.ApiBasePb.VoidProto deleteBlob(LocalRpcService.Status status, BlobstoreServicePb.DeleteBlobRequest request) -
fetchData
public BlobstoreServicePb.FetchDataResponse fetchData(LocalRpcService.Status status, BlobstoreServicePb.FetchDataRequest request) -
createEncodedGoogleStorageKey
public BlobstoreServicePb.CreateEncodedGoogleStorageKeyResponse createEncodedGoogleStorageKey(LocalRpcService.Status status, BlobstoreServicePb.CreateEncodedGoogleStorageKeyRequest request)
-