Package org.jolokia.service.history
Class HistoryKey
java.lang.Object
org.jolokia.service.history.HistoryKey
- All Implemented Interfaces:
Serializable
Key used in the
HistoryStore for indexing historical values. The key has
a type reflecting the kind of JMX operataion (attribute or operation)
and can be used in proxy mode for different targets.- Since:
- Jun 12, 2009
- Author:
- roland
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionHistoryKey(String pMBean, String pOperation, String pTarget) Constructor for typeoperationHistoryKey(String pMBean, String pAttribute, String pPath, String pTarget) Constructor for typeattribute -
Method Summary
Modifier and TypeMethodDescriptionbooleaninthashCode()booleanWhether this key embraces a MBean patternbooleanmatches(HistoryKey pKey) Whether the key matches the given MBean nametoString()
-
Constructor Details
-
HistoryKey
public HistoryKey(String pMBean, String pOperation, String pTarget) throws MalformedObjectNameException Constructor for typeoperation- Parameters:
pMBean- MBean namepOperation- operation namepTarget- optional target identifer- Throws:
MalformedObjectNameException- if the mbean name is invalid
-
HistoryKey
public HistoryKey(String pMBean, String pAttribute, String pPath, String pTarget) throws MalformedObjectNameException Constructor for typeattribute- Parameters:
pMBean- MBean namepAttribute- attributepPath- optional pathpTarget- optional target identifier- Throws:
MalformedObjectNameException- if the mbean name is invalid
-
-
Method Details
-
isMBeanPattern
public boolean isMBeanPattern()Whether this key embraces a MBean pattern- Returns:
- true if the the included MBean is a pattern
-
matches
Whether the key matches the given MBean name- Parameters:
pKey- to match- Returns:
- true if the given mbean matches the Mbean encapsulated by this key
-
equals
-
hashCode
public int hashCode() -
toString
-