public class AgentStatusEvent extends EventObject
AgentStatusAggregator to notify AgentStatusListeners of changes in the agent's published data.| Modifier and Type | Field and Description |
|---|---|
protected List<AgentChannel> |
addedChannels |
protected List<org.lsst.ccs.bus.data.AgentInfo> |
agents |
protected org.lsst.ccs.bus.messages.StatusMessage |
message |
protected List<AgentChannel> |
removedChannels |
protected Map<AgentChannel,List<String>> |
statusChanges |
source| Modifier and Type | Method and Description |
|---|---|
List<AgentChannel> |
getAddedChannels()
Returns a list of new channels.
|
List<String> |
getAgentNames()
Returns the list of names of remote agents whose data is included in this event.
|
List<org.lsst.ccs.bus.data.AgentInfo> |
getAgents()
Returns the list of remote agents whose data is included in this event.
|
org.lsst.ccs.bus.messages.StatusMessage |
getMessage()
Returns the status message that triggered this event.
|
List<AgentChannel> |
getRemovedChannels()
Returns a list of channels that are no longer published by the agent.
|
AgentStatusAggregator |
getSource()
Returns a reference to the status aggregator that fired this event.
|
Map<AgentChannel,List<String>> |
getStatusChanges()
Returns a map of modified channels to lists of keys of changed attributes.
|
boolean |
isEmpty()
Returns
true if this event has no added, modified, or removed channels. |
String |
toString() |
protected final List<org.lsst.ccs.bus.data.AgentInfo> agents
protected final org.lsst.ccs.bus.messages.StatusMessage message
protected final Map<AgentChannel,List<String>> statusChanges
protected final List<AgentChannel> addedChannels
protected final List<AgentChannel> removedChannels
public AgentStatusAggregator getSource()
getSource in class EventObjectpublic List<org.lsst.ccs.bus.data.AgentInfo> getAgents()
public List<String> getAgentNames()
public org.lsst.ccs.bus.messages.StatusMessage getMessage()
null if this event was not triggered by a bus message.public Map<AgentChannel,List<String>> getStatusChanges()
statusChanged(...) method of the listener.public List<AgentChannel> getAddedChannels()
configure(...) and statusChanged(...) methods of the listener.public List<AgentChannel> getRemovedChannels()
statusChanged(...) method of the listener.
Note: with the current implementation, this method never gets called. It is declared in anticipation of implementing filter and dictionary updates.
public boolean isEmpty()
true if this event has no added, modified, or removed channels.true if this event has no added, modified, or removed channels.public String toString()
toString in class EventObjectCopyright © 2023 LSST. All rights reserved.