Class AbstractMonitoredThing
- java.lang.Object
-
- com.attivio.platform.perfmon.model.AbstractMonitoredThing
-
- All Implemented Interfaces:
UseDefaultConverter
,java.io.Serializable
,java.lang.Cloneable
,java.lang.Iterable<java.util.Map.Entry<java.lang.String,java.lang.String>>
- Direct Known Subclasses:
Metric
public abstract class AbstractMonitoredThing extends java.lang.Object implements java.lang.Iterable<java.util.Map.Entry<java.lang.String,java.lang.String>>, java.io.Serializable, UseDefaultConverter, java.lang.Cloneable
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
SUBSYSTEM_CONFIGURATION
static java.lang.String
SUBSYSTEM_CONNECTOR
static java.lang.String
SUBSYSTEM_DSD
static java.lang.String
SUBSYSTEM_ELEVATE
static java.lang.String
SUBSYSTEM_ESB
static java.lang.String
SUBSYSTEM_GC
static java.lang.String
SUBSYSTEM_HARDWARE
static java.lang.String
SUBSYSTEM_INDEX
static java.lang.String
SUBSYSTEM_INGESTION
static java.lang.String
SUBSYSTEM_NODEHEALTH
static java.lang.String
SUBSYSTEM_OS
static java.lang.String
SUBSYSTEM_PROCESS
static java.lang.String
SUBSYSTEM_QUERY
static java.lang.String
SUBSYSTEM_SQLSDK
static java.lang.String
SUBSYSTEM_STORE
static java.lang.String
SUBSYSTEM_WEBAPPS
-
Constructor Summary
Constructors Constructor Description AbstractMonitoredThing()
AbstractMonitoredThing(java.lang.String subsystem, java.lang.String description)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AbstractMonitoredThing
addMetadata(java.lang.String key, boolean value)
Returns this event.AbstractMonitoredThing
addMetadata(java.lang.String key, double value)
Returns this event.AbstractMonitoredThing
addMetadata(java.lang.String key, float value)
Returns this event.AbstractMonitoredThing
addMetadata(java.lang.String key, int value)
Returns this event.AbstractMonitoredThing
addMetadata(java.lang.String key, long value)
Returns this event.AbstractMonitoredThing
addMetadata(java.lang.String key, java.lang.String value)
Returns this event.void
addMetadata(java.lang.String key, java.lang.Throwable t)
Adds the Exception's messages and all messages of all causes to the event in the form:protected AbstractMonitoredThing
clone()
boolean
containsMetadata(java.lang.String key)
True if the specified metdata key has a value in this event.boolean
equals(java.lang.Object obj)
java.lang.String
getDescription()
long
getId()
BaseTypesMap<java.lang.String,java.lang.String>
getMetadata()
java.lang.String
getMetadata(java.lang.String key)
Returns the value of the metadata key or null if it does not exist.boolean
getMetadata(java.lang.String key, boolean defaultValue)
Returns the value of the metadata key or null if it does not exist.double
getMetadata(java.lang.String key, double defaultValue)
Returns the value of the metadata key or null if it does not exist.float
getMetadata(java.lang.String key, float defaultValue)
Returns the value of the metadata key or null if it does not exist.int
getMetadata(java.lang.String key, int defaultValue)
Returns the value of the metadata key or null if it does not exist.long
getMetadata(java.lang.String key, long defaultValue)
Returns the value of the metadata key or null if it does not exist.java.lang.String
getMetadata(java.lang.String key, java.lang.String defaultValue)
Returns the value of the metadata key or null if it does not exist.java.lang.String
getSubsystem()
The AIE subsytem that caused the event.int
hashCode()
java.util.Iterator<java.util.Map.Entry<java.lang.String,java.lang.String>>
iterator()
metadata about the event.void
setDescription(java.lang.String message)
void
setId(long id)
void
setMetadata(BaseTypesMap<java.lang.String,java.lang.String> metadata)
void
setSubsystem(java.lang.String subsystem)
-
-
-
Field Detail
-
SUBSYSTEM_HARDWARE
public static final java.lang.String SUBSYSTEM_HARDWARE
- See Also:
- Constant Field Values
-
SUBSYSTEM_OS
public static final java.lang.String SUBSYSTEM_OS
- See Also:
- Constant Field Values
-
SUBSYSTEM_GC
public static final java.lang.String SUBSYSTEM_GC
- See Also:
- Constant Field Values
-
SUBSYSTEM_PROCESS
public static final java.lang.String SUBSYSTEM_PROCESS
- See Also:
- Constant Field Values
-
SUBSYSTEM_ESB
public static final java.lang.String SUBSYSTEM_ESB
- See Also:
- Constant Field Values
-
SUBSYSTEM_INDEX
public static final java.lang.String SUBSYSTEM_INDEX
- See Also:
- Constant Field Values
-
SUBSYSTEM_INGESTION
public static final java.lang.String SUBSYSTEM_INGESTION
- See Also:
- Constant Field Values
-
SUBSYSTEM_QUERY
public static final java.lang.String SUBSYSTEM_QUERY
- See Also:
- Constant Field Values
-
SUBSYSTEM_CONNECTOR
public static final java.lang.String SUBSYSTEM_CONNECTOR
- See Also:
- Constant Field Values
-
SUBSYSTEM_NODEHEALTH
public static final java.lang.String SUBSYSTEM_NODEHEALTH
- See Also:
- Constant Field Values
-
SUBSYSTEM_SQLSDK
public static final java.lang.String SUBSYSTEM_SQLSDK
- See Also:
- Constant Field Values
-
SUBSYSTEM_STORE
public static final java.lang.String SUBSYSTEM_STORE
- See Also:
- Constant Field Values
-
SUBSYSTEM_CONFIGURATION
public static final java.lang.String SUBSYSTEM_CONFIGURATION
- See Also:
- Constant Field Values
-
SUBSYSTEM_DSD
public static final java.lang.String SUBSYSTEM_DSD
- See Also:
- Constant Field Values
-
SUBSYSTEM_ELEVATE
public static final java.lang.String SUBSYSTEM_ELEVATE
- See Also:
- Constant Field Values
-
SUBSYSTEM_WEBAPPS
public static final java.lang.String SUBSYSTEM_WEBAPPS
- See Also:
- Constant Field Values
-
-
Method Detail
-
getId
public long getId()
-
setId
public void setId(long id)
-
getSubsystem
public java.lang.String getSubsystem()
The AIE subsytem that caused the event. This can be used by snmp filters for easily classifying events String (as opposed to enum) to allow for new event types by modules and/or customers.
-
setSubsystem
public void setSubsystem(java.lang.String subsystem)
-
getMetadata
public BaseTypesMap<java.lang.String,java.lang.String> getMetadata()
-
setMetadata
public void setMetadata(BaseTypesMap<java.lang.String,java.lang.String> metadata)
-
getDescription
public java.lang.String getDescription()
-
setDescription
public void setDescription(java.lang.String message)
-
addMetadata
public AbstractMonitoredThing addMetadata(java.lang.String key, java.lang.String value)
Returns this event.
-
addMetadata
public AbstractMonitoredThing addMetadata(java.lang.String key, int value)
Returns this event.
-
addMetadata
public AbstractMonitoredThing addMetadata(java.lang.String key, long value)
Returns this event.
-
addMetadata
public AbstractMonitoredThing addMetadata(java.lang.String key, double value)
Returns this event.
-
addMetadata
public AbstractMonitoredThing addMetadata(java.lang.String key, boolean value)
Returns this event.
-
addMetadata
public AbstractMonitoredThing addMetadata(java.lang.String key, float value)
Returns this event.
-
addMetadata
public void addMetadata(java.lang.String key, java.lang.Throwable t)
Adds the Exception's messages and all messages of all causes to the event in the form:key.message.0 = top level exception message key.message.1 = cause of top level message key.message.2 = cause of first caused exception key.message.n = root cause message
-
containsMetadata
public boolean containsMetadata(java.lang.String key)
True if the specified metdata key has a value in this event.
-
getMetadata
public java.lang.String getMetadata(java.lang.String key)
Returns the value of the metadata key or null if it does not exist.
-
getMetadata
public java.lang.String getMetadata(java.lang.String key, java.lang.String defaultValue)
Returns the value of the metadata key or null if it does not exist.
-
getMetadata
public int getMetadata(java.lang.String key, int defaultValue)
Returns the value of the metadata key or null if it does not exist.
-
getMetadata
public long getMetadata(java.lang.String key, long defaultValue)
Returns the value of the metadata key or null if it does not exist.
-
getMetadata
public float getMetadata(java.lang.String key, float defaultValue)
Returns the value of the metadata key or null if it does not exist.
-
getMetadata
public double getMetadata(java.lang.String key, double defaultValue)
Returns the value of the metadata key or null if it does not exist.
-
getMetadata
public boolean getMetadata(java.lang.String key, boolean defaultValue)
Returns the value of the metadata key or null if it does not exist.
-
iterator
public java.util.Iterator<java.util.Map.Entry<java.lang.String,java.lang.String>> iterator()
metadata about the event. we will define rules for how certain data types (ContainterPropertyReference, double, List-of-list, etc) get converted to SNMP data types- Specified by:
iterator
in interfacejava.lang.Iterable<java.util.Map.Entry<java.lang.String,java.lang.String>>
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classjava.lang.Object
-
clone
protected AbstractMonitoredThing clone()
- Overrides:
clone
in classjava.lang.Object
-
-