public class GroupDefinitionsWriter extends AbstractAdaptor
| Constructor and Description |
|---|
GroupDefinitionsWriter() |
| Modifier and Type | Method and Description |
|---|---|
void |
getDocContent(Request req,
Response res)
Provides contents and metadata of particular document.
|
void |
getDocIds(DocIdPusher pusher)
Pushes all the
DocIds that are suppose to be indexed by the GSA. |
static void |
main(String[] args) |
destroy, init, initConfig, mainpublic void getDocIds(DocIdPusher pusher) throws InterruptedException
AdaptorDocIds that are suppose to be indexed by the GSA.
This will frequently involve re-sending DocIds to the GSA, but this
allows healing previous errors and cache inconsistencies. Re-sending DocIds is very fast and should be considered free on the GSA. This method
should determine a list of DocIds to push and call DocIdPusher.pushDocIds(java.lang.Iterable<com.google.enterprise.adaptor.DocId>) one or more times and DocIdPusher.pushNamedResources(java.util.Map<com.google.enterprise.adaptor.DocId, com.google.enterprise.adaptor.Acl>) if using named resources.
pusher is provided as convenience and is the same object
provided to Adaptor.init(com.google.enterprise.adaptor.AdaptorContext) previously. This method may take a while and
implementations are free to call Thread.sleep(long) occasionally to
reduce load.
If you experience a fatal error, feel free to throw an IOException or RuntimeException. In the case of an error, the
ExceptionHandler in use in AdaptorContext will
determine if and when to retry.
InterruptedExceptionpublic void getDocContent(Request req, Response res) throws IOException
AdaptorIf you experience a fatal error, feel free to throw an IOException or RuntimeException. In the case of an error, the GSA
will determine if and when to retry.
IOExceptionpublic static void main(String[] args)