Ask is moving to Stack Overflow and! Please use the "opendaylight" tag on either of these sites. This site is now in Read-Only mode


Creating threads in a OSGI Bundle that continue to run ?

asked 2014-11-12 12:52:10 -0700

esumit gravatar image
  • Is there any thing to keep in mind while creating threads inside a OSGI Bundle ?,

{Q}. Created a new bundle and then created two thread on it, and from web module access this bundle { passes received switch/host data to this bundle, and this bundle waiting to read this data, once it receive it and then it print it, it works fine} but one of the side effect it showing e.g. it shows the host node and those are movable from the webUI, but it deosn't show the label of switch node, and those are not movable also.

Any suggestion on this ?

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted

answered 2014-11-13 03:13:13 -0700

esumit gravatar image

Below solved my problem

I referred, it has implemented statisticsCollector = new Thread(new Runnable() {... to create the thread on the init method. it is available on the following path :..\controller\opendaylight\protocolplugins\openflow\src\main\java\org\opendaylight\controller\protocolplugin\openflow\internal

Note : I am completely new to Java/OSGI

edit flag offensive delete publish link more
Login/Signup to Answer

Question Tools

1 follower


Asked: 2014-11-12 12:52:10 -0700

Seen: 1,057 times

Last updated: Nov 13 '14