Package com.highdeal.notification
Class InternalNotification
java.lang.Object
com.highdeal.notification.InternalNotification
- Direct Known Subclasses:
Notification,RenewReservationNotification,SpendingStatusReportNotification
This class represents an internal notification sent by the SAP CC system;
An internal notification message relates to an event exceptional or not that took place in
an instance of the SAP CC system and that must be handled by a mediation system
(from the
generated rated transactions included in
the answers of the charging operation requests), but not by an external system.
An internal notification informs about where, when and what happened. It includes:
- The location of the related event: SAP CC system, system instance
- The date and time of the event
- A
predefined descriptionrelated to the event - Complementary information about the event
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumstatic enum -
Constructor Summary
ConstructorsConstructorDescriptionEmpty constructorInternalNotification(String systemName, String instanceId, long timestamp, NotificationDescription desc, Object[] argTypes, Object[] argValues) Initializes an internal notification with the identifier of the system instance where the event took place, the date when it occurred, apredefined descriptionof what happened and a list of arguments to provide specific complementary information about the event. -
Method Summary
Modifier and TypeMethodDescriptionfinal Object[]Returns the arguments of this notificationfinal Object[]Returns the arguments of this notificationfinal NotificationDescriptiongetDesc()Returns thedescriptionof this notification.final StringReturns the instance ID where the event described by this notification took placefinal StringReturns the name of the SAP CC system of the instance where the event took placefinal longReturns the date when the event described by this notification occurredvoidsetArgTypes(Object[] argTypes) voidsetArgValues(Object[] argValues) voidvoidsetInstanceId(String instanceId) voidsetSystemName(String systemName) voidsetTimestamp(long timestamp) toString()Returns a string representation of the instance ID, the date, unique identifier and the specific arguments of a notification.
-
Constructor Details
-
InternalNotification
public InternalNotification()Empty constructor -
InternalNotification
public InternalNotification(String systemName, String instanceId, long timestamp, NotificationDescription desc, Object[] argTypes, Object[] argValues) throws IllegalArgumentException Initializes an internal notification with the identifier of the system instance where the event took place, the date when it occurred, apredefined descriptionof what happened and a list of arguments to provide specific complementary information about the event. The list of argument types and is specified by the predefined description.- Parameters:
systemName- The name of the SAP CC system that includes the instance that sends the notificationinstanceId- The ID of the system instance where the event took placetimestamp- Date and time of the related event signaled by the notificationdesc- The predefined description of the notificationargTypes- Thetypeof the argumentsargValues- The value of the arguments- Throws:
IllegalArgumentException- If desc is null or if instanceId is null or if argTypes does not match argValues
-
-
Method Details
-
getSystemName
Returns the name of the SAP CC system of the instance where the event took place- Returns:
- The system name
-
getInstanceId
Returns the instance ID where the event described by this notification took place- Returns:
- The instance identifier
-
getTimestamp
public final long getTimestamp()Returns the date when the event described by this notification occurred- Returns:
- The event date
-
getDesc
Returns thedescriptionof this notification.- Returns:
- A description
-
getArgValues
Returns the arguments of this notification- Returns:
- An array of string that can be empty but not null
-
getArgTypes
Returns the arguments of this notification- Returns:
- An array of string that can be empty but not null
-
toString
Returns a string representation of the instance ID, the date, unique identifier and the specific arguments of a notification. -
setSystemName
-
setInstanceId
-
setDesc
-
setTimestamp
public void setTimestamp(long timestamp) -
setArgValues
-
setArgTypes
-