public class MonitorQuery extends Object
Constructor and Description |
---|
MonitorQuery(Executor executor) |
Modifier and Type | Method and Description |
---|---|
void |
addListener(MonitorQueryListener listener)
Add a listener to the monitor query
|
protected void |
clear() |
void |
dispose() |
void |
removeListener(MonitorQueryListener listener) |
protected void |
setData(MonitorStatusInformation[] data)
Set current data set.
|
protected void |
updateData(List<MonitorStatusInformation> data,
Set<String> removed,
boolean full) |
public MonitorQuery(Executor executor)
public void addListener(MonitorQueryListener listener)
If the listener was already added this operation has no effect
The listener will receive all current known elements in a first update call.
listener
- the listener to addpublic void removeListener(MonitorQueryListener listener)
protected void updateData(List<MonitorStatusInformation> data, Set<String> removed, boolean full)
public void dispose()
protected void setData(MonitorStatusInformation[] data)
data
- the new data setprotected void clear()