Class InternalNotification

java.lang.Object
com.highdeal.notification.InternalNotification
Direct Known Subclasses:
Notification, RenewReservationNotification, SpendingStatusReportNotification

public class InternalNotification extends Object
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 description related to the event
  • Complementary information about the event
  • 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, a predefined description of 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 notification
      instanceId - The ID of the system instance where the event took place
      timestamp - Date and time of the related event signaled by the notification
      desc - The predefined description of the notification
      argTypes - The type of the arguments
      argValues - 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

      public final String getSystemName()
      Returns the name of the SAP CC system of the instance where the event took place
      Returns:
      The system name
    • getInstanceId

      public final String 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

      public final NotificationDescription getDesc()
      Returns the description of this notification.
      Returns:
      A description
    • getArgValues

      public final Object[] getArgValues()
      Returns the arguments of this notification
      Returns:
      An array of string that can be empty but not null
    • getArgTypes

      public final Object[] getArgTypes()
      Returns the arguments of this notification
      Returns:
      An array of string that can be empty but not null
    • toString

      public String toString()
      Returns a string representation of the instance ID, the date, unique identifier and the specific arguments of a notification.
      Overrides:
      toString in class Object
      Returns:
      A string representation
    • setSystemName

      public void setSystemName(String systemName)
    • setInstanceId

      public void setInstanceId(String instanceId)
    • setDesc

      public void setDesc(NotificationDescription desc)
    • setTimestamp

      public void setTimestamp(long timestamp)
    • setArgValues

      public void setArgValues(Object[] argValues)
    • setArgTypes

      public void setArgTypes(Object[] argTypes)