|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.eclipse.hyades.logging.events.CommonBaseEventFactory
Factory to construct ICommonBaseEvent objects.
Field Summary |
---|
Fields inherited from interface org.eclipse.hyades.logging.events.IEventFactory |
---|
CURRENT_TIME, UNSPECIFIED_ELAPSED_TIME, UNSPECIFIED_PRIORITY, UNSPECIFIED_REPEAT_COUNT, UNSPECIFIED_SEQUENCE_NUM, UNSPECIFIED_SEVERITY |
Constructor Summary | |
---|---|
protected |
CommonBaseEventFactory()
Deprecated. Protected constructor for CommonBaseEventFactory. |
Method Summary | |
---|---|
ICommonBaseEvent |
createEmptyEvent()
Deprecated. Create an empty event. |
ICommonBaseEvent |
createEvent(java.util.Date creationTime,
IComponentIdentification sourceCompId)
Deprecated. Create a new event. |
ICommonBaseEvent |
createEvent(java.util.Date creationTime,
java.lang.String localInstId,
java.lang.String globalInstId,
short severity,
short priority,
IComponentIdentification reporterCompId,
IComponentIdentification sourceCompId,
ISituation situation,
IContextDataElement[] contextData,
IMsgDataElement msgData,
java.lang.String msg,
short repeatCount,
long elapsedTime,
IAssociatedEvent[] assocEvents,
java.lang.String extensionName,
IExtendedDataElement[] extendedData,
long sequenceNum,
java.lang.String[] otherData)
Deprecated. Create a new event. |
ICommonBaseEvent |
createEvent(java.util.Date creationTime,
java.lang.String localInstId,
java.lang.String globalInstId,
short severity,
short priority,
IComponentIdentification reporterCompId,
IComponentIdentification sourceCompId,
java.lang.String situationType,
IContextDataElement[] contextData,
IMsgDataElement msgData,
java.lang.String msg,
short repeatCount,
long elapsedTime,
IAssociatedEvent[] assocEvents,
java.lang.String extensionName,
IExtendedDataElement[] extendedData,
long sequenceNum)
Deprecated. Use the createEvent(Date, String, String, short, short, IComponentIdentification, IComponentIdentification, ISituation, IContextDataElement[], IMsgDataElement, String, short, long, IAssociatedEvent, String, IExtendedDataElement, long,String[]) as of 1.0.1. |
ICommonBaseEvent |
createEvent(long creationTime,
IComponentIdentification sourceCompId)
Deprecated. Create a new event. |
ICommonBaseEvent |
createEvent(long creationTime,
java.lang.String localInstId,
java.lang.String globalInstId,
short severity,
short priority,
IComponentIdentification reporterCompId,
IComponentIdentification sourceCompId,
ISituation situation,
IContextDataElement[] contextData,
IMsgDataElement msgData,
java.lang.String msg,
short repeatCount,
long elapsedTime,
IAssociatedEvent[] assocEvents,
java.lang.String extensionName,
IExtendedDataElement[] extendedData,
long sequenceNum,
java.lang.String[] otherData)
Deprecated. Create a new event. |
ICommonBaseEvent |
createEvent(long creationTime,
java.lang.String localInstId,
java.lang.String globalInstId,
short severity,
short priority,
IComponentIdentification reporterCompId,
IComponentIdentification sourceCompId,
java.lang.String situationType,
IContextDataElement[] contextData,
IMsgDataElement msgData,
java.lang.String msg,
short repeatCount,
long elapsedTime,
IAssociatedEvent[] assocEvents,
java.lang.String extensionName,
IExtendedDataElement[] extendedData,
long sequenceNum)
Deprecated. Use the createEvent(long, String, String, short, short, IComponentIdentification, IComponentIdentification, ISituation, IContextDataElement[], IMsgDataElement, String, short, long, IAssociatedEvent, String, IExtendedDataElement, long,String[]) as of 1.0.1. |
java.lang.String |
getEventInterfaceClassName()
Deprecated. Get the fully-qualified interface name for the events created by this factory. |
ICommonBaseEvent |
getEventSettings()
Deprecated. Get the optional event settings for this factory instance. |
java.lang.String |
getName()
Deprecated. Get the name of this factory instance. |
void |
init(java.lang.String name)
Deprecated. Initialization method. |
void |
setEventSettings(ICommonBaseEvent settings)
Deprecated. Set the optional event settings for this factory instance. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
protected CommonBaseEventFactory()
FactoryHome
rather than directly creating event factories.
Method Detail |
public java.lang.String getName()
getName
in interface IEventFactory
public java.lang.String getEventInterfaceClassName()
org.eclipse.hyades.logging.events.ICommonBaseEvent
or an interface which extends it.
getEventInterfaceClassName
in interface IEventFactory
public ICommonBaseEvent getEventSettings()
getEventSettings
in interface IEventFactory
null
if no settings
have been defined.public void setEventSettings(ICommonBaseEvent settings)
The settings object should be an event which was
created by this factory's createEmptyEvent()
method, then populated with values.
setEventSettings
in interface IEventFactory
public ICommonBaseEvent createEvent(java.util.Date creationTime, IComponentIdentification sourceCompId)
createEvent
in interface IEventFactory
creationTime
- The creation time for the event,
or null
to use the
current system time.sourceCompId
- The source component ID for the event,
or null
to copy the value
from the event settings.
If event settings are defined for this factory instance, they will be used to set any fields not specified above.
NOTE: If the source component ID is not specified and is
not found in the factory event settings, the event will not
be created. Use createEmptyEvent()
to create an
event with no creation time or source component ID.
null
if no value
was found for the required source component ID.
The new event will implement the interface reported by
getEventInterfaceClassName()
.
public ICommonBaseEvent createEvent(long creationTime, IComponentIdentification sourceCompId)
createEvent
in interface IEventFactory
creationTime
- The creation time for the event, or
CURRENT_TIME
to use the
current system time.sourceCompId
- The source component ID for the event,
or null
to copy the value
from the event settings.
If event settings are defined for this factory instance, they will be used to set any fields not specified above.
NOTE: If the source component ID is not specified and is
not found in the factory event settings, the event will not
be created. Use createEmptyEvent()
to create an
event with no creation time or source component ID.
null
if no value
was found for the required source component ID.
The new event will implement the interface reported by
getEventInterfaceClassName()
.
public ICommonBaseEvent createEvent(java.util.Date creationTime, java.lang.String localInstId, java.lang.String globalInstId, short severity, short priority, IComponentIdentification reporterCompId, IComponentIdentification sourceCompId, java.lang.String situationType, IContextDataElement[] contextData, IMsgDataElement msgData, java.lang.String msg, short repeatCount, long elapsedTime, IAssociatedEvent[] assocEvents, java.lang.String extensionName, IExtendedDataElement[] extendedData, long sequenceNum)
createEvent
in interface IEventFactory
creationTime
- The creation time for the event,
or null
to use the
current system time.localInstId
- An optional local-instance identifier,
or null
to copy the value
(if any) from the event settings.globalInstId
- An optional global-instance identifier,
or null
to copy the value
(if any) from the event settings.severity
- The optional event severity, or
UNSPECIFIED_SEVERITY
to copy
the value (if any) from the event settings.priority
- The optional event priority, or
UNSPECIFIED_PRIORITY
to copy
the value (if any) from the event settingsreporterCompId
- The optional reporter component ID for
the event, or null
to copy
the value (if any) from event settings.sourceCompId
- The required source component ID for
the event, or null
to copy
the value from the event settings.
NOTE: If the source component ID is not specified and is
not found in the factory event settings, the event will not
be created. Use createEmptyEvent()
to create an
event with no creation time or source component ID.
situationType
- An optional situation-type string,
or null
to copy the value
(if any) from the event settings.contextData
- An optional array of context data
elements, or null
to
copy the value (if any) from the
event settings.msgData
- Optional data about the message, or
null
to copy the value
(if any) from the event settings.msg
- The optional message text, or
null
to copy the value
(if any) from the event settings.repeatCount
- The optional repeat count, or
UNSPECIFIED_REPEAT_COUNT
to copy the value (if any) from the
event settings.elapsedTime
- The optional time (in microseconds)
for the number of events specified
in the repeat count, or
UNSPECIFIED_ELAPSED_TIME
to copy the value (if any) from the
event settings.assocEvents
- An optional array of associated events,
or null
to copy the value
(if any) from the event settings.extensionName
- An optional extension name, or
null
to copy the value
(if any) from the event settings.extendedData
- An optional array of extended data
elements, or null
to
copy the value (if any) from the
event settings.sequenceNum
- An optional sequence number for the event,
or UNSPECIFIED_SEQUENCE_NUM
to copy the value (if any) from the
event settings.
If event settings are defined for this factory instance, they will be used to set any fields not specified above.
null
if no value
was found for the required source component ID.
The new event will implement the interface reported by
getEventInterfaceClassName()
.
public ICommonBaseEvent createEvent(java.util.Date creationTime, java.lang.String localInstId, java.lang.String globalInstId, short severity, short priority, IComponentIdentification reporterCompId, IComponentIdentification sourceCompId, ISituation situation, IContextDataElement[] contextData, IMsgDataElement msgData, java.lang.String msg, short repeatCount, long elapsedTime, IAssociatedEvent[] assocEvents, java.lang.String extensionName, IExtendedDataElement[] extendedData, long sequenceNum, java.lang.String[] otherData)
createEvent
in interface IEventFactory
creationTime
- The creation time for the event, or
CURRENT_TIME
to use the
current system time.localInstId
- An optional local-instance identifier,
or null
to copy the value
(if any) from the event settings.globalInstId
- An optional global-instance identifier,
or null
to copy the value
(if any) from the event settings.severity
- The optional event severity, or
UNSPECIFIED_SEVERITY
to copy
the value (if any) from the event settings.priority
- The optional event priority, or
UNSPECIFIED_PRIORITY
to copy
the value (if any) from the event settingsreporterCompId
- The optional reporter component ID for
the event, or null
to copy
the value (if any) from event settings.sourceCompId
- The required source component ID for
the event, or null
to copy
the value from the event settings.
NOTE: If the source component ID is not specified and is
not found in the factory event settings, the event will not
be created. Use createEmptyEvent()
to create an
event with no creation time or source component ID.
situation
- A required ISituation or null
to copy the value from the event settings.contextData
- An optional array of context data
elements, or null
to
copy the value (if any) from the
event settings.msgData
- Optional data about the message, or
null
to copy the value
(if any) from the event settings.msg
- The optional message text, or
null
to copy the value
(if any) from the event settings.repeatCount
- The optional repeat count, or
UNSPECIFIED_REPEAT_COUNT
to copy the value (if any) from the
event settings.elapsedTime
- The optional time (in microseconds)
for the number of events specified
in the repeat count, or
UNSPECIFIED_ELAPSED_TIME
to copy the value (if any) from the
event settings.assocEvents
- An optional array of associated events,extensionName
- An optional extension name, or
null
to copy the value
(if any) from the event settings.extendedData
- An optional array of extended data
elements, or null
to
copy the value (if any) from the
event settings.sequenceNum
- An optional sequence number for the event,
or UNSPECIFIED_SEQUENCE_NUM
to copy the value (if any) from the
event settings.otherData
- An optional string array of other data
or null
to copy the value
(if any) from the event settings.
If event settings are defined for this factory instance, they will be used to set any fields not specified above.
null
if no value
was found for the required source component ID.
The new event will implement the interface reported by
getEventInterfaceClassName()
.
public ICommonBaseEvent createEvent(long creationTime, java.lang.String localInstId, java.lang.String globalInstId, short severity, short priority, IComponentIdentification reporterCompId, IComponentIdentification sourceCompId, ISituation situation, IContextDataElement[] contextData, IMsgDataElement msgData, java.lang.String msg, short repeatCount, long elapsedTime, IAssociatedEvent[] assocEvents, java.lang.String extensionName, IExtendedDataElement[] extendedData, long sequenceNum, java.lang.String[] otherData)
createEvent
in interface IEventFactory
creationTime
- The creation time for the event, or
CURRENT_TIME
to use the
current system time.localInstId
- An optional local-instance identifier,
or null
to copy the value
(if any) from the event settings.globalInstId
- An optional global-instance identifier,
or null
to copy the value
(if any) from the event settings.severity
- The optional event severity, or
UNSPECIFIED_SEVERITY
to copy
the value (if any) from the event settings.priority
- The optional event priority, or
UNSPECIFIED_PRIORITY
to copy
the value (if any) from the event settingsreporterCompId
- The optional reporter component ID for
the event, or null
to copy
the value (if any) from event settings.sourceCompId
- The required source component ID for
the event, or null
to copy
the value from the event settings.
NOTE: If the source component ID is not specified and is
not found in the factory event settings, the event will not
be created. Use createEmptyEvent()
to create an
event with no creation time or source component ID.
situation
- A required ISituation or null
to copy the value from the event settings.contextData
- An optional array of context data
elements, or null
to
copy the value (if any) from the
event settings.msgData
- Optional data about the message, or
null
to copy the value
(if any) from the event settings.msg
- The optional message text, or
null
to copy the value
(if any) from the event settings.repeatCount
- The optional repeat count, or
UNSPECIFIED_REPEAT_COUNT
to copy the value (if any) from the
event settings.elapsedTime
- The optional time (in microseconds)
for the number of events specified
in the repeat count, or
UNSPECIFIED_ELAPSED_TIME
to copy the value (if any) from the
event settings.assocEvents
- An optional array of associated events,extensionName
- An optional extension name, or
null
to copy the value
(if any) from the event settings.extendedData
- An optional array of extended data
elements, or null
to
copy the value (if any) from the
event settings.sequenceNum
- An optional sequence number for the event,
or UNSPECIFIED_SEQUENCE_NUM
to copy the value (if any) from the
event settings.otherData
- An optional string array of other data
or null
to copy the value
(if any) from the event settings.
If event settings are defined for this factory instance, they will be used to set any fields not specified above.
null
if no value
was found for the required source component ID.
The new event will implement the interface reported by
getEventInterfaceClassName()
.
public ICommonBaseEvent createEvent(long creationTime, java.lang.String localInstId, java.lang.String globalInstId, short severity, short priority, IComponentIdentification reporterCompId, IComponentIdentification sourceCompId, java.lang.String situationType, IContextDataElement[] contextData, IMsgDataElement msgData, java.lang.String msg, short repeatCount, long elapsedTime, IAssociatedEvent[] assocEvents, java.lang.String extensionName, IExtendedDataElement[] extendedData, long sequenceNum)
createEvent
in interface IEventFactory
creationTime
- The creation time for the event, or
CURRENT_TIME
to use the
current system time.localInstId
- An optional local-instance identifier,
or null
to copy the value
(if any) from the event settings.globalInstId
- An optional global-instance identifier,
or null
to copy the value
(if any) from the event settings.severity
- The optional event severity, or
UNSPECIFIED_SEVERITY
to copy
the value (if any) from the event settings.priority
- The optional event priority, or
UNSPECIFIED_PRIORITY
to copy
the value (if any) from the event settingsreporterCompId
- The optional reporter component ID for
the event, or null
to copy
the value (if any) from event settings.sourceCompId
- The required source component ID for
the event, or null
to copy
the value from the event settings.
NOTE: If the source component ID is not specified and is
not found in the factory event settings, the event will not
be created. Use createEmptyEvent()
to create an
event with no creation time or source component ID.
situationType
- An optional situation-type string,
or null
to copy the value
(if any) from the event settings.contextData
- An optional array of context data
elements, or null
to
copy the value (if any) from the
event settings.msgData
- Optional data about the message, or
null
to copy the value
(if any) from the event settings.msg
- The optional message text, or
null
to copy the value
(if any) from the event settings.repeatCount
- The optional repeat count, or
UNSPECIFIED_REPEAT_COUNT
to copy the value (if any) from the
event settings.elapsedTime
- The optional time (in microseconds)
for the number of events specified
in the repeat count, or
UNSPECIFIED_ELAPSED_TIME
to copy the value (if any) from the
event settings.assocEvents
- An optional array of associated events,
or null
to copy the value
(if any) from the event settings.extensionName
- An optional extension name, or
null
to copy the value
(if any) from the event settings.extendedData
- An optional array of extended data
elements, or null
to
copy the value (if any) from the
event settings.sequenceNum
- An optional sequence number for the event,
or UNSPECIFIED_SEQUENCE_NUM
to copy the value (if any) from the
event settings.
If event settings are defined for this factory instance, they will be used to set any fields not specified above.
null
if no value
was found for the required source component ID.
The new event will implement the interface reported by
getEventInterfaceClassName()
.
public ICommonBaseEvent createEmptyEvent()
No fields will be set for this event. Any event settings for this factory instance will be ignored.
createEmptyEvent
in interface IEventFactory
The new event will implement the interface reported by
getEventInterfaceClassName()
.
public void init(java.lang.String name)
init
in interface IEventFactory
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |