org.lsst.ccs.plugin.jas3.console
Class RegularExpressionMessageFilter

java.lang.Object
  extended by org.lsst.ccs.plugin.jas3.console.RegularExpressionMessageFilter
All Implemented Interfaces:
MessageFilter

public class RegularExpressionMessageFilter
extends Object
implements MessageFilter

Accepts or reject bus messages based on regular expressions applied to the "toString" output of the message.

Author:
tonyj

Constructor Summary
RegularExpressionMessageFilter()
           
 
Method Summary
 boolean accept(org.lsst.ccs.bus.BusMessage message)
           
 Pattern getAccept()
           
 Pattern getVeto()
           
 void setAccept(Pattern accept)
          If the survives the veto, and this pattern pattern is found, it will be displayed.
 void setVeto(Pattern veto)
          If this pattern is found in the message it will be vetoed (not displayed).
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RegularExpressionMessageFilter

public RegularExpressionMessageFilter()
Method Detail

accept

public boolean accept(org.lsst.ccs.bus.BusMessage message)
Specified by:
accept in interface MessageFilter

getVeto

public Pattern getVeto()

setVeto

public void setVeto(Pattern veto)
If this pattern is found in the message it will be vetoed (not displayed). The pattern is ignored if null


getAccept

public Pattern getAccept()

setAccept

public void setAccept(Pattern accept)
If the survives the veto, and this pattern pattern is found, it will be displayed. The pattern is ignored if null.



Copyright © 2013 LSST. All Rights Reserved.