zoukankan      html  css  js  c++  java
  • OSGI命令

    OSGi的一些支离破碎的知识

    以下命令说明内容来自于Eclipse的OSGi框架Equinox。

    ---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 <key>=<value> - set the OSGi property


    ---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)


    ---Displaying Status---
    status [-s [<comma separated list of bundle states>]  [<segment of bsn>]] - display installed bundles and registered services
    ss [-s [<comma separated list of bundle states>]  [<segment of bsn>]] - 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 [<pkgname>|<id>|<location>] - display imported/exported package details
    bundles [-s [<comma separated list of bundle states>]  [<segment of bsn>]] - display details for all installed bundles
    bundle (<id>|<location>) - display details for the specified bundle(s)
    headers (<id>|<location>) - print bundle headers


    ---Extras---
    exec <command> - execute a command in a separate process and wait
    fork <command> - 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


    ---Controlling Start Level---
    sl [<id>|<location>] - display the start level for the specified bundle, or for the framework if no bundle specified
    setfwsl <start level> - set the framework start level
    setbsl <start level> (<id>|<location>) - set the start level for the bundle(s)
    setibsl <start level> - set the initial bundle start level


    ---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


    ---Controlling the Console---
    more - More prompt for console output
    disconnect - Disconnects from telnet session
    help <commmand> - Display help for the specified command

    //=======================================================

    接下来是一些常用命令范例

    启动命令:
    java -Dorg.osgi.service.http.port=8084 -jar equinox.jar -console  
    安装bundle:
    install  reference:file:plugins/ UserValidatorBundle_1.0.0.jar

    config.ini范例

    osgi.bundles=plugins/org.eclipse.equinox.common_3.6.200.v20130402-1505.jar@1:start,plugins/org.eclipse.update.configurator_3.3.200.v20130326-1319.jar@2:start,plugins/com.systemmanagement.cpumonitor_1.0.0.201310121051.jar@2:start,plugins/com.systemmanagement.console_1.0.0.201310121051.jar@3:start

     

     

  • 相关阅读:
    JavaScript实现类的private、protected、public、static以及继承
    OSS网页上传和断点续传(STSToken篇)
    OSS网页上传和断点续传(OSS配置篇)
    Linq sum()时遇到NULL
    SQLSERVER事务日志已满 the transaction log for database 'xx' is full
    笔记本高分辨软件兼容问题,字体太小或模糊
    H5上传图片之canvas
    An error occurred while updating the entries. See the inner exception for details.
    无限级结构SQL查询所有的下级和所有的上级
    SQLserver 进程被死锁问题解决
  • 原文地址:https://www.cnblogs.com/xiaoliu66007/p/3363802.html
Copyright © 2011-2022 走看看