public class CollectorLifeCycleListener extends Object implements IEventListener<CollectorEvent>
Constructor and Description |
---|
CollectorLifeCycleListener() |
Modifier and Type | Method and Description |
---|---|
void |
accept(CollectorEvent event) |
protected void |
onCollectorCleanBegin(CollectorEvent event) |
protected void |
onCollectorCleanEnd(CollectorEvent event) |
protected void |
onCollectorError(CollectorEvent event) |
protected void |
onCollectorEvent(CollectorEvent event) |
protected void |
onCollectorRunBegin(CollectorEvent event) |
protected void |
onCollectorRunEnd(CollectorEvent event) |
protected void |
onCollectorShutdown(CollectorEvent event)
Triggered when a collector is ending its execution on either
a
CollectorEvent.COLLECTOR_ERROR ,
CollectorEvent.COLLECTOR_RUN_END or
CollectorEvent.COLLECTOR_STOP_END event. |
protected void |
onCollectorStopBegin(CollectorEvent event) |
protected void |
onCollectorStopEnd(CollectorEvent event) |
public final void accept(CollectorEvent event)
accept
in interface Consumer<CollectorEvent>
protected void onCollectorEvent(CollectorEvent event)
protected void onCollectorShutdown(CollectorEvent event)
CollectorEvent.COLLECTOR_ERROR
,
CollectorEvent.COLLECTOR_RUN_END
or
CollectorEvent.COLLECTOR_STOP_END
event.event
- collector eventprotected void onCollectorError(CollectorEvent event)
protected void onCollectorRunBegin(CollectorEvent event)
protected void onCollectorRunEnd(CollectorEvent event)
protected void onCollectorStopBegin(CollectorEvent event)
protected void onCollectorStopEnd(CollectorEvent event)
protected void onCollectorCleanBegin(CollectorEvent event)
protected void onCollectorCleanEnd(CollectorEvent event)
Copyright © 2014–2023 Norconex Inc.. All rights reserved.