@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></dl>") public class GenericFilter extends AbstractChannelsFilter
AgentChannelsFilter.Event, AgentChannelsFilter.ListenerALL| Constructor and Description |
|---|
GenericFilter(String name,
String agents,
String channels,
String delimeter,
boolean separatePagesForAgents)
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.
|
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, getDisplayPath, getFieldspublic GenericFilter(String name, String agents, String channels, String delimeter, boolean separatePagesForAgents)
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.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()
AgentChannelsFilternull 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()
AgentChannelsFilterCopyright © 2017 LSST. All rights reserved.