[英]What is the difference between osgi.startLevel and osgi.bundles.defaultStartLevel
What is the difference between osgi.startLevel
and osgi.bundles.defaultStartLevel
present in config.ini
of equinox OSGI implementation. osgi.startLevel
OSGI 实现的config.ini
中存在的osgi.startLevel
和osgi.bundles.defaultStartLevel
之间有什么区别。 I Also want to know how these configuration items are related to number of bundles to be deployed?我也想知道这些配置项和要部署的bundle数量有什么关系?
There are two things going on: the current start-level of the OSGi Framework, and the required start-level of each bundle.有两件事发生:OSGi 框架的当前启动级别,以及每个包所需的启动级别。
When the framework reaches a particular start-level, all of the bundles at that start-level get started.当框架达到特定的启动级别时,该启动级别的所有包都会启动。 So when the framework enters level 6, all of the bundles that are at level 6 are started (but the bundles at level 7 are not yet started).
因此,当框架进入第 6 级时,所有处于第 6 级的包都已启动(但第 7 级的包尚未启动)。
osgi.startLevel
is simply the start level that the OSGi Framework will try to reach after you boot it up. osgi.startLevel
只是 OSGi 框架在您启动后将尝试达到的起始级别。
osgi.bundles.defaultStartLevel
is the start level that any bundle has by default if you don't set it to something else. osgi.bundles.defaultStartLevel
是默认情况下任何包具有的起始级别,如果您不将其设置为其他内容。
So for example if you set osgi.startLevel
to 3 and osgi.bundles.defaultStartLevel
to 4, then basically no bundles will be started!例如,如果您将
osgi.startLevel
设置为 3 并将osgi.bundles.defaultStartLevel
为 4,那么基本上不会启动任何包!
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.