public class RegExFilter extends AbstractChannelsFilter
Persistable.Descriptor| Modifier and Type | Field and Description |
|---|---|
static String |
CREATOR_PATH |
ALL, CREATOR_PATH_UNFILTERED, descriptorCATEGORY| Constructor and Description |
|---|
RegExFilter(String name,
String regex,
boolean wholePath) |
| Modifier and Type | Method and Description |
|---|---|
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.
|
getDescriptor, getUnfilteredclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetAgents, getDisplayChannels, getDisplayPath, getDisplayPath, getDisplayPath, getDisplayPaths, getDisplayPaths, getFields, getGroups, getOriginPath, getOriginPaths, isSelector, matchTemplateedit, getCategory, getPath, restore, restore, savepublic static final String CREATOR_PATH
@Create(category="AgentChannelsFilter", name="Regular expression filter", path="Built-In/Basic/Regular Expression", description="Channels filter that uses a regular expression to select channels and leaves their paths unchanged.") public RegExFilter(@Par(def="RegEx",desc="Filter name.") 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. Otherwise, a channel is accepted if the regular expression matches any part of the path.") boolean wholePath)
public String getName()
PersistableAgentChannelsFilternull if this filter has no name.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.Copyright © 2023 LSST. All rights reserved.