public interface AgentChannelsFilter
The exact interpretation of filter output depends on the tool using the filter.
See AgentStatusAggregator.addListener(AgentStatusListener, AgentChannelsFilter)
for more details on using filters to configure agent status aggregator and tools
that rely on it.
| Modifier and Type | Interface and Description |
|---|---|
static class |
AgentChannelsFilter.Event |
static interface |
AgentChannelsFilter.Listener
Interface to be implemented by classes that should be notified of changes in the
AgentChannelsFilter. |
| Modifier and Type | Field and Description |
|---|---|
static AgentChannelsFilter |
ALL
Trivial filter that accepts all channels and does not modify paths.
|
| Modifier and Type | Method and Description |
|---|---|
default void |
addListener(AgentChannelsFilter.Listener listener)
Registers a listener that will be notified of any changes in this filter.
|
default List<String> |
getAgents()
Returns a list of agent names accepted by this filter.
|
default Map<String,Object> |
getAttributes(String path)
Returns additional attributes associated with the specified path.
|
default List<String> |
getDisplayChannels()
Returns a list of display paths produced by this filter.
|
default List<String> |
getDisplayPath(AgentChannel channel)
Returns a list of display channels for the specified original channel.
|
default List<String> |
getDisplayPath(String originPath)
Returns a list of display channels for the specified original path.
|
default List<String> |
getFields(boolean compact)
Returns a list of attributes to display for each channel.
|
default String |
getName()
Returns the name of this filter.
|
default List<String> |
getOriginChannels()
Returns a list of original channel paths accepted by this filter.
|
default String |
getOriginPath(String displayPath)
Returns the original path corresponding to the specified display channel.
|
default void |
removeListener(AgentChannelsFilter.Listener listener)
Removes a listener.
|
static final AgentChannelsFilter ALL
default String getName()
default List<String> getAgents()
null if any agent might be accepted.default List<String> getOriginChannels()
Note that if this filter is used to configure AgentStatusAggregator or any clients
that rely on it (like monitoring data views), the list returned by this method may contain
templates and selectors. See
AgentStatusAggregator.addListener(listener, agents, channels)
for details.
null if any
original path for which getDisplayPath(org.lsst.ccs.gconsole.agent.AgentChannel) returns a non-empty list is accepted.default List<String> getDisplayChannels()
getDisplayPath(org.lsst.ccs.gconsole.agent.AgentChannel)
applied to accepted original channels. Otherwise, any display channels for
which the data is available will be displayed.null if the set is not fixed.default String getOriginPath(String displayPath)
displayPath - Display channel path.null if the specified path does not correspond to any original channel.default List<String> getDisplayPath(AgentChannel channel)
getDisplayPath(String)
method. Subclasses may override it to take into account channel attributes and metadata.
Not that if the specified original channel is not accepted by this filter,
this method should return an empty list. null should never be returned.
channel - Original data channel.default List<String> getDisplayPath(String originPath)
Not that if the specified original channel is not accepted by this filter,
this method should return an empty list. null should never be returned.
originPath - Original path.default Map<String,Object> getAttributes(String path)
path - Full or partial display path.default List<String> getFields(boolean compact)
compact - If true, returns a list of columns in a compact view.null if this filter does not provides any hints on what attributes should be displayed.default void addListener(AgentChannelsFilter.Listener listener)
listener - Listener to be notified.default void removeListener(AgentChannelsFilter.Listener listener)
listener - Listener to be removed.Copyright © 2018 LSST. All rights reserved.