|
SAP CC 1.0
API 4.2 (Core) |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.highdeal.notification.Notification
public class Notification
A notification describes an event exceptional or not that takes place in the instances. It informs about where, when and what happened.
| XML Schema Fragment |
<xs:element name="notification">
<xs:complexType>
<xs:sequence>
<xs:element name="arg" type="arg" minOccurs="0" maxOccurs="unbounded"/>
</xs:sequence>
<xs:attribute name="instanceId" type="xs:string"/>
<xs:attribute name="timestamp" type="xs:long"/>
<xs:attribute name="descUid" type="xs:string"/>
<xs:attribute name="name" type="xs:string"/>
<xs:attribute name="prettyName" type="xs:string"/>
<xs:attribute name="severityLevel" type="xs:string"/>
</xs:complexType>
</xs:element>
<xs:complexType name="arg">
<xs:attribute name="name" type="xs:string"/>
<xs:attribute name="value" type="xs:anySimpleType"/>
</xs:complexType> |
| Field Summary | |
|---|---|
protected java.lang.String[] |
args
|
protected java.lang.String |
clusterName
|
protected NotificationDescription |
desc
|
protected InstanceId |
instanceId
|
static java.lang.String |
TAG_NAME
|
protected long |
timestamp
|
| Constructor Summary | |
|---|---|
Notification(java.lang.String clusterName,
InstanceId instanceId,
long timestamp,
NotificationDescription desc,
java.lang.String... args)
Initializes a notification with the instance id of the instance where the event took place, the date when it occurred, the generic description of what happened and a list
of argument to give specific information about the event. |
|
| Method Summary | |
|---|---|
void |
addCharacterData(java.lang.String cData)
Adds character data to the content element. |
void |
addChild(java.lang.String tagName,
XMLMarshallable child)
Adds a child to the objects, the child represents
the marshallable object to be added into the content tree. |
java.lang.String[] |
getArgs()
Returns the arguments of this notification. |
java.lang.String |
getClusterName()
Returns the name of the cluster of the instance where the event took place. |
NotificationDescription |
getDesc()
Return the description of this notification. |
InstanceId |
getInstanceId()
Returns the instance id where the event described by this notification took place. |
long |
getTimestamp()
Returns the date when the event described by this notification occurred. |
void |
marshal(XMLOutputter output)
Gives an XML representation of this object, and of its children. |
void |
setAttributes(XMLAttributes atts)
Sets the attributes of the XML representation of the tag beeing processed. |
java.lang.String |
toString()
Returns a string representation of the instance id, the date, unique identifier, and the specific arguments of a notification. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String TAG_NAME
protected java.lang.String clusterName
protected InstanceId instanceId
protected NotificationDescription desc
protected long timestamp
protected java.lang.String[] args
| Constructor Detail |
|---|
public Notification(java.lang.String clusterName,
InstanceId instanceId,
long timestamp,
NotificationDescription desc,
java.lang.String... args)
description of what happened and a list
of argument to give specific information about the event.
clusterName - the name of the clusterinstanceId - the instance id where the event took place.timestamp - when the event take placedesc - the description of the eventargs - specific argument about the event (is optional and can be
null). If is null, the argument list of this notification
will be empty but not null.
java.lang.AssertionError - if desc is null.| Method Detail |
|---|
public java.lang.String[] getArgs()
public NotificationDescription getDesc()
public java.lang.String getClusterName()
public InstanceId getInstanceId()
public long getTimestamp()
public java.lang.String toString()
toString in class java.lang.Objectpublic void setAttributes(XMLAttributes atts)
XMLMarshallable
setAttributes in interface XMLMarshallableatts - the XML attributes of the current tag.
public void addChild(java.lang.String tagName,
XMLMarshallable child)
XMLMarshallablechild represents
the marshallable object to be added into the content tree.
addChild in interface XMLMarshallabletagName - the name of tag for the child.child - the child to be added.public void addCharacterData(java.lang.String cData)
XMLMarshallable
addCharacterData in interface XMLMarshallablecData - the character data to be added.public void marshal(XMLOutputter output)
XMLMarshallable
marshal in interface XMLMarshallableoutput - the XML output to marshall the object into.
|
SAP CC 1.0
API 4.2 (Core) |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
SAP Convergent Charging 1.0 (build R4.2.1.35.0.0)
CONVERGENT CHARGING 4.2
(c) Copyright 2009 SAP AG. All rights reserved.