Package org.graylog2.lookup
Class LookupDataAdapterRefreshService.Listener
java.lang.Object
com.google.common.util.concurrent.Service.Listener
org.graylog2.lookup.LookupDataAdapterRefreshService.Listener
- Enclosing class:
- LookupDataAdapterRefreshService
public static class LookupDataAdapterRefreshService.Listener
extends com.google.common.util.concurrent.Service.Listener
This service listener should be attached to a
data adapter service
.
It takes care of adding and removing the data adapter to/from the refresh service when it is started or stopped.
-
Constructor Summary
ConstructorDescriptionListener
(LookupDataAdapterRefreshService refreshService, LookupDataAdapter adapter) -
Method Summary
Methods inherited from class com.google.common.util.concurrent.Service.Listener
failed, starting, terminated
-
Constructor Details
-
Listener
-
-
Method Details
-
running
public void running()- Overrides:
running
in classcom.google.common.util.concurrent.Service.Listener
-
stopping
public void stopping(com.google.common.util.concurrent.Service.State from) - Overrides:
stopping
in classcom.google.common.util.concurrent.Service.Listener
-