de.is24.util.monitoring.keyhandler
Class RegexKeyEscaper
java.lang.Object
de.is24.util.monitoring.keyhandler.RegexKeyEscaper
- All Implemented Interfaces:
- KeyHandler
- Direct Known Subclasses:
- DefaultKeyEscaper
public class RegexKeyEscaper
- extends Object
- implements KeyHandler
|
Method Summary |
String |
handle(String name)
helper function that escapes a reportable's name so that it is JMX-compatible |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
KEY_ESCAPE_PATTERN
private final Pattern KEY_ESCAPE_PATTERN
RegexKeyEscaper
public RegexKeyEscaper(String pattern)
handle
public String handle(String name)
- helper function that escapes a reportable's name so that it is JMX-compatible
- Specified by:
handle in interface KeyHandler
- Parameters:
name - the original name of the reportable
- Returns:
- the espaced name
Or we should have a defined contract on allowed chars in keys and enfocr it on the entry side.
Due to performance and responsibility reasons.
Copyright © 2013 Immobilien Scout GmbH. All Rights Reserved.