Dynamic Creation and Disposal of Channels [message #1744112] |
Thu, 22 September 2016 12:37 |
Abin Mathew Abraham Messages: 11 Registered: August 2016 |
Junior Member |
|
|
Hi,
I created channels dynamically and linked it to the thing by using ThingBuilder.build() method. For removing the channels, I got the current list of channels using getChannels() method and made a mutable list from it. Then I iterated through the channels found the channelUID match and removed it from the mutable list i created and then again used ThingBuilder.build() using the list I modified. Is this the correct procedure to do this?
Regards,
Abin
[Updated on: Thu, 22 September 2016 12:45] Report message to a moderator
|
|
|
|
Re: Dynamic Creation and Disposal of Channels [message #1744173 is a reply to message #1744160] |
Fri, 23 September 2016 07:16 |
Abin Mathew Abraham Messages: 11 Registered: August 2016 |
Junior Member |
|
|
Thanks Kai for your response and time. I have a few queries on Thing being cached. Where is this implemented? The dynamic channels I created if not removed, is being shown up again when the server is restarted. How can I disable this behaviour? How to ensure the dispose() methods are called of the Things when the server is stopped? When is the handleRemoval() method and when is the dispose() method in thing handler called?
Regards,
Abin
[Updated on: Fri, 23 September 2016 07:24] Report message to a moderator
|
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.04485 seconds