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

public abstract class CommonDataNotification extends CommonNotification
An abstract class common to all notifications that need to issue some sort of data to the upper layers. The class stores information about the operation type that describes the notification data (READ, UPDATE, etc.), as well as information about the keySpace, collection and objectID associated with the notification data.
  • Constructor Details

    • CommonDataNotification

      public CommonDataNotification(String keySpaceID, String collectionID, String objectID, CommonOperationType type, String message, short notificationID)
      Constructs a CommonDataNotification with the keySpace identifier, the collection identifier, the object identifier, the notification data type associated with the notification data, a message describing the contents of the notification and the notificationID.
      Parameters:
      keySpaceID - the keySpace identifier
      collectionID - the collection identifier
      objectID - the object identifier
      type - operation type
      message - message describing the contents of the data
      notificationID - notification identifier
    • CommonDataNotification

      public CommonDataNotification(String keySpaceID, String collectionID, String objectID, CommonOperationType type, short notificationID)
      Constructs a CommonDataNotification with the keySpace identifier, the collection identifier, the object identifier, the notification data type associated with the notification data, and the notificationID.
      Parameters:
      keySpaceID - the keySpace identifier
      collectionID - the collection identifier
      objectID - the object identifier
      type - operation type
      notificationID - notification identifier
  • Method Details

    • getType

      public CommonOperationType getType()
      Get the operation type
      Returns:
      the operation type.
    • getKeySpaceID

      public String getKeySpaceID()
      Get the keySpace identifier associated with the data.
      Returns:
      the keySpace identifier associated with the data.
    • getCollectionID

      public String getCollectionID()
      Get the collection identifier associated with the data.
      Returns:
      the collection identifier associated with the data.
    • getObjectID

      public String getObjectID()
      Get the object identifier associated with the data.
      Returns:
      the object identifier associated with the data.