java.lang.Object
pt.unl.fct.di.novasys.babel.generic.ProtoNotification
pt.unl.fct.di.novasys.babel.protocols.storage.notifications.common.CommonNotification
Direct Known Subclasses:
CommonDataNotification, ServerDownNotification

public abstract class CommonNotification extends pt.unl.fct.di.novasys.babel.generic.ProtoNotification
An abstract class common to all notifications issued by the storage layer protocols. This class stores the notification identifier, as well as an optional message detailing information about the notification contents.
  • Constructor Summary

    Constructors
    Constructor
    Description
    CommonNotification(short notificationID)
    Constructs a common notification with the notification identifier.
    CommonNotification(String message, short notificationID)
    Constructs a common notification with a message describing the contents of the notification, as well the notification identifier.
  • Method Summary

    Modifier and Type
    Method
    Description
    Gets the message associated with the notification.

    Methods inherited from class pt.unl.fct.di.novasys.babel.generic.ProtoNotification

    getId

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • CommonNotification

      public CommonNotification(String message, short notificationID)
      Constructs a common notification with a message describing the contents of the notification, as well the notification identifier.
      Parameters:
      message - message describing the contents of the notification
      notificationID - the notification identifier
    • CommonNotification

      public CommonNotification(short notificationID)
      Constructs a common notification with the notification identifier.
      Parameters:
      notificationID - the notification identifier
  • Method Details

    • getMessage

      public String getMessage()
      Gets the message associated with the notification. If none was passed on the constructor, returns an empty string.
      Returns: