public class RegExFilter extends AbstractChannelsFilter
AgentChannelsFilter.Event, AgentChannelsFilter.ListenerPersistable.DescriptordescriptorALL, CATEGORY| Constructor and Description |
|---|
RegExFilter(String name,
String regex,
boolean wholePath) |
| Modifier and Type | Method and Description |
|---|---|
String |
getDisplayPath(String originPath)
Returns the display channel corresponding to 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, getDescriptor, notifyListeners, removeListenerclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetUnfilteredgetAgents, getAttributes, getDisplayChannels, getDisplayPath, getDisplayPath, getDisplayPaths, getDisplayPaths, getFields, getOriginPaths, isSelector, matchTemplateedit, getCategory, getPath, restore, restore, save@Create(category="AgentChannelsFilter", name="Regular expression filter", path="Built-In/Regular Expression", description="Channels filter that uses a regular expression to select channels and leaves their paths unchanged.") public RegExFilter(@Par(def="_null_",desc="Filter name. Optional.") String name, @Par(desc="Regular expression to be applied to the channel path.") String regex, @Par(def="false",desc="Match the whole path. If checked, a channel is accepted only if the provided regular expression matches its entire path.") boolean wholePath)
public String getName()
PersistableAgentChannelsFilternull if this filter has no name.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 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.Copyright © 2021 LSST. All rights reserved.