Skip to content
Success

Changes

Summary

  1. Initial version of the programmatic whiteboard (commit: 4a1d370) (details)
  2. Added some javadoc (commit: 3b4582c) (details)
  3. Put constants in an interface and use them internally (commit: ed3470c) (details)
  4. Removed generic from WhiteboardHandler interface (commit: 6bb42da) (details)
  5. Added note on javadoc (commit: a95e364) (details)
  6. Addressed review comments (commit: ca3e7b4) (details)
  7. Small enhancements of the provider snapshot API (commit: 6a6a881) (details)
  8. Allow default resource metadata to be set in the model (commit: fad36b2) (details)
  9. Allow data and metadata update de-duplication (commit: d56f449) (details)
Commit 4a1d370527a9e52c11a7536a5f3f11d49745da2c by thomas.calmant
Initial version of the programmatic whiteboard
(commit: 4a1d370)
The file was addedcore/api/src/main/java/org/eclipse/sensinact/core/whiteboard/WhiteboardAct.java
The file was addedcore/api/src/main/java/org/eclipse/sensinact/core/whiteboard/WhiteboardActDescription.java
The file was addedcore/api/src/main/java/org/eclipse/sensinact/core/whiteboard/WhiteboardResourceDescription.java
The file was addedcore/api/src/main/java/org/eclipse/sensinact/core/whiteboard/AbstractDescriptiveReadOnly.java
The file was modifiedcore/impl/src/test/java/org/eclipse/sensinact/core/command/impl/WhiteboardImplTest.java
The file was addedcore/api/src/main/java/org/eclipse/sensinact/core/whiteboard/package-info.java
The file was modifiedcore/impl/src/main/java/org/eclipse/sensinact/core/whiteboard/impl/SensinactWhiteboard.java
The file was modifiedcore/impl/src/main/java/org/eclipse/sensinact/core/command/impl/GatewayThreadImpl.java
The file was addedcore/impl/src/main/java/org/eclipse/sensinact/core/whiteboard/impl/WhiteboardContext.java
The file was modifiedcore/impl/src/main/java/org/eclipse/sensinact/core/whiteboard/impl/GetMethod.java
The file was modifiedcore/impl/src/main/java/org/eclipse/sensinact/core/whiteboard/impl/SetMethod.java
The file was addedcore/api/src/main/java/org/eclipse/sensinact/core/whiteboard/WhiteboardHandler.java
The file was addedcore/api/src/main/java/org/eclipse/sensinact/core/whiteboard/AbstractDescriptiveReadWrite.java
The file was modifiedcore/impl/src/main/java/org/eclipse/sensinact/core/whiteboard/impl/AbstractResourceMethod.java
The file was addedcore/api/src/main/java/org/eclipse/sensinact/core/whiteboard/WhiteboardGet.java
The file was addedcore/api/src/main/java/org/eclipse/sensinact/core/whiteboard/WhiteboardSet.java
The file was modifiedcore/impl/src/main/java/org/eclipse/sensinact/core/whiteboard/impl/ActMethod.java
The file was addedcore/api/src/main/java/org/eclipse/sensinact/core/whiteboard/AbstractDescriptiveAct.java
Commit 3b4582c8362d1e9f3e8e9d9e540398b2e31e73e2 by thomas.calmant
Added some javadoc
(commit: 3b4582c)
The file was modifiedcore/api/src/main/java/org/eclipse/sensinact/core/whiteboard/WhiteboardActDescription.java
The file was modifiedcore/api/src/main/java/org/eclipse/sensinact/core/whiteboard/WhiteboardResourceDescription.java
Commit ed3470c70586299daf669554fe3acfe5d4742049 by thomas.calmant
Put constants in an interface and use them internally

