Class CommonDataNotification
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
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 Summary
ConstructorsConstructorDescriptionCommonDataNotification(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.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. -
Method Summary
Modifier and TypeMethodDescriptionGet the collection identifier associated with the data.Get the keySpace identifier associated with the data.Get the object identifier associated with the data.getType()Get the operation typeMethods inherited from class pt.unl.fct.di.novasys.babel.protocols.storage.notifications.common.CommonNotification
getMessageMethods inherited from class pt.unl.fct.di.novasys.babel.generic.ProtoNotification
getId
-
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 identifiercollectionID- the collection identifierobjectID- the object identifiertype- operation typemessage- message describing the contents of the datanotificationID- 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 identifiercollectionID- the collection identifierobjectID- the object identifiertype- operation typenotificationID- notification identifier
-
-
Method Details
-
getType
Get the operation type- Returns:
- the operation type.
-
getKeySpaceID
Get the keySpace identifier associated with the data.- Returns:
- the keySpace identifier associated with the data.
-
getCollectionID
Get the collection identifier associated with the data.- Returns:
- the collection identifier associated with the data.
-
getObjectID
Get the object identifier associated with the data.- Returns:
- the object identifier associated with the data.
-