|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.google.enterprise.adaptor.GsaCommunicationHandler
public final class GsaCommunicationHandler
This class handles the communications with GSA.
Constructor Summary | |
---|---|
GsaCommunicationHandler(Adaptor adaptor,
Config config)
|
Method Summary | |
---|---|
boolean |
checkAndScheduleImmediatePushOfDocIds()
Ensure there is a push running right now. |
boolean |
checkAndScheduleIncrementalPushOfDocIds()
Perform an push of incremental changes. |
Adaptor |
getAdaptor()
The adaptor instance being used. |
AdaptorContext |
setup(HttpServer server,
HttpServer dashboardServer,
String contextPrefix)
Start services necessary for handling outgoing requests. |
void |
start()
Start servicing incoming requests. |
boolean |
stop(long time,
TimeUnit unit)
Stops servicing incoming requests, allowing up to maxDelay seconds
for things to shutdown. |
void |
teardown()
Stop services necessary for handling outgoing requests. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public GsaCommunicationHandler(Adaptor adaptor, Config config)
Method Detail |
---|
public AdaptorContext setup(HttpServer server, HttpServer dashboardServer, String contextPrefix) throws IOException, InterruptedException
""
is used
for contextPrefix
if the passed value is null
.
IOException
InterruptedException
public void start()
public boolean stop(long time, TimeUnit unit)
maxDelay
seconds
for things to shutdown. After called, no requests will be sent to the
Adaptor.
true
if shutdown cleanly, false
if requests may
still be processingpublic void teardown()
AdaptorContext
returned from setup(com.sun.net.httpserver.HttpServer, com.sun.net.httpserver.HttpServer, java.lang.String)
.
public boolean checkAndScheduleImmediatePushOfDocIds()
true
if it starts a new push, and
false
otherwise.
public boolean checkAndScheduleIncrementalPushOfDocIds()
PollingIncrementalLister
.
public Adaptor getAdaptor()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |