public class PageFilter extends AbstractChannelsFilter
Persistable.DescriptorALL, CREATOR_PATH_UNFILTERED, descriptorCATEGORY| Constructor and Description |
|---|
PageFilter(AgentChannelsFilter filter,
String page) |
| Modifier and Type | Method and Description |
|---|---|
List<String> |
getAgents()
Returns a list of agent names accepted by this filter.
|
List<String> |
getDisplayChannels()
Returns a list of display paths produced by this filter.
|
List<String> |
getDisplayPaths(AgentChannel channel)
Returns a list of display channels for the specified original channel.
|
List<String> |
getDisplayPaths(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 selectors that might be accepted by this filter.
|
String |
getOriginPath(String displayPath)
Returns the original path corresponding to the specified display channel.
|
getDescriptor, getUnfilteredclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetDisplayPath, getDisplayPath, getDisplayPath, getGroups, getOriginPaths, isSelector, matchTemplateedit, getCategory, getPath, restore, restore, savepublic PageFilter(AgentChannelsFilter filter, String page)
public String getName()
PersistableAgentChannelsFilternull if this filter has no name.public List<String> getAgents()
AgentChannelsFiltergetOriginChannels(): every selector that does not explicitly specify agent is
only applied to agents from the list.
The default implementation returns null.
null if any agent is accepted.public List<String> getOriginChannels()
AgentChannelsFilter
The list returned by this method may contain channel selectors of
several types (note that interpretation of some selectors depends on the
list returned by getAgents() method):
[agent]/[partial path][/]" format.
Templates that omit the agent name are expanded against all agents whose
names are in the getAgents() list (or all agents present on the
buses if that list is null). Templates that end with "/" match
all channels that start with "agent/partial path/".
[agent.name=value&][agent.type=value&][agent.key[=value]&…&agent.key[=value]&][key[=value]&…&key[=value]]"
format, where key and value are names and values of agent
properties or static channel attributes. If value is omitted, the
existence of the attribute is checked.
The default implementation returns null.
null if any
original path for which AgentChannelsFilter.getDisplayPaths(org.lsst.ccs.gconsole.services.aggregator.AgentChannel) returns a non-empty list is accepted.public List<String> getDisplayChannels()
AgentChannelsFilternull list, components downstream from
this filter will display this fixed set of channels, whether or not the data is actually available.
If this method returns null, all display paths produced by getDisplayPaths(AgentChannel channel)
for original channels accepted by getOriginChannels() should be displayed.
The default implementation returns null.
null if the set of display
paths is not constrained by this filter.public String getOriginPath(String displayPath)
AgentChannelsFilternull.
The default implementation returns the display path provided as an argument.
displayPath - Display channel path.null if the specified path does not correspond to any original channel.public List<String> getDisplayPaths(AgentChannel channel)
AgentChannelsFilterAgentChannel
instances (like monitoring views).
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.
The default implementation returns a singleton list that contains a string
returned by AgentChannelsFilter.getDisplayPath(AgentChannel) method.
channel - Original data channel.public List<String> getDisplayPaths(String originPath)
AgentChannelsFilterAgentChannel
instances (like the trending tool).
If the specified original channel is not accepted by this filter,
this method should return an empty list. null should never be returned.
The default implementation returns a singleton list that contains a string
returned by AgentChannelsFilter.getDisplayPath(String) method.
originPath - Original path.public List<String> getFields(boolean compact)
AgentChannelsFilternull.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.Copyright © 2023 LSST. All rights reserved.