Installation d'Eclipse Equinox & Premières commandes

From air
Jump to navigation Jump to search

Revenir au sommaire

http://www.eclipse.org/equinox/documents/quickstart-framework.php

Démarrage d'Equinox

Equinox seul

java -jar org.eclipse.osgi_3.7.2.jar -console

Sur MacOS X

java -jar /Applications/eclipse/plugins/org.eclipse.osgi_3.7.2.jar   -console

Avec Eclipse IDE

Sur Windows

eclipse.exe -console


Sur MacOS

/Applications/eclipse/eclipse -console

Premières commandes

jusqu'à 3.7

help
ss
lb
bundles
bundle 0

...

shutdown


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

depuis 3.8

Equinox supporte le Gogo Shell via la console et via SSH : instructions ...


Compléments

Vous pouvez compléter votre plateforme Equinox en ajoutant des services de la plateforme Apache Felix et de Apache Karaf:

  • la web console d'administration OSGi et ses plugins, JMX, UPnP Base , le modèle de composants iPOJO, File Install, Remote SSH Console ...

Bundles Repository d'Apache Felix

OBR

Qu'est que l'OBR (OSGi Bundle Repository) ?

felix:start http://mirrors.ircam.fr/pub/apache//felix/org.apache.felix.bundlerepository-1.6.6.jar
obr:repos list
obr:repos add http://felix.apache.org/obr/releases.xml
help obr

Web Console

obr:deploy -s "org.apache.felix.webconsole"
ss
lb


Administrez la plateforme Equinox via la WebConsole (de la distribution Apache Felix) http://localhost:8080/system/console depuis votre browser (username et password : admin et admin). Remarque : changez le mot de passe dès que votre plateforme est déployé sur des machines en production.

Ajoutez des plugins supplémentaires à la web console.

obr:deploy -s "org.apache.felix.webconsole" "Apache Felix Web Console Event Plugin" "Apache Felix Web Console Memory Usage Plugin" "Apache Felix Web Console Service Diagnostics Plugin"
ss
lb

File Install

obr:deploy -s "Apache Felix File Install"

Remarque: OpenHAB déploie deja File Install (dans ./addons).

iPOJO

obr:list ipojo

obr:deploy --start "Apache Felix iPOJO"
obr:deploy --start "Apache Felix iPOJO Gogo Command"
obr:deploy --start "Apache Felix iPOJO WebConsole Plugins"
ss
lb
ipojo:factories
ipojo:instances

UPnP

obr:list upnp
obr:deploy -s "Apache Felix UPnP Base Driver"
obr:deploy -s "Apache Felix UPnP Extra"
obr:deploy -s "Apache Felix Web Console UPnP Plugin"

obr:deploy -s "Apache Felix UPnP Tester"

Features Repositories d'Apache Karaf

Maven URL Handler


Features


Remote SSH console



JMX