Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Kura » Deactivating Bundle
Deactivating Bundle [message #1734755] Sat, 11 June 2016 08:59 Go to next message
Said Ucar is currently offline Said UcarFriend
Messages: 56
Registered: June 2015
Member
Hi,

I'm trying to implement Remote Control of Kura. I managed to use DEPLOY-V2 application. I noticed that, when I send ...../EXEC/download command, Kura sends some information to the topic ..../MQTT/APPS topic. In this message, (for my device),

connection_ip                                     127.0.0.1,192.168.1.39                            
jvm_name                                          Java HotSpot(TM) Client VM                        
os                                                Linux                                             
application_ids                                   CMD-V1,DEPLOY-V2,CONF-V1,KuraTerminator,Demo,KuraTerminator,KuraTerminator,KuraTerminator
jvm_profile                                       Java(TM) SE Runtime Environment 1.8.0_65-b17      
os_version                                        4.4.3-v7+ #849 SMP Mon Feb 29 15:13:28 GMT 2016   
os_arch                                           arm                                               
accept_encoding                                                                                     
serial_number                                     Raspberry-Pi                                      
model_id                                          Raspberry-Pi                                      
firmware_version                                  N/A                                               
display_name                                                                                        
bios_version                                      N/A                                               
jvm_version                                       25.65-b01 mixed mode                              
uptime                                            347780                                            
connection_interface                              lo (00:00:00:00:00:00),wlan0 (B8:27:EB:4C:05:E9)  
available_processors                              4                                                 
osgi_framework_version                            1.7.0                                             
total_memory                                      506880                                            
model_name                                        Raspberry-Pi                                      
part_number                                       Raspberry-Pi                                      
osgi_framework                                    Eclipse                                           
kura_version                                      KURA_1.4.0


As you noticed, KuraTerminator application seems multiple times in application_ids parameter. I looked example kura projects but nothing seems special for deactivation method. I wonder why this application id seen multiple times. Should I have done something in the deactivation process?

Thank is advance,
Said.
Re: Deactivating Bundle [message #1734912 is a reply to message #1734755] Mon, 13 June 2016 16:09 Go to previous messageGo to next message
David Woodard is currently offline David WoodardFriend
Messages: 420
Registered: July 2014
Senior Member
Hello Said,

The application_ids parameter is a list of all registered CloudClients within Kura. Do you see this same message after a reboot (or restart of Kura)? In your KuraTerminator application deactivate method, are you releasing the client with m_cloudClient.release()?

Thanks,
--Dave
Re: Deactivating Bundle [message #1734925 is a reply to message #1734912] Mon, 13 June 2016 19:12 Go to previous messageGo to next message
Said Ucar is currently offline Said UcarFriend
Messages: 56
Registered: June 2015
Member
Hi Dave,

I release my CloudClient in another function f, and I call f in my deactivate method. After restart, the list doesn't have multiple KuraTerminator app. Should I call cloudclient.release() in deactivate method itself?

Thanks,
Said.
Re: Deactivating Bundle [message #1734998 is a reply to message #1734925] Tue, 14 June 2016 14:11 Go to previous message
David Woodard is currently offline David WoodardFriend
Messages: 420
Registered: July 2014
Senior Member
Hello,

Calling the function should be the same as putting code directly in deactivate(). I would put log statements around your release code and make sure it is being called when you expect it to.

Thanks,
--Dave
Previous Topic:Way to update configuration values set by OSGI-INF/metatype/xxx.xml using class interface
Next Topic:bug? can't set "hostname verification" = false
Goto Forum:
  


Current Time: Thu Apr 25 01:02:05 GMT 2024

Powered by FUDForum. Page generated in 0.04262 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top