public class PageFilter extends Object implements AgentChannelsFilter
AgentChannelsFilter.Event, AgentChannelsFilter.ListenerALL| Constructor and Description |
|---|
PageFilter(AgentChannelsFilter filter,
String page) |
| Modifier and Type | Method and Description |
|---|---|
void |
addListener(AgentChannelsFilter.Listener listener)
Registers a listener that will be notified of any changes in this filter.
|
List<String> |
getAgents()
Returns a list of agent names accepted by this filter.
|
Map<String,Object> |
getAttributes(String path)
Returns additional attributes associated with the specified path.
|
List<String> |
getDisplayChannels()
Returns a list of display paths produced by this filter.
|
List<String> |
getDisplayPath(AgentChannel channel)
Returns a list of display channels for the specified original channel.
|
List<String> |
getDisplayPath(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 paths accepted by this filter.
|
String |
getOriginPath(String displayPath)
Returns the original path corresponding to the specified display channel.
|
void |
removeListener(AgentChannelsFilter.Listener listener)
Removes a listener.
|
public PageFilter(AgentChannelsFilter filter, String page)
public String getName()
AgentChannelsFiltergetName in interface AgentChannelsFilterpublic List<String> getAgents()
AgentChannelsFiltergetAgents in interface AgentChannelsFilternull 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.
getOriginChannels in interface AgentChannelsFilternull if any
original path for which AgentChannelsFilter.getDisplayPath(org.lsst.ccs.gconsole.agent.AgentChannel) returns a non-empty list is accepted.public List<String> getDisplayChannels()
AgentChannelsFilterAgentChannelsFilter.getDisplayPath(org.lsst.ccs.gconsole.agent.AgentChannel)
applied to accepted original channels. Otherwise, any display channels for
which the data is available will be displayed.getDisplayChannels in interface AgentChannelsFilternull if the set is not fixed.public String getOriginPath(String displayPath)
AgentChannelsFiltergetOriginPath in interface AgentChannelsFilterdisplayPath - Display channel path.null if the specified path does not correspond to any original channel.public List<String> getDisplayPath(AgentChannel channel)
AgentChannelsFilterAgentChannelsFilter.getDisplayPath(String)
method. Subclasses may override it to take into account channel attributes and metadata.
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.
getDisplayPath in interface AgentChannelsFilterchannel - Original data channel.public List<String> getDisplayPath(String originPath)
AgentChannelsFilter
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.
getDisplayPath in interface AgentChannelsFilteroriginPath - Original path.public Map<String,Object> getAttributes(String path)
AgentChannelsFiltergetAttributes in interface AgentChannelsFilterpath - Full or partial display path.public List<String> getFields(boolean compact)
AgentChannelsFiltergetFields in interface 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.public void addListener(AgentChannelsFilter.Listener listener)
AgentChannelsFilteraddListener in interface AgentChannelsFilterlistener - Listener to be notified.public void removeListener(AgentChannelsFilter.Listener listener)
AgentChannelsFilterremoveListener in interface AgentChannelsFilterlistener - Listener to be removed.Copyright © 2018 LSST. All rights reserved.