public class GenericFilterPersistable extends AbstractChannelsFilter
AgentChannelsFilter.Event, AgentChannelsFilter.ListenerPersistable.DescriptordescriptorALL, CATEGORY| Constructor and Description |
|---|
GenericFilterPersistable(String name,
List<String> agents,
List<String> channels,
String delimeter,
boolean separatePagesForAgents,
List<String> fields)
Constructs a filter.
|
| Modifier and Type | Method and Description |
|---|---|
static AgentChannelsFilter |
agentSelector(String subsystem) |
static AgentChannelsFilter |
filterMonitorOnly(String name,
List<String> agents,
String delimeter,
boolean separatePagesForAgents,
List<String> fields) |
List<String> |
getAgents()
Returns a list of agent names accepted by this filter.
|
String |
getDisplayPath(String originPath)
Returns the display channel corresponding to 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, getDescriptor, notifyListeners, removeListenerclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetUnfilteredgetAttributes, getDisplayChannels, getDisplayPath, getDisplayPath, getDisplayPaths, getDisplayPaths, getOriginPaths, isSelector, matchTemplateedit, getCategory, restore, restore, save@Create(category="AgentChannelsFilter", name="Configurable generic filter", path="Built-In/Generic", description="Channels filter that leaves paths unchanged (except for possibly replacing delimeters with slashes and inserting doupbe slashes to separate pages), but allows selecting desired subsystems, channels, and monitor fields.") public GenericFilterPersistable(@Par(def="_null_",desc="Filter name. Optional.") String name, @Par(def="_null_",desc="List of subsystems accepted by this filter. If not specified, all subsystems are accepted.") List<String> agents, @Par(def="_null_",desc="List of channels accepted by this filter (may contain templates and selectors). If not specified, all subsystems are accepted.") List<String> channels, @Par(def="_null_",desc="Character in the original channel path that should be replaced by a slash (and therefore used as a path delimeter).") String delimeter, @Par(def="false",desc="If true, the first slash in the path is replaced by a double slash. This causes some monitoring views display each subsystem data in a separate tab.") boolean separatePagesForAgents, @Par(def="_null_",desc="List of fields to display in monitor views. If not specified, the default set of fields is displayed. The default depends on a specific view. Some views may ignore the list of fields suggested by the filter. Available standard fields: VALUE, UNITS, LOW_ALARM, LOW_WARN, ALERT_LOW, HIGH_ALARM, HIGH_WARN, ALERT_HIGH, DESCR.") List<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 String getDisplayPath(String originPath)
AgentChannelsFilternull.
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 an unmodified original path.
originPath - Original path.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> 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.
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> getAgents()
AgentChannelsFilter
The default implementation returns null.
null if any agent might be accepted.public String getName()
PersistableAgentChannelsFilternull if this filter has no name.public 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="AgentChannelsFilter", name="Monitor channels", path="Built-In/Monitor", description="Channels filter that leaves paths unchanged (except for possibly replacing delimeters with slashes and inserting doupbe slashes to separate pages), but accepts only monitored channels.") public static AgentChannelsFilter filterMonitorOnly(@Par(def="Monitored channels",desc="Filter name.") String name, @Par(def="_null_",desc="List of subsystems accepted by this filter. If not specified, all subsystems are accepted.") List<String> agents, @Par(def="_null_",desc="Character in the original channel path that should be replaced by a slash (and therefore used as a path delimeter).") String delimeter, @Par(def="false",desc="If true, the first slash in the path is replaced by a double slash. This causes some monitoring views display each subsystem data in a separate tab.") boolean separatePagesForAgents, @Par(def="_null_",desc="List of fields to display in monitor views. If not specified, the default set of fields is displayed. The default depends on a specific view. Some views may ignore the list of fields suggested by the filter.") List<String> fields)
@Create(category="AgentChannelsFilter", name="Subsystem Selector", path="Built-In/Subsystem Selector", description="Selects channels from the specified subsystem only. Leaves paths unchanged.") public static AgentChannelsFilter agentSelector(@Par(desc="Subsystem name.") String subsystem)
Copyright © 2020 LSST. All rights reserved.