OSGi 控制台命令大全

OSGi的一些支离破碎的知识
以下命令说明内容来自于Eclipse的OSGi框架Equinox。

1.Controlling the OSGi framework

launch - start the OSGi Framework
shutdown - shutdown the OSGi Framework
close - shutdown and exit
exit - exit immediately (System.exit)
init - uninstall all bundles
setprop = - set the OSGi property

2.Controlling Bundles

install - install and optionally start bundle from the given URL
uninstall - uninstall the specified bundle(s)
start - start the specified bundle(s)
stop - stop the specified bundle(s)
refresh - refresh the packages of the specified bundles
update - update the specified bundle(s)

3.Displaying Status

status [-s [] []] - display installed bundles and registered services
ss [-s [] []] - display installed bundles (short status)
services [filter] - display registered service details. Examples for [filter]: (objectClass=com.xyz.Person); (&(objectClass=com.xyz.Person)(|(sn=Jensen)(cn=Babs J*))); passing only com.xyz.Person is a shortcut for (objectClass=com.xyz.Person). The filter syntax specification is available at http://www.ietf.org/rfc/rfc1960.txt
packages [||] - display imported/exported package details
bundles [-s [] []] - display details for all installed bundles
bundle (|) - display details for the specified bundle(s)
headers (|) - print bundle headers

4.Extras

exec - execute a command in a separate process and wait
fork - execute a command in a separate process
gc - perform a garbage collection
getprop [ name ] - displays the system properties with the given name, or all of them.
props - Display system properties
threads - Display threads and thread groups

5.Controlling Start Level

sl [|] - display the start level for the specified bundle, or for the framework if no bundle specified
setfwsl - set the framework start level
setbsl (|) - set the start level for the bundle(s)
setibsl - set the initial bundle start level

6.Controlling the Profiling

profilelog - Display & flush the profile log messages

—Eclipse Runtime commands—
diag - Displays unsatisfied constraints for the specified bundle(s).
enableBundle - enable the specified bundle(s)
disableBundle - disable the specified bundle(s)
disabledBundles - list disabled bundles in the system

7.Controlling the Console

more - More prompt for console output
disconnect - Disconnects from telnet session
help - Display help for the specified command

  • 1
    点赞
  • 5
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值