public class HistoryKey extends Object implements Serializable
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.Constructor and Description |
---|
HistoryKey(String pMBean,
String pOperation,
String pTarget)
Constructor for type
operation |
HistoryKey(String pMBean,
String pAttribute,
String pPath,
String pTarget)
Constructor for type
attribute |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
int |
hashCode() |
boolean |
isMBeanPattern()
Whether this key embraces a MBean pattern
|
boolean |
matches(HistoryKey pKey)
Whether the key matches the given MBean name
|
String |
toString() |
public HistoryKey(String pMBean, String pOperation, String pTarget) throws MalformedObjectNameException
operation
pMBean
- MBean namepOperation
- operation namepTarget
- optional target if used in proxy modeMalformedObjectNameException
- if the mbean name is invalidpublic HistoryKey(String pMBean, String pAttribute, String pPath, String pTarget) throws MalformedObjectNameException
attribute
pMBean
- MBean namepAttribute
- attributepPath
- optional pathpTarget
- optional proxy targetMalformedObjectNameException
- if the mbean name is invalidpublic boolean isMBeanPattern()
public boolean matches(HistoryKey pKey)
pKey
- to matchCopyright © 2019. All rights reserved.