|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.management.NotificationBroadcasterSupport
org.apache.qpid.management.domain.model.QpidEntity
org.apache.qpid.management.domain.model.QpidEvent
class QpidEvent
Qpid event definition.
Nested Class Summary | |
---|---|
(package private) class |
QpidEvent.QManManagedEvent
MBean used for representing remote broker object instances. |
(package private) static interface |
QpidEvent.State
State interface for this event definition. |
Nested classes/interfaces inherited from class org.apache.qpid.management.domain.model.QpidEntity |
---|
QpidEntity.QManManagedEntity |
Field Summary | |
---|---|
(package private) Map<String,QpidProperty> |
_arguments
|
(package private) List<QpidEvent.QManManagedEvent> |
_eventInstances
|
(package private) QpidEvent.State |
_schemaInjected
After a schema is built into this definition this is the current state of the class. |
(package private) QpidEvent.State |
_schemaNotRequested
This is the initial state of every qpid class. |
(package private) QpidEvent.State |
_schemaRequestedButNotYetInjected
This is the first state of this class definition : the schema is not yet injected so each injection of object data will be retained in raw format. |
(package private) QpidEvent.State |
_state
|
(package private) static String |
SEVERITY_ATTR_NAME
|
(package private) static String |
TIMESTAMP_ATTR_NAME
|
Fields inherited from class org.apache.qpid.management.domain.model.QpidEntity |
---|
_hash, _logger, _metadata, _name, _objectName, _parent, _service, JMX_SERVICE |
Constructor Summary | |
---|---|
QpidEvent(String eventClassName,
Binary hash,
QpidPackage parentPackage)
Builds a new class with the given name and package as parent. |
Method Summary | |
---|---|
(package private) void |
addEventData(byte[] rawData,
long currentTimestamp,
int severity)
Adds the configuration data for the object instance associated to the given object identifier. |
(package private) void |
buildArguments(List<Map<String,Object>> arguments,
MBeanAttributeInfo[] attributes)
Internal method used for building attributes definitions. |
(package private) QpidEvent.QManManagedEvent |
createEventInstance(byte[] data,
long timestamp,
int severity)
Returns the object instance associated to the given identifier. |
(package private) boolean |
hasNoInstances()
Checks if this event definition contains event instance(s). |
(package private) void |
releaseResources()
Deregisters all the object instances and release all previously acquired resources. |
(package private) void |
setSchema(List<Map<String,Object>> argumentDefinitions)
Sets the schema for this class definition. |
String |
toString()
|
(package private) void |
updateEventInstanceWithData(QpidEvent.QManManagedEvent instance)
Updates the given obejct instance with the given incoming configuration data. |
Methods inherited from class org.apache.qpid.management.domain.model.QpidEntity |
---|
getName, getPackageName, requestSchema |
Methods inherited from class javax.management.NotificationBroadcasterSupport |
---|
addNotificationListener, getNotificationInfo, handleNotification, removeNotificationListener, removeNotificationListener, sendNotification |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.apache.qpid.management.domain.model.QpidEventMBean |
---|
getName, getPackageName |
Field Detail |
---|
final QpidEvent.State _schemaNotRequested
final QpidEvent.State _schemaRequestedButNotYetInjected
final QpidEvent.State _schemaInjected
static final String SEVERITY_ATTR_NAME
static final String TIMESTAMP_ATTR_NAME
Map<String,QpidProperty> _arguments
List<QpidEvent.QManManagedEvent> _eventInstances
QpidEvent.State _state
Constructor Detail |
---|
QpidEvent(String eventClassName, Binary hash, QpidPackage parentPackage)
className
- the name of the class.hash
- the class schema hash.parentPackage
- the parent of this class.Method Detail |
---|
void addEventData(byte[] rawData, long currentTimestamp, int severity)
objectId
- the object identifier.rawData
- the raw configuration data.void setSchema(List<Map<String,Object>> argumentDefinitions) throws UnableToBuildFeatureException
propertyDefinitions
- properties metadata.statisticDefinitions
- statistics metadata.methodDefinitions
- methods metadata.
UnableToBuildFeatureException
- when some error occurs while parsing the incoming schema.void buildArguments(List<Map<String,Object>> arguments, MBeanAttributeInfo[] attributes) throws UnableToBuildFeatureException
props
- the map contained in the properties schema.stats
- the map contained in the statistics schema.attributes
- the management metadata for attributes.
UnableToBuildFeatureException
- when it's not possibile to build one attribute definition.QpidEvent.QManManagedEvent createEventInstance(byte[] data, long timestamp, int severity)
objectId
- the object identifier.registration
- a flag indicating whenever the (new ) instance must be registered with MBean server.
void updateEventInstanceWithData(QpidEvent.QManManagedEvent instance)
instance
- the managed object instance.rawData
- the incoming configuration data which contains new values for instance properties.public String toString()
toString
in class Object
void releaseResources()
boolean hasNoInstances()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |