|
TPTP 4.5.0 Platform Project Public API Specification |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface CommonBaseEvent
Interface representing an CommonBaseEvent.
The following description is from the Common Base Event v1.0.1 specification entitled "Canonical Situation Data Format: The Common Base Event V1.0.1":
The purpose of the Common Base Event is to facilitate the effective intercommunication among disparate enterprise components that support logging, management, problem determination, autonomic computing and e-business functions in an enterprise.
Common Base Event definition ensures completeness of the data by providing properties to publish the following information:
| Field Summary | |
|---|---|
static short |
PRIORITY_HIGH
Indicative of an important event that requires attention. |
static short |
PRIORITY_LOW
Indicative of an event that does not need to be processed immediately. |
static short |
PRIORITY_MEDIUM
Indicative of an event of average importance. |
static short |
SEVERITY_CRITICAL
Critical is used to indicate that an immediate action is needed and the scope is broad (perhaps an imminent outage to a critical resource will result). |
static short |
SEVERITY_FATAL
Fatal is used to indicate that an error occurred but it is too late to take remedial action. |
static short |
SEVERITY_HARMLESS
Harmless is used for cases when the error event has no effect on the normal operation of the resource. |
static short |
SEVERITY_INFORMATION
Information is used for cases when the event only contains general information and is not reporting an error. |
static short |
SEVERITY_MINOR
Minor is used to indicate that action is needed, but the situation is not serious at this time. |
static short |
SEVERITY_UNKNOWN
Unknown is used for cases when the event severity is not known. |
static short |
SEVERITY_WARNING
Warning is used when it is appropriate to let the user decide if an action is needed in response to the event. |
| Method Summary | |
|---|---|
void |
addAny(java.lang.String any)
Helper method for creating and setting an any element for this object. |
AssociatedEvent |
addAssociatedEvent(AssociatedEvent associatedEvent)
Adds a new AssociatedEvent to this object. |
AssociatedEvent |
addAssociatedEvent(java.lang.String associationEngineName,
java.lang.String associationEngineType,
java.lang.String associationEngineId,
java.lang.String[] resolvedEvents)
Helper method for creating and setting the associated events for this object. |
ContextDataElement |
addContextDataElement(ContextDataElement contextDataElement)
Adds a new ContextDataElement to this object. |
ContextDataElement |
addContextDataElementWithId(java.lang.String contextType,
java.lang.String contextName,
java.lang.String contextId)
Adds a new context data element to this object. |
ContextDataElement |
addContextDataElementWithValue(java.lang.String contextType,
java.lang.String contextName,
java.lang.String contextValue)
Adds a new context data element to this object. |
ExtendedDataElement |
addExtendedDataElement(ExtendedDataElement extendedDataElement)
Adds a new ExtendedDataElement to this object. |
ExtendedDataElement |
addExtendedDataElement(java.lang.String name)
Adds a new ExtendedDataElement to this object. |
ExtendedDataElement |
addExtendedDataElement(java.lang.String name,
int type,
java.lang.String value)
Adds a new ExtendedDataElement to this object. |
ExtendedDataElement |
addExtendedDataElement(java.lang.String name,
int type,
java.lang.String[] values)
Adds a new ExtendedDataElement to this object. |
ExtendedDataElement |
addExtendedDataElement(java.lang.String name,
java.lang.String value)
Adds a new ExtendedDataElement to this object. |
ExtendedDataElement |
addExtendedDataElement(java.lang.String name,
java.lang.String[] values)
Adds a new ExtendedDataElement to this object. |
ExtendedDataElement |
addExtendedDataElementWithBooleanArrayValue(java.lang.String name,
boolean[] values)
An array of product specific extensions for extensibility where you can provide any other attributes not accounted for in the CommonBaseEventImpl. |
ExtendedDataElement |
addExtendedDataElementWithBooleanValue(java.lang.String name,
boolean value)
An array of product specific extensions for extensibility where you can provide any other attributes not accounted for in the CommonBaseEventImpl. |
ExtendedDataElement |
addExtendedDataElementWithByteArrayValue(java.lang.String name,
byte[] values)
Adds a new ExtendedDataElement to this object. |
ExtendedDataElement |
addExtendedDataElementWithByteValue(java.lang.String name,
byte value)
Adds a new ExtendedDataElement to this object. |
ExtendedDataElement |
addExtendedDataElementWithDateArrayValue(java.lang.String name,
java.lang.String[] values)
Adds a new ExtendedDataElement to this object. |
ExtendedDataElement |
addExtendedDataElementWithDateAsLongValue(java.lang.String name,
long value)
Adds a new ExtendedDataElement to this object. |
ExtendedDataElement |
addExtendedDataElementWithDatesAsLongValue(java.lang.String name,
long[] values)
Adds a new ExtendedDataElement to this object. |
ExtendedDataElement |
addExtendedDataElementWithDateValue(java.lang.String name,
java.lang.String value)
Adds a new ExtendedDataElement to this object. |
ExtendedDataElement |
addExtendedDataElementWithDoubleArrayValue(java.lang.String name,
double[] values)
Adds a new ExtendedDataElement to this object. |
ExtendedDataElement |
addExtendedDataElementWithDoubleValue(java.lang.String name,
double value)
Adds a new ExtendedDataElement to this object. |
ExtendedDataElement |
addExtendedDataElementWithFloatArrayValue(java.lang.String name,
float[] values)
Adds a new ExtendedDataElement to this object. |
ExtendedDataElement |
addExtendedDataElementWithFloatValue(java.lang.String name,
float value)
Adds a new ExtendedDataElement to this object. |
ExtendedDataElement |
addExtendedDataElementWithHexValue(java.lang.String name,
byte[] hexValue)
Adds a new ExtendedDataElement to this object. |
ExtendedDataElement |
addExtendedDataElementWithHexValue(java.lang.String name,
java.lang.String hexValue)
Adds a new ExtendedDataElement to this object. |
ExtendedDataElement |
addExtendedDataElementWithIntArrayValue(java.lang.String name,
int[] values)
Adds a new ExtendedDataElement to this object. |
ExtendedDataElement |
addExtendedDataElementWithIntValue(java.lang.String name,
int value)
Adds a new ExtendedDataElement to this object. |
ExtendedDataElement |
addExtendedDataElementWithLongArrayValue(java.lang.String name,
long[] values)
Adds a new ExtendedDataElement to this object. |
ExtendedDataElement |
addExtendedDataElementWithLongValue(java.lang.String name,
long value)
Adds a new ExtendedDataElement to this object. |
ExtendedDataElement |
addExtendedDataElementWithNoValue(java.lang.String name)
Adds a new ExtendedDataElement to this object. |
ExtendedDataElement |
addExtendedDataElementWithShortArrayValue(java.lang.String name,
short[] values)
Adds a new ExtendedDataElement to this object. |
ExtendedDataElement |
addExtendedDataElementWithShortValue(java.lang.String name,
short value)
Adds a new ExtendedDataElement to this object. |
void |
clearAny()
Removes all any strings that this event is referencing |
void |
clearAssociatedEvents()
Removes all ExtenedDataElements that this event is referencing |
void |
clearContextDataElements()
Removes all ExtenedDataElements that this event is referencing |
void |
clearExtendedDataElements()
Removes all ExtenedDataElements that this event is referencing |
void |
complete()
Invokes the content handler associated, if any, with this event instance. |
java.util.List |
getAny()
Returns the value of the 'Any' attribute list. |
java.util.List |
getAssociatedEvents()
Returns the value of the 'Associated Events' containment reference list. |
ContentHandler |
getContentHandler()
Gets the ContentHandler associated with this event
instance. |
java.util.List |
getContextDataElements()
Returns the value of the 'Context Data Elements' containment reference list. |
java.util.List |
getContextDataElements(java.lang.String name)
Get a named a context that this event is referencing. |
java.lang.String |
getCreationTime()
Returns the value of the 'Creation Time' attribute. |
long |
getCreationTimeAsLong()
Resolves the XSD dateTime 'Creation Time' attribute
as a long (milliseconds) time stamp. |
long |
getElapsedTime()
Returns the value of the 'Elapsed Time' attribute. |
java.util.List |
getExtendedDataElements()
Returns the value of the 'Extended Data Elements' containment reference list. |
java.util.List |
getExtendedDataElements(java.lang.String name)
Returns a named ExtendedDataElement from the list of
ExtendedDataElement objects. |
java.lang.String |
getExtensionName()
Returns the value of the 'Extension Name' attribute. |
java.lang.String |
getGlobalInstanceId()
Returns the value of the 'Global Instance ID' attribute. |
java.lang.String |
getLocalInstanceId()
Returns the value of the 'Local Instance ID' attribute. |
java.lang.String |
getMsg()
Returns the value of the 'Msg' attribute. |
MsgDataElement |
getMsgDataElement()
Returns the value of the 'Msg Data Element' containment reference. |
short |
getPriority()
Returns the value of the 'Priority' attribute. |
short |
getRepeatCount()
Returns the value of the 'Repeat Count' attribute. |
ComponentIdentification |
getReporterComponentId()
Returns the value of the 'Reporter Component ID' containment reference. |
long |
getSequenceNumber()
Returns the value of the 'Sequence Number' attribute. |
short |
getSeverity()
Returns the value of the 'Severity' attribute. |
Situation |
getSituation()
Returns the value of the 'Situation' containment reference. |
ComponentIdentification |
getSourceComponentId()
Returns the value of the 'Source Component ID' containment reference. |
java.lang.String |
getVersion()
Returns the value of the 'Version' attribute. |
void |
init()
Resets the object's properties to their initial (e.g. null) state, except the globalInstanceId property. |
boolean |
isComplete()
Determines if the ContentHandler associated with this
event instance, if any, has been previously been invoked. |
boolean |
isSetCreationTime()
Returns whether the value of the ' Creation Time'
attribute is set. |
boolean |
isSetElapsedTime()
Returns whether the value of the ' Elapsed Time'
attribute is set. |
boolean |
isSetPriority()
Returns whether the value of the ' Priority'
attribute is set. |
boolean |
isSetRepeatCount()
Returns whether the value of the ' Repeat Count'
attribute is set. |
boolean |
isSetSequenceNumber()
Returns whether the value of the ' Sequence Number'
attribute is set. |
boolean |
isSetSeverity()
Returns whether the value of the ' Severity'
attribute is set. |
void |
removeContextDataElements(java.lang.String name)
Remove a named context data element that this event is referencing |
void |
removeExtendedDataElements(java.lang.String name)
Remove a named extended data element that this event is referencing |
void |
setContentHandler(ContentHandler contentHandler)
Sets the ContentHandler associated with this event
instance. |
void |
setCreationTime(java.lang.String value)
Sets the value of the ' Creation Time'
attribute. |
void |
setCreationTimeAsLong(long creationTime)
Sets the XSD dateTime 'Creation Time' attribute
as a long (milliseconds) time stamp. |
void |
setElapsedTime(long value)
Sets the value of the ' Elapsed Time'
attribute. |
void |
setExtensionName(java.lang.String value)
Sets the value of the ' Extension Name'
attribute. |
void |
setGlobalInstanceId(java.lang.String value)
Sets the value of the ' Global Instance ID'
attribute. |
void |
setLocalInstanceId(java.lang.String value)
Sets the value of the ' Local Instance ID'
attribute. |
void |
setMsg(java.lang.String value)
Sets the value of the ' Msg'
attribute. |
void |
setMsgDataElement(MsgDataElement value)
Sets the value of the ' Msg Data Element'
containment reference. |
MsgDataElement |
setMsgDataElement(java.lang.String msgCatalog,
java.lang.String msgCatalogId,
MsgCatalogToken[] tokens,
java.lang.String msgCatalogType,
java.lang.String msgId,
java.lang.String msgIdType,
java.lang.String msgCatalogLocale)
Adds a new MsgDataElement to this object. |
MsgDataElement |
setMsgDataElement(java.lang.String msgCatalog,
java.lang.String msgCatalogId,
java.lang.String[] tokens,
java.lang.String msgCatalogType,
java.lang.String msgId,
java.lang.String msgIdType,
java.lang.String msgCatalogLocale)
Adds a new MsgDataElement to this object. |
void |
setPriority(short value)
Sets the value of the ' Priority'
attribute. |
void |
setRepeatCount(short value)
Sets the value of the ' Repeat Count'
attribute. |
void |
setReporterComponentId(ComponentIdentification value)
Sets the value of the ' Reporter Component ID'
containment reference. |
void |
setReporterComponentId(java.lang.String application,
java.lang.String component,
java.lang.String subComponent,
java.lang.String componentType,
java.lang.String componentIdType,
java.lang.String location,
java.lang.String locationType)
Sets the reporter component identifier for this event. |
void |
setReporterComponentId(java.lang.String application,
java.lang.String component,
java.lang.String subComponent,
java.lang.String componentType,
java.lang.String componentIdType,
java.lang.String executionEnvironment,
java.lang.String instanceId,
java.lang.String location,
java.lang.String locationType,
java.lang.String processId,
java.lang.String threadId)
Helper method for creating and setting the reporter component ID for this object. |
void |
setSequenceNumber(long value)
Sets the value of the ' Sequence Number'
attribute. |
void |
setSeverity(short value)
Sets the value of the ' Severity'
attribute. |
void |
setSituation(Situation value)
Sets the value of the ' Situation'
containment reference. |
void |
setSourceComponentId(ComponentIdentification value)
Sets the value of the ' Source Component ID'
containment reference. |
void |
setSourceComponentId(java.lang.String application,
java.lang.String component,
java.lang.String subComponent,
java.lang.String componentType,
java.lang.String componentIdType,
java.lang.String location,
java.lang.String locationType)
Sets the source component identifier for this event. |
void |
setSourceComponentId(java.lang.String application,
java.lang.String component,
java.lang.String subComponent,
java.lang.String componentType,
java.lang.String componentIdType,
java.lang.String executionEnvironment,
java.lang.String instanceId,
java.lang.String location,
java.lang.String locationType,
java.lang.String processId,
java.lang.String threadId)
Sets the source component identifier for this event. |
void |
setVersion(java.lang.String value)
Sets the value of the ' Version'
attribute. |
void |
unsetCreationTime()
Sets the value of the ' Creation Time'
attribute to null and turns off the isSet
flag. |
void |
unsetElapsedTime()
Sets the value of the ' Elapsed Time'
attribute to 0 and turns off the isSet
flag. |
void |
unsetPriority()
Sets the value of the ' Priority'
attribute to 0 and turns off the isSet
flag. |
void |
unsetRepeatCount()
Sets the value of the ' Repeat Count'
attribute to 0 and turns off the isSet
flag. |
void |
unsetSequenceNumber()
Sets the value of the ' Sequence Number'
attribute to 0 and turns off the isSet
flag. |
void |
unsetSeverity()
Sets the value of the ' Severity'
attribute to 0 and turns off the isSet
flag. |
void |
validate()
Checks whether the contents of the instance conform to the CBE specification. |
| Methods inherited from interface org.eclipse.hyades.logging.core.IInternalizableFromXml |
|---|
internalizeCanonicalXmlDocString, internalizeCanonicalXmlString |
| Methods inherited from interface org.eclipse.hyades.logging.core.IExternalizableToXml |
|---|
externalizeCanonicalXmlDocString, externalizeCanonicalXmlString |
| Field Detail |
|---|
static final short PRIORITY_LOW
Indicative of an event that does not need to be processed immediately.
setPriority(short),
Constant Field Valuesstatic final short PRIORITY_MEDIUM
Indicative of an event of average importance.
setPriority(short),
Constant Field Valuesstatic final short PRIORITY_HIGH
Indicative of an important event that requires attention.
setPriority(short),
Constant Field Valuesstatic final short SEVERITY_UNKNOWN
Unknown is used for cases when the event severity is not known.
setSeverity(short),
Constant Field Valuesstatic final short SEVERITY_INFORMATION
Information is used for cases when the event only contains general information and is not reporting an error.
setSeverity(short),
Constant Field Valuesstatic final short SEVERITY_HARMLESS
Harmless is used for cases when the error event has no effect on the normal operation of the resource.
setSeverity(short),
Constant Field Valuesstatic final short SEVERITY_WARNING
Warning is used when it is appropriate to let the user decide if an action is needed in response to the event.
setSeverity(short),
Constant Field Valuesstatic final short SEVERITY_MINOR
Minor is used to indicate that action is needed, but the situation is not serious at this time.
setSeverity(short),
Constant Field Valuesstatic final short SEVERITY_CRITICAL
Critical is used to indicate that an immediate action is needed and the scope is broad (perhaps an imminent outage to a critical resource will result).
setSeverity(short),
Constant Field Valuesstatic final short SEVERITY_FATAL
Fatal is used to indicate that an error occurred but it is too late to take remedial action.
setSeverity(short),
Constant Field Values| Method Detail |
|---|
java.util.List getAny()
String.
The XML fragment found inside an <any> element of the XML representation of CBE event.
java.util.List getAssociatedEvents()
AssociatedEvent.
This property allows events to be grouped. This property is a complex type that consists of globalInstanceIds that identify the associated events plus a type field that describes the type of association that is represented by the name of the association. This is an optional property.
java.util.List getContextDataElements()
ContextDataElement.
An array of contexts that this event is referencing. See the ContextDataElement definition for details. This is an optional property.
java.util.List getContextDataElements(java.lang.String name)
name - the name of the element to be found
void setCreationTime(java.lang.String value)
Creation Time'
attribute.
The date-time when the event was issued. The value must be as defined by the XML Schema dateTime data type. The value must be as precise as the generating platform allows. This is a required property.
The parameter is represented in terms of the DateTime XML type as defined in the XML Schema specification.
value - the new value of the 'Creation Time' attribute.isSetCreationTime(),
unsetCreationTime(),
getCreationTime()void unsetCreationTime()
Sets the value of the '
Creation Time'
attribute to null and turns off the isSet
flag.
isSetCreationTime(),
getCreationTime(),
setCreationTime(String)boolean isSetCreationTime()
Returns whether the value of the '
Creation Time'
attribute is set.
unsetCreationTime(),
getCreationTime(),
setCreationTime(String)java.lang.String getCreationTime()
Returns the value of the 'Creation Time' attribute.
isSetCreationTime(),
unsetCreationTime(),
setCreationTime(String)void setCreationTimeAsLong(long creationTime)
dateTime 'Creation Time' attribute
as a long (milliseconds) time stamp.
See EventHelpers#dateToLong(String) for more information
on the long (milliseconds) and XSD dateTime time stamp
formats and the conversion from a long time stamp to an XSD
dateTime time stamp.
creationTime - The long (milliseconds) time stamp to be converted to the XSD dateTime 'Creation Time' attribute.org.eclipse.tptp.logging.events.cbe.EventPackage#getCommonBaseEvent_CreationTime(),
EventHelpers#dateToLong(String),
setCreationTime(String),
getCreationTime(),
getCreationTimeAsLong()long getCreationTimeAsLong()
dateTime 'Creation Time' attribute
as a long (milliseconds) time stamp.
See EventHelpers#dateToLong(String) for more information
on the XSD dateTime and long (milliseconds) time stamp
formats and the conversion from an XSD dateTime time
stamp to a long time stamp.
dateTime 'Creation Time' attribute.org.eclipse.tptp.logging.events.cbe.EventPackage#getCommonBaseEvent_CreationTime(),
EventHelpers#dateToLong(String),
setCreationTime(String),
getCreationTime(),
setCreationTimeAsLong(long)long getElapsedTime()
Returns the value of the 'Elapsed Time' attribute.
This is the time interval or the elapsed time for the number of occurrences of a given event type that is specified by the repeatCount property. This value indicates the duration of the time within which the repeated events were observed. This is an OPTIONAL property. However, if repeatCount is specified you MUST specify a value for elapsedTime. The default value is 0, which is a valid value for this property. For this reason the 'isSetElapsedTime()'
method should always be called before calling this method. This allows
the user to distinguish the default value from a value that has been set
to 0.
isSetElapsedTime(),
unsetElapsedTime(),
setElapsedTime(long)void setElapsedTime(long value)
Elapsed Time'
attribute.
This is the time interval or the elapsed time during which the number of
identical events occurred (as specified by the repeatCount property).
This property is expressed in microseconds. If no value (or zero) is
specified for repeatCount, then this is an optional property.
However, if repeatCount is specified (it has a non-zero value), then
elapsedTime is required. The default value is 0, which is a
valid value for this property. Use the '
isSetElapsedTime()'
to distinguish the default value from a value that has been set to 0.
value - the new value of the 'Elapsed Time' attribute.isSetElapsedTime(),
unsetElapsedTime(),
getElapsedTime()void unsetElapsedTime()
Elapsed Time'
attribute to 0 and turns off the isSet
flag.
isSetElapsedTime(),
getElapsedTime(),
setElapsedTime(long)boolean isSetElapsedTime()
Returns whether the value of the '
Elapsed Time'
attribute is set.
unsetElapsedTime(),
getElapsedTime(),
setElapsedTime(long)java.util.List getExtendedDataElements(java.lang.String name)
Returns a named ExtendedDataElement from the list of
ExtendedDataElement objects.
name - the name of the ExtendedDataElement
ExtendedDataElement objects.ExtendedDataElementjava.util.List getExtendedDataElements()
ExtendedDataElement.
An array of product specific extensions that allows any other attributes not defined by the CommonBaseEvent. Information placed here is assumed to be product specific data; its interpretation is not specified. This is an optional property.
void setExtensionName(java.lang.String value)
Extension Name'
attribute.
The name of an event class (or element in XML) that this event represents (for example, CommonBaseEvent). The name indicates any additional elements that are expected to be present within the event.
This is an optional property. If the value specified is null,
then the value is assumed to be CommonBaseEvent. The
string length for extensionName must not exceed 64 characters.
value - the new value of the 'Extension Name' attribute.getExtensionName()java.lang.String getExtensionName()
Returns the value of the 'Extension Name' attribute.
setExtensionName(String)void setGlobalInstanceId(java.lang.String value)
Global Instance ID'
attribute.
The primary identifier for the event. This property must be globally unique and may be used as the primary key for the event.
This is an optional property. However, once this value is set it must never be changed. The recommended value is either a 128 bit or 256 bit Globally Unique ID and must start with an alphabetic character (meaning, a-z and A-Z).
value - the new value of the 'Global Instance ID'
attribute.getGlobalInstanceId()java.lang.String getGlobalInstanceId()
Returns the value of the 'Global Instance ID' attribute.
setGlobalInstanceId(String)void setLocalInstanceId(java.lang.String value)
Local Instance ID'
attribute.
A source supplied event identifier. There is no guarantee that this value is globally unique.
This is an optional property. The string length for localInstanceId must not exceed 128 characters.
value - the new value of the 'Local Instance ID'
attribute.getLocalInstanceId()java.lang.String getLocalInstanceId()
setLocalInstanceId(String)void setMsg(java.lang.String value)
Msg'
attribute.
The text accompanying the event. This is typically the resolved message string in human readable format rendered for a specific locale.
This is and optional property. The string length for msg must not exceed 1024 characters.
value - the new value of the 'Msg' attribute.getMsg()java.lang.String getMsg()
Returns the value of the 'Msg' attribute.
setMsg(String)void setMsgDataElement(MsgDataElement value)
Msg Data Element'
containment reference.
Identification of the message that this event holds. See the MsgDataElement definition. This is an optional property.
value - the new value of the 'Msg Data Element'
containment reference.getMsgDataElement()MsgDataElement getMsgDataElement()
Returns the value of the 'Msg Data Element' containment reference.
setMsgDataElement(MsgDataElement)void setPriority(short value)
Sets the value of the '
Priority'
attribute.
Defines the importance of the event. The predefined priorities are:
isSetPriority()'
to distinguish the default value from a value that has been set to 0.
value - the new value of the 'Priority' attribute.isSetPriority(),
unsetPriority(),
getPriority()void unsetPriority()
Sets the value of the '
Priority'
attribute to 0 and turns off the isSet
flag.
isSetPriority(),
getPriority(),
setPriority(short)boolean isSetPriority()
Priority'
attribute is set.
unsetPriority(),
getPriority(),
setPriority(short)short getPriority()
Returns the value of the 'Priority' attribute.
The default value is 0, which is a valid value for this property. For this reason the 'isSetPriority()'
method should always be called before calling this method. This allows
the user to distinguish the default value from a value that has been set
to 0.
isSetPriority(),
unsetPriority(),
setPriority(short)void setRepeatCount(short value)
Repeat Count'
attribute.
The number of occurrences of an identical event within a specific time interval.
This is an optional property. A value of 0 or no value is
indicative of no repeat of the event detected. The default value is 0,
which is a valid value for this property. Use the '
isSetRepeatCount()'
to distinguish the default value from a value that has been set to 0.
value - the new value of the 'Repeat Count' attribute.isSetRepeatCount(),
unsetRepeatCount(),
getRepeatCount()void unsetRepeatCount()
Repeat Count'
attribute to 0 and turns off the isSet
flag.
isSetRepeatCount(),
getRepeatCount(),
setRepeatCount(short)boolean isSetRepeatCount()
Returns whether the value of the '
Repeat Count'
attribute is set.
unsetRepeatCount(),
getRepeatCount(),
setRepeatCount(short)short getRepeatCount()
Returns the value of the 'Repeat Count' attribute.
The number of occurrences of a given event for a specific time interval. This is an OPTIONAL property. A value of 0 or no value is indicative of no repeat of the event detected. The default value is 0, which is a valid value for this property. For this reason the 'isSetRepeatCount()'
method should always be called before calling this method. This allows
the user to distinguish the default value from a value that has been set
to 0.
isSetRepeatCount(),
unsetRepeatCount(),
setRepeatCount(short)void setReporterComponentId(ComponentIdentification value)
Reporter Component ID'
containment reference.
Identification of the component that is the reporter of the event or the situation.
It is a required property if the reporting component is different than the source component. Otherwise this field must not be present.
value - the new value of the 'Reporter Component ID'
containment reference.getReporterComponentId()
void setReporterComponentId(java.lang.String application,
java.lang.String component,
java.lang.String subComponent,
java.lang.String componentType,
java.lang.String componentIdType,
java.lang.String location,
java.lang.String locationType)
It creates a ComponentIdentification object and sets it in
the respective field of this object.
application - the name of the application for the source componentcomponent - the name of the component for the source componentsubComponent - the name of the subcomponent for the source componentcomponentType - the component type for the source componentcomponentIdType - the component ID type for the source componentlocation - the location for the source componentlocationType - the location type for the source component
void setReporterComponentId(java.lang.String application,
java.lang.String component,
java.lang.String subComponent,
java.lang.String componentType,
java.lang.String componentIdType,
java.lang.String executionEnvironment,
java.lang.String instanceId,
java.lang.String location,
java.lang.String locationType,
java.lang.String processId,
java.lang.String threadId)
Helper method for creating and setting the reporter component ID for this object.
It creates a ComponentIdentification object and sets it in
the respective field of this object.
application - the name of the application for the reporting componentcomponent - the name of the component for the reporting componentcomponentType - the component type for the reporting componentcomponentIdType - the component ID type for the reporting componentexecutionEnvironment - the name of the execution environment for the reporting
componentinstanceId - the instance ID for the reporting componentlocation - the location for the reporting componentlocationType - the location type for the reporting componentprocessId - the process ID for the reporting componentsubComponent - the name of the subcomponent for the reporting componentthreadId - the thread ID for the reporting componentComponentIdentification getReporterComponentId()
Returns the value of the 'Reporter Component ID' containment reference.
setReporterComponentId(ComponentIdentification)void setSequenceNumber(long value)
Sequence Number'
attribute.
A source-defined number that allows for multiple messages to be sent and processed in a logical order that is different than the order in which they arrived at the consumer location (for example, an event server or management tools). The sequence number helps consumers to sort arrived messages that may arrive out-of-order. This is with respect to the creation time and to the particular reporter of the messages.
This is an optional property. The default value is 0, which is
a valid value for this property. Use the '
isSetSequenceNumber()'
to distinguish the default value from a value that has been set to 0.
value - the new value of the 'Sequence Number' attribute.isSetSequenceNumber(),
unsetSequenceNumber(),
getSequenceNumber()void unsetSequenceNumber()
Sequence Number'
attribute to 0 and turns off the isSet
flag.
isSetSequenceNumber(),
getSequenceNumber(),
setSequenceNumber(long)boolean isSetSequenceNumber()
Returns whether the value of the '
Sequence Number'
attribute is set.
unsetSequenceNumber(),
getSequenceNumber(),
setSequenceNumber(long)long getSequenceNumber()
Returns the value of the 'Sequence Number' attribute.
A source defined number that allows for multiple messages to be sent and processed in logical order different from the order in which they arrived at consumer location (e.g., an event server or management tools). The sequence number helps consumers to sort arrived messages. This is with respect to the creation time and to the particular reporter of the messages. This is an OPTIONAL property. The default value is 0, which is a valid value for this property. For this reason the 'isSequenceNumber()'
method should always be called before calling this method. This allows
the user to distinguish the default value from a value that has been set
to 0.
isSetSequenceNumber(),
unsetSequenceNumber(),
setSequenceNumber(long)void setSeverity(short value)
Severity'
attribute.
The perceived severity of the status the event is describing with respect to the application that reports the event. The predefined severity levels, in order of increasing severity, are as follows:
isSetSeverity()'
to distinguish the default value from a value that has been set to 0.
value - the new value of the 'Severity' attribute.isSetSeverity(),
unsetSeverity(),
getSeverity()void unsetSeverity()
Sets the value of the '
Severity'
attribute to 0 and turns off the isSet
flag.
isSetSeverity(),
getSeverity(),
setSeverity(short)boolean isSetSeverity()
Returns whether the value of the '
Severity'
attribute is set.
unsetSeverity(),
getSeverity(),
setSeverity(short)short getSeverity()
Returns the value of the 'Severity' attribute.
The values are 0 to 70. The reserved values start at 0 for Unknown and increase by increments of 10 to 60 for Fatal. Other severities MAY be added but MUST not exceed 70. This is an OPTIONAL property. The default value is 0, which is a valid value for this property. For this reason the 'isSetSeverity()'
method should always be called before calling this method. This allows
the user to distinguish the default value from a value that has been set
to 0.
isSetSeverity(),
unsetSeverity(),
setSeverity(short)void setSituation(Situation value)
Situation'
containment reference.
The situation specifies the type of the situation that caused the event to be reported. See the Situation definition for details. This is a required property.
value - the new value of the 'Situation' containment
reference.getSituation()Situation getSituation()
setSituation(Situation)void setSourceComponentId(ComponentIdentification value)
Source Component ID'
containment reference.
Identification of the component that is affected or was impacted by the event or the situation.
This is a required property for the component that is affected by the situation.
value - the new value of the 'Source Component ID'
containment reference.getSourceComponentId()
void setSourceComponentId(java.lang.String application,
java.lang.String component,
java.lang.String subComponent,
java.lang.String componentType,
java.lang.String componentIdType,
java.lang.String executionEnvironment,
java.lang.String instanceId,
java.lang.String location,
java.lang.String locationType,
java.lang.String processId,
java.lang.String threadId)
It creates a ComponentIdentification object and sets it in
the respective field of this object.
application - the name of the application for the source componentcomponent - the name of the component for the source componentcomponentType - the component type for the source componentcomponentIdType - the component ID type for the source componentexecutionEnvironment - the name of the execution environment for the source componentinstanceId - the instance ID for the source componentlocation - the location for the source componentlocationType - the location type for the source componentprocessId - the process ID for the source componentsubComponent - the name of the subcomponent for the source componentthreadId - the thread ID for the source component
void setSourceComponentId(java.lang.String application,
java.lang.String component,
java.lang.String subComponent,
java.lang.String componentType,
java.lang.String componentIdType,
java.lang.String location,
java.lang.String locationType)
It creates a ComponentIdentification object and sets it in
the respective field of this object.
application - the name of the application for the source componentcomponent - the name of the component for the source componentsubComponent - the name of the subcomponent for the source componentcomponentType - the component type for the source componentcomponentIdType - the component ID type for the source componentlocation - the location for the source componentlocationType - the location type for the source componentComponentIdentification getSourceComponentId()
Returns the value of the 'Source Component ID' containment reference.
setSourceComponentId(ComponentIdentification)void setVersion(java.lang.String value)
Version'
attribute.
A string identifying the version of this event.
This field is optional in that if it isn't specified, the
version of the CBE is said to be 1.0. Otherwise this field must
be filled in and must be consistent with the version specified
in the schema header. The string length for version must not
exceed 16 characters. When an application is creating an event following
this version of the specification this field should be set to
1.0.1
value - the new value of the 'Version' attribute.getVersion()java.lang.String getVersion()
Returns the value of the 'Version' attribute. The
default value is "1.0.1".
setVersion(String)void addAny(java.lang.String any)
It creates an object and sets it in the respective field of this object.
any - A string representing an XML element.getAny()
AssociatedEvent addAssociatedEvent(java.lang.String associationEngineName,
java.lang.String associationEngineType,
java.lang.String associationEngineId,
java.lang.String[] resolvedEvents)
It creates an AssociatedEvent object and sets it in the
respective field of this object.
associationEngineName - name for the association engineassociationEngineType - type for the association engineassociationEngineId - identifier for the association engine.resolvedEvents - an array of globalInstanceIds that are associated to this
event
getAssociatedEvents()
ContextDataElement addContextDataElementWithValue(java.lang.String contextType,
java.lang.String contextName,
java.lang.String contextValue)
It creates a ContextDataElement object and sets it in the
respective field of this object.
contextType - type of the contextcontextName - name of the contextcontextValue - contextValue of the context
getContextDataElements()
ContextDataElement addContextDataElementWithId(java.lang.String contextType,
java.lang.String contextName,
java.lang.String contextId)
It creates a ContextDataElement object and sets it in the
respective field of this object.
contextType - type of the contextcontextName - name of the contextcontextId - contextId of the context
getContextDataElements()ExtendedDataElement addExtendedDataElement(java.lang.String name)
ExtendedDataElement to this object.
It creates an ExtendedDataElement object without any
values adds it to the list of extended data elements for this object.
name - the name for the new extended data element.
getExtendedDataElements()
ExtendedDataElement addExtendedDataElement(java.lang.String name,
java.lang.String value)
ExtendedDataElement to this object.
It creates an ExtendedDataElement object containing the
value passed as parameter and adds it to the list of extended data
elements for this object.
name - the name for the new extended data element.value - the value for the new extended data element.
getExtendedDataElements()
ExtendedDataElement addExtendedDataElement(java.lang.String name,
java.lang.String[] values)
ExtendedDataElement to this object.
It creates an ExtendedDataElement object with the values
passed as parameters and adds it to the list of extended data elements
for this object.
name - the name for the new extended data element.values - the array of String values for the new extended
data element.
getExtendedDataElements()
ExtendedDataElement addExtendedDataElement(java.lang.String name,
int type,
java.lang.String value)
ExtendedDataElement to this object.
It creates an ExtendedDataElement object containing the
value passed as parameter and adds it to the list of extended data
elements for this object.
name - the name for the new extended data element.type - represents the data type for the new extended data element.
Refer to the
ExtendedDataElement.TYPE_<type>_VALUE
constants for valid types.value - the value for the new extended data element.
java.lang.IllegalArgumentException - if the type parameter is not one of the
constants defined in
ExtendedDataElement.TYPE_<type>_VALUEgetExtendedDataElements()
ExtendedDataElement addExtendedDataElement(java.lang.String name,
int type,
java.lang.String[] values)
ExtendedDataElement to this object.
It creates an ExtendedDataElement object with the values
passed as parameters and adds it to the list of extended data elements
for this object.
name - the name for the new extended data element.type - represents the data type for the new extended data element.
Refer to the
ExtendedDataElement.TYPE_<type>_VALUE
constants for valid types.values - the array of values for the new extended data element.
java.lang.IllegalArgumentException - if the type parameter is not one of the
constants defined in
ExtendedDataElement.TYPE_<type>_VALUEgetExtendedDataElements()
ExtendedDataElement addExtendedDataElementWithBooleanArrayValue(java.lang.String name,
boolean[] values)
ExtendedDataElement addExtendedDataElementWithBooleanValue(java.lang.String name,
boolean value)
ExtendedDataElement addExtendedDataElementWithByteArrayValue(java.lang.String name,
byte[] values)
ExtendedDataElement to this object.
It creates an ExtendedDataElement object with the values
passed as parameters and adds it to the list of extended data elements
for this object.
name - the name for the new extended data element.values - the array of byte values for the new extended
data element.
getExtendedDataElements()
ExtendedDataElement addExtendedDataElementWithByteValue(java.lang.String name,
byte value)
ExtendedDataElement to this object.
It creates an ExtendedDataElement object containing the
value passed as parameter and adds it to the list of extended data
elements for this object.
name - the name for the new extended data element.value - the value for the new extended data element.
getExtendedDataElements()
ExtendedDataElement addExtendedDataElementWithDateArrayValue(java.lang.String name,
java.lang.String[] values)
ExtendedDataElement to this object.
It creates an ExtendedDataElement object with the values
passed as parameters and adds it to the list of extended data elements
for this object.
The values correspond to a date time string according to the XML schema dateTime definition .
name - the name for the new extended data element.values - the array of String instances representing the
date time values for the new extended data element.
getExtendedDataElements()
ExtendedDataElement addExtendedDataElementWithDateAsLongValue(java.lang.String name,
long value)
ExtendedDataElement to this object.
It creates an ExtendedDataElement object containing the
value passed as parameter and adds it to the list of extended data
elements for this object.
name - the name for the new extended data element.value - number of milliseconds since January 1, 1970 UTC; representing
the date time value for the new extended data element.
getExtendedDataElements()
ExtendedDataElement addExtendedDataElementWithDateValue(java.lang.String name,
java.lang.String value)
ExtendedDataElement to this object.
It creates an ExtendedDataElement object containing the
value passed as parameter and adds it to the list of extended data
elements for this object.
The value corresponds to a date time string according to the XML schema dateTime definition .
name - the name for the new extended data element.value - representation of the date time value for the new extended
data element.
getExtendedDataElements()
ExtendedDataElement addExtendedDataElementWithDatesAsLongValue(java.lang.String name,
long[] values)
ExtendedDataElement to this object.
It creates an ExtendedDataElement object with the values
passed as parameters and adds it to the list of extended data elements
for this object.
name - the name for the new extended data element.values - the array of long values for the new extended
data element. Each value corresponds to the number of
milliseconds since January 1, 1970 UTC.
getExtendedDataElements()
ExtendedDataElement addExtendedDataElementWithDoubleArrayValue(java.lang.String name,
double[] values)
ExtendedDataElement to this object.
It creates an ExtendedDataElement object with the values
passed as parameters and adds it to the list of extended data elements
for this object.
name - the name for the new extended data element.values - the array of double values for the new extended
data element.
getExtendedDataElements()
ExtendedDataElement addExtendedDataElementWithDoubleValue(java.lang.String name,
double value)
ExtendedDataElement to this object.
It creates an ExtendedDataElement object containing the
value passed as parameter and adds it to the list of extended data
elements for this object.
name - the name for the new extended data element.value - the double value that the new
ExtendedDataElement will contain.
getExtendedDataElements()
ExtendedDataElement addExtendedDataElementWithFloatArrayValue(java.lang.String name,
float[] values)
ExtendedDataElement to this object.
It creates an ExtendedDataElement object with the values
passed as parameters and adds it to the list of extended data elements
for this object.
name - the name for the new extended data element.values - the array of float/code> values for the new
extended data element.
- Returns:
- a reference to the extended data element added
to this object.
- See Also:
getExtendedDataElements()
ExtendedDataElement addExtendedDataElementWithFloatValue(java.lang.String name,
float value)
ExtendedDataElement to this object.
It creates an ExtendedDataElement object containing the
value passed as parameter and adds it to the list of extended data
elements for this object.
name - the name for the new extended data element.value - the value for the new extended data element.
getExtendedDataElements()
ExtendedDataElement addExtendedDataElementWithIntArrayValue(java.lang.String name,
int[] values)
ExtendedDataElement to this object.
It creates an ExtendedDataElement object with the values
passed as parameters and adds it to the list of extended data elements
for this object.
name - the name for the new extended data element.values - the array of int values for the new extended
data element.
getExtendedDataElements()
ExtendedDataElement addExtendedDataElementWithIntValue(java.lang.String name,
int value)
ExtendedDataElement to this object.
It creates an ExtendedDataElement object containing the
value passed as parameter and adds it to the list of extended data
elements for this object.
name - the name for the new extended data element.value - the value for the new extended data element.
getExtendedDataElements()
ExtendedDataElement addExtendedDataElementWithLongArrayValue(java.lang.String name,
long[] values)
ExtendedDataElement to this object.
It creates an ExtendedDataElement object with the values
passed as parameters and adds it to the list of extended data elements
for this object.
name - the name for the new extended data element.values - the array of long values for the new extended
data element.
getExtendedDataElements()
ExtendedDataElement addExtendedDataElementWithLongValue(java.lang.String name,
long value)
ExtendedDataElement to this object.
It creates an ExtendedDataElement object containing the
value passed as parameter and adds it to the list of extended data
elements for this object.
name - the name for the new extended data element.value - the value for the new extended data element.
getExtendedDataElements()ExtendedDataElement addExtendedDataElementWithNoValue(java.lang.String name)
ExtendedDataElement to this object.
It creates an ExtendedDataElement object containing no
value and adds it to the list of extended data elements for this object.
name - the name for the new extended data element.
getExtendedDataElements()
ExtendedDataElement addExtendedDataElementWithShortArrayValue(java.lang.String name,
short[] values)
ExtendedDataElement to this object.
It creates an ExtendedDataElement object with the values
passed as parameters and adds it to the list of extended data elements
for this object.
name - the name for the new extended data element.values - the array of short values for the new extended
data element.
getExtendedDataElements()
ExtendedDataElement addExtendedDataElementWithShortValue(java.lang.String name,
short value)
ExtendedDataElement to this object.
It creates an ExtendedDataElement object containing the
value passed as parameter and adds it to the list of extended data
elements for this object.
name - the name for the new extended data element.value - the value for the new extended data element.
getExtendedDataElements()
ExtendedDataElement addExtendedDataElementWithHexValue(java.lang.String name,
java.lang.String hexValue)
ExtendedDataElement to this object.
It creates an ExtendedDataElement object with the hexValue
passed as parameter and adds it to the list of extended data elements for
this object.
name - the name for the new extended data element.hexValue - the hexadecimal string for the hexValue field
of the new extended data element.
getExtendedDataElements()
ExtendedDataElement addExtendedDataElementWithHexValue(java.lang.String name,
byte[] hexValue)
ExtendedDataElement to this object.
It creates an ExtendedDataElement object with the hexValue
passed as parameter and adds it to the list of extended data elements for
this object.
name - the name for the new extended data element.hexValue - the array of bytes for the hexValue field of
the new extended data element.
getExtendedDataElements()ExtendedDataElement addExtendedDataElement(ExtendedDataElement extendedDataElement)
ExtendedDataElement to this object.
extendedDataElement - the new extended data element.
getExtendedDataElements()void clearExtendedDataElements()
void removeExtendedDataElements(java.lang.String name)
name - the name of the element to be removedContextDataElement addContextDataElement(ContextDataElement contextDataElement)
ContextDataElement to this object.
contextDataElement - the new context data element.
getContextDataElements()void clearContextDataElements()
void removeContextDataElements(java.lang.String name)
name - the name of the element to be removedAssociatedEvent addAssociatedEvent(AssociatedEvent associatedEvent)
AssociatedEvent to this object.
associatedEvent - the new context data element.
getAssociatedEvents()void clearAssociatedEvents()
void clearAny()
MsgDataElement setMsgDataElement(java.lang.String msgCatalog,
java.lang.String msgCatalogId,
java.lang.String[] tokens,
java.lang.String msgCatalogType,
java.lang.String msgId,
java.lang.String msgIdType,
java.lang.String msgCatalogLocale)
MsgDataElement to this object.
It creates a MsgDataElement object and sets it in the
respective field of this object.
msgCatalog - the message catalog for this MsgDataElementmsgCatalogId - the message catalog ID for this MsgDataElementtokens - the message catalog tokens for this
MsgDataElementmsgCatalogType - the message catalog type for this MsgDataElementmsgId - the message ID for this MsgDataElementmsgIdType - the message ID type for this MsgDataElementmsgCatalogLocale - the locale for this MsgDataElement
MsgDataElement setMsgDataElement(java.lang.String msgCatalog,
java.lang.String msgCatalogId,
MsgCatalogToken[] tokens,
java.lang.String msgCatalogType,
java.lang.String msgId,
java.lang.String msgIdType,
java.lang.String msgCatalogLocale)
MsgDataElement to this object.
It creates a MsgDataElement object and sets it in the
respective field of this object.
msgCatalog - the message catalog for this MsgDataElementmsgCatalogId - the message catalog ID for this MsgDataElementtokens - the message catalog tokens for this
MsgDataElementmsgCatalogType - the message catalog type for this MsgDataElementmsgId - the message ID for this MsgDataElementmsgIdType - the message ID type for this MsgDataElementmsgCatalogLocale - the locale for this MsgDataElement
void complete()
throws CompletionException
Invocations of this method cause the flag denoting if
ContentHandler associated with this event instance has
been previously been invoked to be true.
CompletionException - if the event content cannot be completed for whatever reason.boolean isComplete()
ContentHandler associated with this
event instance, if any, has been previously been invoked.
ContentHandler has been previously
been invoked, otherwise false.void setContentHandler(ContentHandler contentHandler)
ContentHandler associated with this event
instance.
Invocations of this method cause the flag denoting if the
ContentHandler associated with this event instance has
been previously invoked to be false.
contentHandler - The new ContentHandler associated with this
event instance.ContentHandler getContentHandler()
ContentHandler associated with this event
instance.
ContentHandler associated with this event
instance.
void validate()
throws ValidationException
Checks whether the contents of the instance conform to the CBE specification.
ValidationException - if the event instance does not follow the CBE specification.void init()
globalInstanceId property.
This API assigns a new unique GUID to the
globalInstanceId property.
|
TPTP 4.5.0 Platform Project Public API Specification |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||