Class LocalSearchService
java.lang.Object
com.google.appengine.tools.development.AbstractLocalRpcService
com.google.appengine.api.search.dev.LocalSearchService
- All Implemented Interfaces:
LocalRpcService
A search service implementation when running appengine on a local machine.
-
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 TypeMethodDescriptioncom.google.appengine.api.search.proto.SearchServicePb.DeleteDocumentResponsedeleteDocument(LocalRpcService.Status status, com.google.appengine.api.search.proto.SearchServicePb.DeleteDocumentRequest req) com.google.appengine.api.search.proto.SearchServicePb.DeleteDocumentResponsedeleteDocumentForApp(String appId, String indexId, String docId) com.google.appengine.api.search.proto.SearchServicePb.DeleteSchemaResponsedeleteSchema(Object object, com.google.appengine.api.search.proto.SearchServicePb.DeleteSchemaRequest request) Returns the package for the service, for example, "datastore_v3".com.google.appengine.api.search.proto.SearchServicePb.IndexDocumentResponseindexDocument(LocalRpcService.Status status, com.google.appengine.api.search.proto.SearchServicePb.IndexDocumentRequest req) com.google.appengine.api.search.proto.SearchServicePb.IndexDocumentResponseindexDocumentForApp(String appId, String indexId, com.google.apphosting.api.search.DocumentPb.Document doc) voidinit(LocalServiceContext context, Map<String, String> properties) Initializes the service with a set of configuration properties.com.google.appengine.api.search.proto.SearchServicePb.ListDocumentsResponselistDocuments(LocalRpcService.Status status, com.google.appengine.api.search.proto.SearchServicePb.ListDocumentsRequest req) com.google.appengine.api.search.proto.SearchServicePb.ListDocumentsResponselistDocumentsForApp(String appId, com.google.appengine.api.search.proto.SearchServicePb.ListDocumentsRequest req) com.google.appengine.api.search.proto.SearchServicePb.ListIndexesResponselistIndexes(LocalRpcService.Status status, com.google.appengine.api.search.proto.SearchServicePb.ListIndexesRequest req) com.google.appengine.api.search.proto.SearchServicePb.ListIndexesResponselistIndexesForApp(String appId, com.google.appengine.api.search.proto.SearchServicePb.ListIndexesRequest req) com.google.appengine.api.search.proto.SearchServicePb.SearchResponsesearch(LocalRpcService.Status status, com.google.appengine.api.search.proto.SearchServicePb.SearchRequest req) com.google.appengine.api.search.proto.SearchServicePb.SearchResponsesearchForApp(String appId, com.google.appengine.api.search.proto.SearchServicePb.SearchRequest req) 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
-
PACKAGE
The package name for this service.- See Also:
-
USE_RAM_DIRECTORY
- See Also:
-
USE_DIRECTORY
- See Also:
-
SEARCH_LOG_LEVEL_PROPERTY
Init property that specifies theLevelat which we log mail messages. Value must be a string representation of aLevel(callingLevel.parse(String)with the value as the arg should return a valid instance).- See Also:
-
-
Constructor Details
-
LocalSearchService
public LocalSearchService()
-
-
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
-
indexDocument
public com.google.appengine.api.search.proto.SearchServicePb.IndexDocumentResponse indexDocument(LocalRpcService.Status status, com.google.appengine.api.search.proto.SearchServicePb.IndexDocumentRequest req) -
indexDocumentForApp
-
deleteDocument
public com.google.appengine.api.search.proto.SearchServicePb.DeleteDocumentResponse deleteDocument(LocalRpcService.Status status, com.google.appengine.api.search.proto.SearchServicePb.DeleteDocumentRequest req) -
deleteDocumentForApp
-
listIndexes
public com.google.appengine.api.search.proto.SearchServicePb.ListIndexesResponse listIndexes(LocalRpcService.Status status, com.google.appengine.api.search.proto.SearchServicePb.ListIndexesRequest req) throws IOException - Throws:
IOException
-
listIndexesForApp
public com.google.appengine.api.search.proto.SearchServicePb.ListIndexesResponse listIndexesForApp(String appId, com.google.appengine.api.search.proto.SearchServicePb.ListIndexesRequest req) throws IOException - Throws:
IOException
-
listDocuments
public com.google.appengine.api.search.proto.SearchServicePb.ListDocumentsResponse listDocuments(LocalRpcService.Status status, com.google.appengine.api.search.proto.SearchServicePb.ListDocumentsRequest req) -
listDocumentsForApp
public com.google.appengine.api.search.proto.SearchServicePb.ListDocumentsResponse listDocumentsForApp(String appId, com.google.appengine.api.search.proto.SearchServicePb.ListDocumentsRequest req) -
search
public com.google.appengine.api.search.proto.SearchServicePb.SearchResponse search(LocalRpcService.Status status, com.google.appengine.api.search.proto.SearchServicePb.SearchRequest req) -
searchForApp
public com.google.appengine.api.search.proto.SearchServicePb.SearchResponse searchForApp(String appId, com.google.appengine.api.search.proto.SearchServicePb.SearchRequest req) -
deleteSchema
public com.google.appengine.api.search.proto.SearchServicePb.DeleteSchemaResponse deleteSchema(Object object, com.google.appengine.api.search.proto.SearchServicePb.DeleteSchemaRequest request)
-