public class RegExRenamingFilter extends AbstractChannelsFilter
Persistable.Descriptor| Modifier and Type | Field and Description |
|---|---|
static String |
CREATOR_PATH |
ALL, CREATOR_PATH_UNFILTERED, descriptorCATEGORY| Constructor and Description |
|---|
RegExRenamingFilter(String name,
String regex,
boolean wholePath,
String displayPath,
List<String> subsystems) |
| Modifier and Type | Method and Description |
|---|---|
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.
|
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 void |
main(String... args) |
getDescriptor, getUnfilteredclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetDisplayChannels, getDisplayPath, getDisplayPath, getDisplayPaths, getDisplayPaths, getFields, getGroups, 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, Renaming", description="Channels filter that uses a regular expression to select channels and leaves their paths unchanged.") public RegExRenamingFilter(@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, @Par(def="_null_",desc="Display path template. Each occurrence of ${name} or $g will be replaced by the result of evaluating the corresponding group(name) or group(g) from the regular expression match. If null, the original path will be used as the display path.") String displayPath, @Par(def="_null_",desc="List of accepted subsystem names. If null, channels from all subsystems can be accepted.") List<String> subsystems)
public String getName()
PersistableAgentChannelsFilternull if this filter has no name.public List<String> getAgents()
AgentChannelsFilterAgentStatusAggregator.
The default implementation returns null.null if any agent might be accepted.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.public static void main(String... args)
Copyright © 2022 LSST. All rights reserved.