@ConsoleLookup(id="org.lsst.ccs.gconsole.agent.AgentChannelsFilter", name="Explicit Lists", path="Built-In/Generic", description="Channels filter that allows the user to specify lists of accepted agents and channels.<p><b>Optional parameters:</b><dl><dt>name</dt><dd>Filter name.</dd><dt>agents</dt><dd>Comma-separated list of subsystems accepted by this filter.</dd><dt>channels</dt><dd>Comma-separated list of channels accepted by this filter (may contain templates and selectors).</dd><dt>delimeter</dt><dd>Characters in the original channel path that should be replaced by a slash (and therefore used as a path delimeter). Enter literal string, or regular expression in double quotes.</dd><dt>separatePagesForAgents</dt><dd>If true, the subsystem name is used as a page name.</dd><dt>fields</dt><dd>Comma-separated list of fields to display. Available standard fields: VALUE, UNITS, LOW_ALARM, LOW_WARN, ALERT_LOW, HIGH_ALARM, HIGH_WARN, ALERT_HIGH, DESCR.Any attribute or metadata key may be used as well.</dd></dl>") public class GenericFilter extends AbstractChannelsFilter
AgentChannelsFilter.Event, AgentChannelsFilter.ListenerALL| Constructor and Description |
|---|
GenericFilter(String name,
String agents,
String channels,
String delimeter,
boolean separatePagesForAgents,
String fields)
Constructs a filter.
|
| Modifier and Type | Method and Description |
|---|---|
List<String> |
getAgents()
Returns a list of agent names accepted by this filter.
|
List<String> |
getDisplayPath(String originPath)
Returns a list of display channels for the specified original path.
|
List<String> |
getFields(boolean compact)
Returns a list of attributes to display for each channel.
|
String |
getName()
Returns the name of this filter.
|
List<String> |
getOriginChannels()
Returns a list of original channel paths accepted by this filter.
|
String |
getOriginPath(String displayPath)
Returns the original path corresponding to the specified display channel.
|
addListener, notifyListeners, removeListenerclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetAttributes, getDisplayChannels, getDisplayPathpublic GenericFilter(String name, String agents, String channels, String delimeter, boolean separatePagesForAgents, String fields)
name - Name of the filter.agents - Comma-separated list of subsystems accepted by this filter.channels - Comma-separated list of channels accepted by this filter (may contain templates and selectors).delimeter - Character in the original channel path that should be replaced by a slash (and therefore used as a path delimeter).separatePagesForAgents - If true, the subsystem name is used as a page name.fields - Comma-separated list of fields to display.public List<String> getDisplayPath(String originPath)
AgentChannelsFilter
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.public String getOriginPath(String displayPath)
AgentChannelsFilterdisplayPath - Display channel path.null if the specified path does not correspond to any original channel.public List<String> getOriginChannels()
AgentChannelsFilter
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 AgentChannelsFilter.getDisplayPath(org.lsst.ccs.gconsole.agent.AgentChannel) returns a non-empty list is accepted.public List<String> getAgents()
AgentChannelsFilternull if any agent might be accepted.public String getName()
AgentChannelsFilterpublic List<String> getFields(boolean compact)
AgentChannelsFiltercompact - 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.Copyright © 2018 LSST. All rights reserved.