Reuse the previous property name for the list of providers
(commit: ed3470c)
The file was addedcore/api/src/main/java/org/eclipse/sensinact/core/whiteboard/WhiteboardConstants.java
The file was modifiedcore/impl/src/test/java/org/eclipse/sensinact/core/command/impl/WhiteboardImplTest.java
The file was modifiedcore/impl/src/main/java/org/eclipse/sensinact/core/whiteboard/impl/SensinactWhiteboard.java
Commit 6bb42dadc8af04bcad80ed25fb5d6afcfc54704f by thomas.calmant
Removed generic from WhiteboardHandler interface
(commit: 6bb42da)
The file was modifiedcore/api/src/main/java/org/eclipse/sensinact/core/whiteboard/WhiteboardGet.java
The file was modifiedcore/api/src/main/java/org/eclipse/sensinact/core/whiteboard/WhiteboardHandler.java
The file was modifiedcore/impl/src/main/java/org/eclipse/sensinact/core/whiteboard/impl/AbstractResourceMethod.java
The file was modifiedcore/impl/src/main/java/org/eclipse/sensinact/core/command/impl/GatewayThreadImpl.java
The file was modifiedcore/impl/src/main/java/org/eclipse/sensinact/core/whiteboard/impl/SensinactWhiteboard.java
The file was modifiedcore/impl/src/main/java/org/eclipse/sensinact/core/whiteboard/impl/WhiteboardContext.java
The file was modifiedcore/api/src/main/java/org/eclipse/sensinact/core/whiteboard/WhiteboardAct.java
Commit a95e3647012a18620559560904601feb13677cfd by thomas.calmant
Added note on javadoc
(commit: a95e364)
The file was modifiedcore/api/src/main/java/org/eclipse/sensinact/core/whiteboard/WhiteboardConstants.java
Commit ca3e7b448dd1927669759a7b213e5b3af958aa9f by thomas.calmant
Addressed review comments
(commit: ca3e7b4)
The file was modifiedcore/impl/src/test/java/org/eclipse/sensinact/core/command/impl/WhiteboardImplTest.java
The file was modifiedcore/api/src/main/java/org/eclipse/sensinact/core/whiteboard/WhiteboardResourceDescription.java
Commit 6a6a88125518c47f1680dafa6e8e7532005451b6 by thomas.calmant
Small enhancements of the provider snapshot API

Added utility methods to easily access services and resources by name
(commit: 6a6a881)
The file was modifiedcore/api/src/main/java/org/eclipse/sensinact/core/snapshot/ProviderSnapshot.java
The file was modifiedcore/impl/src/main/java/org/eclipse/sensinact/core/impl/snapshot/ResourceSnapshotImpl.java
The file was modifiedcore/impl/src/main/java/org/eclipse/sensinact/core/impl/snapshot/ProviderSnapshotImpl.java
The file was modifiedcore/impl/src/main/java/org/eclipse/sensinact/core/impl/snapshot/ServiceSnapshotImpl.java
The file was modifiedcore/api/src/main/java/org/eclipse/sensinact/core/snapshot/ResourceSnapshot.java
The file was modifiedcore/api/src/main/java/org/eclipse/sensinact/core/snapshot/ServiceSnapshot.java
Commit fad36b2ed0152578dc5374731fda27b86b720840 by timothyjward
Allow default resource metadata to be set in the model

Provider instances have the ability to independently set metadata values, however in most cases metadata is common to all instances of a model and it is relatively static. It therefore makes sense to be able to define default metadata at the resource model level which is applied to the instance when it is first created.

Note that only the Extra metadata is used to populate the defaults. This prevents other data about the resource (e.g. the resource type and value type) from being added and bloating the metadata. To differentiate default metadata values from metadata values which are set later the default metadata values will have no associated timestamp. This is in line with the behaviour for default resource values.

