public class TestFilter extends AbstractChannelsFilter
AgentChannelsFilter.Event, AgentChannelsFilter.ListenerPersistable.DescriptordescriptorALL| Constructor and Description |
|---|
TestFilter(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.
|
static TestFilter |
statesOnly(String agents) |
addListener, getDescriptor, notifyListeners, removeListenerclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetAttributes, getDisplayChannels, getDisplayPath, getDisplayPath, isSelector, matchTemplaterestore, restore, save@Create(category="org.lsst.ccs.gconsole.agent.AgentChannelsFilter", name="Test Filter", path="Built-In/Test/Generic", description="Channels filter that allows the user to specify lists of accepted agents and channels.") public TestFilter(@Par(desc="Filter name. Optional.") String name, @Par(desc="Comma-separated list of subsystems accepted by this filter") String agents, @Par(desc="Comma-separated list of channels accepted by this filter (may contain templates and selectors)") String channels, @Par(desc="Character in the original channel path that should be replaced by a slash (and therefore used as a path delimeter). This is a very long parameter description indeed, without any html markup") String delimeter, @Par(desc="If true, the subsystem name is used as a page name.") boolean separatePagesForAgents, @Par(desc="Comma-separated list of fields to display in monitor views.") 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.@Create(category="org.lsst.ccs.gconsole.agent.AgentChannelsFilter", name="Test Filter - States", path="Built-In/Test/States", description="Channels filter that display states.") public static TestFilter statesOnly(@Par(desc="Comma-separated list of subsystems accepted by this filter. Optional") String agents)
Copyright © 2019 LSST. All rights reserved.