更改felix中的捆绑包级别? [英] Change Bundle level in felix?

查看:85
本文介绍了更改felix中的捆绑包级别?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我知道如何为要部署的捆绑包设置初始捆绑包级别:

I know how to set an initial bundle level, for just to be deployed bundle:

bundlelevel -i 5

但是如何更改现有捆绑包的级别? Bundlelevel的帮助说:

But how do I change the level of an existing bundle? Help for bundlelevel says:

  bundlelevel - set bundle start level or initial bundle start level
   scope: felix
   flags:
      -i, --setinitial   set the initial bundle start level
      -s, --setlevel   set the bundle's start level
   parameters:
      int   target level
      Bundle[]   target identifiers

bundlelevel - query bundle start level
   scope: felix
   parameters:
      Bundle   bundle to query

我不知道"Bundle []"参数是什么.我只尝试了bundle_id和[bundle_id],甚至尝试了捆绑包名称.

I have no idea what "Bundle[]" argument is. I tried just bundle_id and [bundle_id], and even bundle name.

让我展示一个例子.假设我想将5包(书架API)的级别从1更改为2.

Let me show an example. Let's say I want to change bundle 5 (bookshelf api) level from 1 to 2.

g! lb
START LEVEL 5
   ID|State      |Level|Name
    0|Active     |    0|System Bundle (3.0.7)
    1|Active     |    1|Apache Felix Bundle Repository (1.6.2)
    2|Active     |    1|Apache Felix Gogo Command (0.6.1)
    3|Active     |    1|Apache Felix Gogo Runtime (0.6.1)
    4|Active     |    1|Apache Felix Gogo Shell (0.6.1)
    5|Active     |    1|Bookshelf Inventory API (1.5.0)

我尝试了以下操作:

g! bundlelevel -s 2 [5]
gogo: IllegalArgumentException: Cannot coerce 
    bundlelevel(String, String, ArrayList) to any of 
    [(boolean, boolean, int, Bundle[]), (Bundle)] 

g! bundlelevel -s 2 5
Must specify target bundles.

感谢您的帮助.

推荐答案

对FUSE ESB有所了解,但从未使用过felix. 刚刚下载了felix 3.0.8,并尝试过:

Made some experience in FUSE ESB but never used felix. Just downloaded felix 3.0.8 and tried:

g! lb
START LEVEL 1
   ID|State      |Level|Name
    0|Active     |    0|System Bundle (3.0.8)
    1|Active     |    1|Apache Felix Bundle Repository (1.6.2)
    2|Active     |    1|Apache Felix Gogo Command (0.8.0)
    3|Active     |    1|Apache Felix Gogo Runtime (0.8.0)
    4|Active     |    1|Apache Felix Gogo Shell (0.8.0)

g! bundlelevel -s 10 4

g! lb
START LEVEL 1
   ID|State      |Level|Name
    0|Active     |    0|System Bundle (3.0.8)
    1|Active     |    1|Apache Felix Bundle Repository (1.6.2)
    2|Active     |    1|Apache Felix Gogo Command (0.8.0)
    3|Active     |    1|Apache Felix Gogo Runtime (0.8.0)
    4|Resolved   |   10|Apache Felix Gogo Shell (0.8.0)
g!

我努力重现您的问题,但没有.它按照指定的方式工作.您是在全新安装中还是在更新的felix版本中尝试过(不知道您在使用什么)?

I tried hard to reproduce your problem but could not. It seams to work as specified. Did you tried it in a fresh installation or with a newer felix version (do not know what you are using)?

这篇关于更改felix中的捆绑包级别?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