1. 启动命令
1> startup.dat
2> startup.dat -clean
3> startup.dat -debug
4> startup.dat -debug 8001
5> startup.dat -debug -suspend
6> startup.dat -configDIr 可以启动多个tomcat容器,但是serviceability 和work目录是同一个。
7> startup.dat -clean -noStart 清理除pickup和repository目录文件
2. 关闭命令
1> shutdown.dat
2> shutdown.dat -immediate
3> shutdown.dat -jmxport 9090
3. 提供 Equinox console 方式,默认是disable的。
开启端口方式:
1> user region : 配置ext目录下的osgi.console.telnet.properties 或者osgi.console.ssh.properties文件来实现。
2> kernal shell : 在config目录下的 osgi.console.telnet.properties
或者osgi.console.ssh.properties文件来实现。
在uer region模式下,提供了一个vsh命令和subvsh命令,用于管理bundle、config、package等。
Subcommand | Description |
---|---|
bundle | Manages and displays information about bundle artifacts. |
config | Manages and displays information about configuration artifacts. |
package | Displays information about exported packages. |
par | Manages and displays information about PAR artifacts. |
plan | Manages and displays information about plan artifacts. |
service | Displays information about services in the OSGi service registry. |
install | Installs an artifact to Web Server. |
shutdown | Shuts down the Web Server instance to which the Equinox Console is connected. |
help | Displays help about the list of available subcommands, as well as more detailed help about individual subcommands. |
exit | Returns to the Equinox console with no effect. |
bundle diag id 能够现实导入的virgo 不能resolve的包。当virgo 遇到unresolveable bundles的时候,会dump和配置失败。
bundle headers id 现实idbundle对应完整的manifest headers信息。
bundle examine id 现实bundle的jar包的物理地址及导入导出包信息,发布及使用的服务。
config Subcommand 用于查看和管理已经发布的configuration artifact。
4. bundle生命周期
1> Installed: The bundle is installed but its dependencies have not yet been resolved.
2> Resolved: The bundle is resolved and you can now start it.
3> Uninstalled: The bundle is uninstalled and you cannot use it.
4> Starting: The bundle is in the process of starting.
5> Active: The bundle is running and you can now use it.
6> Stopping: The bundle is in the process of stopping.
5. 类加载命令列表
Class Loading Commands
6. scoped 和 atomic
scoped 用于指定配置的par或者plan是本范围可访问,或是全局可访问。
atomic 用于指定plan或者par中的所有成员是一体的,即一起启动或者一起停止。
7. virgo tomcat repository
usr: watched ,用于存放用户自己的bundles,因此经常变化,virgo自动通过watched来监听bundles的变化。
ext: 第三方类,基本稳定,不会发生变化,因此只会在start -clean的时候加载。