Class StatusNotification
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
pt.unl.fct.di.novasys.babel.protocols.storage.notifications.StatusNotification
A notification informing the storage layer of a change in a specific object.
This change can be raised upon an update on the object, such as a DELETE, that doesn't contain any payload.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionStatusNotification(CommonOperationType type, String keySpaceID, String collectionID, String objectID) Constructs a StatusNotification with the operation type that altered the object status, the keySpace identifier, the collection identifier, and the object identifier associated with the change.StatusNotification(CommonOperationType type, String keySpaceID, String collectionID, String objectID, String message) Constructs a StatusNotification with the operation type that altered the object status, the keySpace identifier, the collection identifier, and the object identifier associated with the change. -
Method Summary
Methods inherited from class pt.unl.fct.di.novasys.babel.protocols.storage.notifications.common.CommonDataNotification
getCollectionID, getKeySpaceID, getObjectID, getTypeMethods 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
-
Field Details
-
NOTIFICATION_ID
public static final short NOTIFICATION_ID- See Also:
-
-
Constructor Details
-
StatusNotification
public StatusNotification(CommonOperationType type, String keySpaceID, String collectionID, String objectID) Constructs a StatusNotification with the operation type that altered the object status, the keySpace identifier, the collection identifier, and the object identifier associated with the change.- Parameters:
type- the operation type that altered the object status.keySpaceID- the keySpace identifiercollectionID- the collection identifier.objectID- the object identifier.
-
StatusNotification
public StatusNotification(CommonOperationType type, String keySpaceID, String collectionID, String objectID, String message) Constructs a StatusNotification with the operation type that altered the object status, the keySpace identifier, the collection identifier, and the object identifier associated with the change. Additionally, the notification also stores a message describing the changes on the object.- Parameters:
type- the operation type that altered the object status.keySpaceID- the keySpace identifiercollectionID- the collection identifier.objectID- the object identifier.message- describes the changes in the object.
-