ch.syabru.nagios.broker.jmx
Class JmxMatcher

java.lang.Object
  extended by ch.syabru.nagios.broker.jmx.JmxMatcher
All Implemented Interfaces:
Matcher

public class JmxMatcher
extends Object
implements Matcher

JMX matcher implementation.

Author:
Felix Roethenbacher

Constructor Summary
JmxMatcher(String classNameRegex, String messageRegex, String typeRegex, String sourceRegex, ExternalCommandFactory commandFactory)
          C'tor.
 
Method Summary
 ExternalCommand matches(Message message)
          Get matching external commands.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JmxMatcher

public JmxMatcher(String classNameRegex,
                  String messageRegex,
                  String typeRegex,
                  String sourceRegex,
                  ExternalCommandFactory commandFactory)
           throws MatcherException
C'tor.

Parameters:
classNameRegex - Class name regular expression.
messageRegex - Message regular expression.
typeRegex - Type regular expression.
sourceRegex - Source regular expression.
commandFactory - Command factory.
Throws:
MatcherException - XX
Method Detail

matches

public ExternalCommand matches(Message message)
Description copied from interface: Matcher
Get matching external commands.

Specified by:
matches in interface Matcher
Parameters:
message - Message.
Returns:
Matching external command, null if not matching.


Copyright © 2010-2011 Syabru. All Rights Reserved.