public class SchedulerService extends Object implements InventoryListener
| Modifier and Type | Field and Description |
|---|---|
protected ServiceStatus |
status |
| Constructor and Description |
|---|
SchedulerService(SchedulerConfiguration configuration,
Diagnostics diagnostics,
StorageAdapter storageAdapter) |
| Modifier and Type | Method and Description |
|---|---|
<L> void |
discoverAllFinished(InventoryEvent<L> event)
Notifies the listener that the full discovery of resources has finished.
|
<L> void |
resourceRemoved(InventoryEvent<L> event)
Notifies this listener that the resource in
InventoryEvent.getPayload() was removed from the monitored
endpoint. |
<L> void |
resourcesAdded(InventoryEvent<L> event)
Notifies this listener that the resource in
InventoryEvent.getPayload() was added to the monitored
endpoint. |
void |
start() |
void |
stop() |
protected volatile ServiceStatus status
public SchedulerService(SchedulerConfiguration configuration, Diagnostics diagnostics, StorageAdapter storageAdapter)
public void start()
public void stop()
public <L> void discoverAllFinished(InventoryEvent<L> event)
InventoryListenerInventoryEvent.getPayload() is immutable and contains all resources discovered in breadth first
order.
If the listener maintains a list of resources, this notification means that that the content of the old list
should be thrown away and replaced by the list in InventoryEvent.getPayload().
Note that during full discovery #resourceAdded(InventoryEvent) is not
invoked for resources delivered via InventoryListener.discoverAllFinished(InventoryEvent).
discoverAllFinished in interface InventoryListenerevent - the InventoryEventpublic <L> void resourcesAdded(InventoryEvent<L> event)
InventoryListenerInventoryEvent.getPayload() was added to the monitored
endpoint. Note that this event is fired only for resources added by the present agent. Resources added by other
means can only be detected by a full discovery - see InventoryListener.discoverAllFinished(InventoryEvent).resourcesAdded in interface InventoryListenerevent - the InventoryEventpublic <L> void resourceRemoved(InventoryEvent<L> event)
InventoryListenerInventoryEvent.getPayload() was removed from the monitored
endpoint. Note that this event is fired only for resources removed by the present agent. Resources removed by
other means can only be detected by a full discovery - see InventoryListener.discoverAllFinished(InventoryEvent).resourceRemoved in interface InventoryListenerevent - the InventoryEventCopyright © 2015 Red Hat, Inc.. All rights reserved.