#113 PrimaryHost: Dispose of unwanted objects

open
None
2021-05-08
2021-01-15
i-campbell
No

So the Primary Host starts with a collection of blank GroupIDs, RemoteEdges, RemoteDevices, and Metrics.
on xBirth, it will assign these values.
It should be possible to dispose of these objects if they are no longer required.

GroupID => Explicitly by the end user
RemoteEdge => Explicitly by the end user
RemoteDevice => Explicitly by the end user
Metric => On xBIRTH, when the metric is no longer declared

Disposing a GroupID will recursively dispose of all children and so on.

Discussion

  • i-campbell

    i-campbell - 2021-05-08
    • Milestone: 2.0.0.0: SparkplugB Primary Node --> 3.0.0.0 Full Feature Product (FFP)
     
  • i-campbell

    i-campbell - 2021-05-08

    Moved to 3.0.0.0.
    The use case would be if you are running low on memory AND you happen to have removed enough devices that disposing of their objects will make a difference. This is a rare enough use case that restarting the application seems like a reasonable workaround, at least for the 2.0.0.0 release.

     

Log in to post a comment.