Signed-off-by: Tim Ward <timothyjward@apache.org>
(commit: fad36b2)
The file was modifiedcore/impl/src/test/java/org/eclipse/sensinact/core/twin/impl/SensinactTwinTest.java
The file was modifiedcore/impl/src/main/java/org/eclipse/sensinact/core/model/impl/ResourceBuilderImpl.java
The file was modifiedcore/impl/src/main/java/org/eclipse/sensinact/core/model/nexus/ModelNexus.java
The file was modifiedcore/api/src/main/java/org/eclipse/sensinact/core/model/ResourceBuilder.java
The file was modifiedcore/models/metadata/src/main/resources/model/metadata.ecore
The file was modifiedcore/impl/src/main/java/org/eclipse/sensinact/core/impl/snapshot/ResourceSnapshotImpl.java
The file was modifiedcore/api/src/main/java/org/eclipse/sensinact/core/model/Resource.java
The file was modifiedcore/impl/src/test/java/org/eclipse/sensinact/core/model/impl/ModelBuildingTest.java
The file was modifiedcore/impl/src/main/java/org/eclipse/sensinact/core/model/impl/ResourceImpl.java
The file was modifiedcore/models/metadata/src/main/resources/model/metadata.genmodel
Commit d56f449967ab2d893f97a1736a3d8eb79c23148a by timothyjward
Allow data and metadata update de-duplication

This commit adds a DuplicateAction to the pushed updates, which determines the behaviour when the pushed update contains a duplicate value or metadata value. A duplicate value is determined by object equality, or == if one value is null. The default for resource values is that duplicates updates are applied, updating the timestamp and generating a update event. The default for metadata values is that duplicate updates are ignored, avoiding timestamp updates and update events. The reason for this difference is that repeated data readings can often give the same value, but this is a new reading. In general metadata values do not change, and so duplicates aren't interesting.

Signed-off-by: Tim Ward <timothyjward@apache.org>
(commit: d56f449)
The file was modifiedcore/annotation/src/main/java/org/eclipse/sensinact/core/annotation/dto/Provider.java
The file was modifiedcore/impl/src/main/java/org/eclipse/sensinact/core/extract/impl/GenericDtoDataExtractor.java
The file was modifiedcore/annotation/src/main/java/org/eclipse/sensinact/core/annotation/dto/Service.java
The file was modifiedcore/impl/src/main/java/org/eclipse/sensinact/core/impl/SetMetadataCommand.java
The file was modifiedcore/impl/src/main/java/org/eclipse/sensinact/core/dto/impl/AbstractUpdateDto.java
The file was modifiedcore/annotation/src/main/java/org/eclipse/sensinact/core/annotation/dto/Data.java
The file was modifiedcore/impl/src/test/java/org/eclipse/sensinact/core/extract/impl/CustomBaseValueDtoExtractorTest.java
The file was modifiedcore/annotation/src/main/java/org/eclipse/sensinact/core/annotation/dto/Metadata.java
The file was modifiedcore/impl/src/test/java/org/eclipse/sensinact/core/extract/impl/GenericDtoExtractorTest.java
The file was modifiedcore/api/src/main/java/org/eclipse/sensinact/core/push/dto/GenericDto.java
The file was modifiedcore/impl/src/main/java/org/eclipse/sensinact/core/impl/SetValueCommand.java
The file was modifiedcore/annotation/src/main/java/org/eclipse/sensinact/core/annotation/dto/Resource.java
The file was modifiedcore/impl/src/main/java/org/eclipse/sensinact/core/model/nexus/ModelNexus.java
The file was addedcore/annotation/src/main/java/org/eclipse/sensinact/core/annotation/dto/DuplicateAction.java
The file was modifiedcore/impl/src/test/java/org/eclipse/sensinact/core/extract/impl/AnnotationBasedDtoExtractorTest.java
The file was modifiedcore/impl/src/test/java/org/eclipse/sensinact/core/integration/DataUpdateServiceTest.java
The file was modifiedcore/impl/src/main/java/org/eclipse/sensinact/core/extract/impl/AnnotationMapping.java