class CompositeLauncherDiscoveryListener extends LauncherDiscoveryListener
LauncherDiscoveryListeners.composite(List)
Modifier and Type | Field and Description |
---|---|
private java.util.List<LauncherDiscoveryListener> |
listeners |
NOOP
Constructor and Description |
---|
CompositeLauncherDiscoveryListener(java.util.List<LauncherDiscoveryListener> listeners) |
Modifier and Type | Method and Description |
---|---|
void |
engineDiscoveryFinished(UniqueId engineId,
EngineDiscoveryResult result)
Called when test discovery has finished for an engine.
|
void |
engineDiscoveryStarted(UniqueId engineId)
Called when test discovery is about to be started for an engine.
|
void |
selectorProcessed(UniqueId engineId,
DiscoverySelector selector,
SelectorResolutionResult result)
Must be called after a discovery selector has been processed by a test
engine.
|
private final java.util.List<LauncherDiscoveryListener> listeners
CompositeLauncherDiscoveryListener(java.util.List<LauncherDiscoveryListener> listeners)
public void engineDiscoveryStarted(UniqueId engineId)
LauncherDiscoveryListener
engineDiscoveryStarted
in class LauncherDiscoveryListener
engineId
- the unique ID of the engine descriptorpublic void engineDiscoveryFinished(UniqueId engineId, EngineDiscoveryResult result)
LauncherDiscoveryListener
Exceptions thrown by implementations of this method will cause the complete test discovery to be aborted.
engineDiscoveryFinished
in class LauncherDiscoveryListener
engineId
- the unique ID of the engine descriptorresult
- the discovery result of the supplied engineEngineDiscoveryResult
public void selectorProcessed(UniqueId engineId, DiscoverySelector selector, SelectorResolutionResult result)
EngineDiscoveryListener
Exceptions thrown by implementations of this method will cause test discovery of the current engine to be aborted.
engineId
- the unique ID of the engine descriptorselector
- the processed selectorresult
- the resolution result of the supplied engine and selectorSelectorResolutionResult