Skip to main content

Notice: this Wiki will be going read only early in 2024 and edits will no longer be possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.

Jump to: navigation, search

Difference between revisions of "Equinox Resource Monitoring Demo"

(Client)
 
(14 intermediate revisions by the same user not shown)
Line 1: Line 1:
==Demo - in SDK==
+
==Server Setup==
 
+
===Server===
+
 
* Install the server zip file into an Eclipse SDK (tested with build I0228-0930).
 
* Install the server zip file into an Eclipse SDK (tested with build I0228-0930).
 
* Note you can set port and protocol via System properties (but we won't).
 
* Note you can set port and protocol via System properties (but we won't).
Line 7: Line 5:
 
** The server will start automatically.
 
** The server will start automatically.
 
* Create resources in the workspace.
 
* Create resources in the workspace.
** <em>File -> Import -> Plug-ins and Fragments -> Import As Projects with source folders</em>
+
** <strong>File -> Import -> Plug-ins and Fragments -> Import As Projects with source folders</strong>
** Type <code>org.eclipse.equinox.*</code> in the filter to get all the Equinox projects selected and choose <em>Add</em>
+
** Type <code>org.eclipse.core.*</code> in the filter to get all the Core projects selected and choose <strong>Add</strong>
 
** Finish.
 
** Finish.
** <em>Note:</em> The Equinox projects appear in the workspace
+
** <em>Note:</em> The Core projects appear in the workspace
 
* Look at a preference value.
 
* Look at a preference value.
** <em>Window -> Preferences -> General -> Workspace -> Build Automatically</em>
+
** <strong>Window -> Preferences -> General -> Workspace -> Build Automatically</strong>
 
** <em>Note:</em> the auto-build preference is set to be true.
 
** <em>Note:</em> the auto-build preference is set to be true.
 
** Close the Preferences window.
 
** Close the Preferences window.
  
===Client===
+
==Client==
 
* Install the client zip file into an Eclipse SDK (tested with build I0228-0930).
 
* Install the client zip file into an Eclipse SDK (tested with build I0228-0930).
 
* Start the SDK.
 
* Start the SDK.
* <em>Window -> Open Perspective -> Other -> JMX Resource Management</em>
+
* Switch perspectives and create a connection to the server.
* <em>JMX Server -> Open Connection</em>
+
** <strong>Window -> Open Perspective -> Other -> JMX Resource Management</strong>
* Choose proper host, port and protocol. (default is <em>localhost</em>, <em>8118</em>, and <em>rmi</em>)
+
** <strong>JMX Server -> Open Connection</strong>
* OK.
+
** Choose proper host, port and protocol. (default is <em>localhost</em>, <em>8118</em>, and <em>rmi</em>)
 
+
** OK.
====Bundles====
+
* <em>Note:</em> The <strong>Contributions View</strong> will be populated with the available contributions from the server.
* expand Bundles
+
** note these are all the bundles that are installed on the server
+
* expand org.eclipse.equinoix.registry
+
** note that the imported packages and required bundles are listed as well as the services
+
** expand the imported packages to show what it requires
+
** expand the required bundles to show what it requires
+
*** expand org.eclipse.equinox.common to show it is recursive
+
** expand Services
+
*** note the 3 different icons for providing, using, and both
+
  
====Extension Registry====
+
===Bundles===
* all the extension points are listed
+
* In the <strong>Contributions View</strong>, expand the <strong>Bundles</strong> element.
* future work: add extensions, namespaces, better grouping, and more methods
+
** <em>Note:</em> These are all the bundles that are installed on the server.
* navigate to the runtime.applications extension point and see the server application and ide application
+
* Expand <code>org.eclipse.equinox.registry</code>.
* Note: can we hook in Tom's demos here? click on an extension and start it remotely?
+
** <em>Note:</em> The imported packages and required bundles are listed as well as the services.
 +
** Expand the imported packages to show what it requires.
 +
** Expand the required bundles to show what it requires.
 +
*** Expand <code>org.eclipse.equinox.common</code> to show it is recursive.
 +
** Expand <strong>Services</strong>.
 +
*** <em>Note:</em> there are 3 different icons, one each for providing, using, and both.
  
====Preferences====
+
===Extension Registry===
* Expand Preferences -> instance -> org.eclipse.core.resources
+
* In the <strong>Contributions View</strong> expand the <strong>Extension Points</strong> element.
* select node
+
** <em>Note:</em> All the extension points are listed.
* select operation Put
+
* Navigate to the <code>org.eclipse.runtime.applications</code> extension point
* In Invocation view, make the key "description.autobuilding" and the value "false"
+
** <em>Note:</em> All of the available applications should be there, including the JMX server application and the IDE application.
* Invoke
+
* <em>TODO:</em> Can we hook in Tom's demos here? click on an extension and start it remotely?
* Window -> Preferences -> General -> Workspace
+
* <em>Future work:</em> add extensions, namespaces, better grouping, and more methods.
* Note that the Build Automatically preference is now unchecked
+
  
====Services====
+
===Preferences===
* expand org.eclipse.core.runtime.IExtensionRegistry
+
* In the <strong>Contributions View</strong> expand the <strong>Preferences</strong> element.
* expand Bundles and see who is importing the service, exporting the service, and both
+
* Expand to <strong>Preferences -> instance -> org.eclipse.core.resources</strong>.
 +
* Select the <code>org.eclipse.core.resources</code> node.
 +
* In the <strong>Operations</strong> part of the editor, select the <code>put</code> operation.
 +
* In <strong>Invocation View</strong>, set the parameters to be the key <code>description.autobuilding</code> and the value <code>false</code>.
 +
* Select the <strong>Invoke</strong> button.
 +
* Look at the preference on the server.
 +
** On the server choose: <strong>Window -> Preferences -> General -> Workspace</strong>.
 +
** <em>Note:</em> The <strong>Build Automatically</strong> preference is now unchecked.
  
====Sleak====
+
===Services===
* expand Sleak
+
* In the <strong>Contributions View</strong> expand the <strong>Services</strong> element.
* TODO why don't these numbers look right??
+
* Expand the <code>org.eclipse.core.runtime.IExtensionRegistry</code> element.
 +
* Expand the <strong>Bundles</strong> element and see who is importing the service, exporting the service, and both.
  
====VM====
+
===Sleak===
* expand VM Stats
+
* In the <strong>Contributions View</strong> select the <strong>Sleak</strong> element.
* look at all the VM info
+
* <em>TODO:</em> This is currently broken and needs to be fixed.
  
====Workspace Resources====
+
===VM===
* see the 6 equinox projects in the workspace.
+
* In the <strong>Contributions View</strong> expand the <strong>VM Stats</strong> element.
* select the launcher fragment
+
* <em>Note:</em> All the VM info is for the VM currently running the server.
* in the operations part of the form, select delete
+
* make the navigator from the server instance visible to the user
+
* in the invocation view hit Delete
+
* note that the resource was deleted from the server
+
  
==Demo - standalone application==
+
===Workspace Resources===
* unzip exported product
+
* In the <strong>Contributions View</strong> expand the <strong>Workspace Resources</strong> element.
* set up ppro VM
+
* <em>Note:</em> The Core projects that you previously imported into the server's workspace should be in the list.
* start the server
+
* Select the <code>org.eclipse.code.boot</code> project.
 +
* In the editor, in the <strong>Operations</strong> part of the form, select the <code>delete</code> method.
 +
* Make the <strong>Navigator View</strong> from the server instance visible to the user.
 +
* In the <strong>Invocation View</strong> select the <strong>Delete</strong> button.
 +
* <em>Note:</em> The project was deleted from the server's workspace.
  
==End-to-End demo==
+
[[Category:Equinox]]
* get the osgi.jar from the latest build
+
* start OSGi: java -jar osgi.jar -console
+
* install the file installer jar
+
* drop in the server bundles
+

Latest revision as of 18:05, 2 March 2007

Server Setup

  • Install the server zip file into an Eclipse SDK (tested with build I0228-0930).
  • Note you can set port and protocol via System properties (but we won't).
  • Start the SDK.
    • The server will start automatically.
  • Create resources in the workspace.
    • File -> Import -> Plug-ins and Fragments -> Import As Projects with source folders
    • Type org.eclipse.core.* in the filter to get all the Core projects selected and choose Add
    • Finish.
    • Note: The Core projects appear in the workspace
  • Look at a preference value.
    • Window -> Preferences -> General -> Workspace -> Build Automatically
    • Note: the auto-build preference is set to be true.
    • Close the Preferences window.

Client

  • Install the client zip file into an Eclipse SDK (tested with build I0228-0930).
  • Start the SDK.
  • Switch perspectives and create a connection to the server.
    • Window -> Open Perspective -> Other -> JMX Resource Management
    • JMX Server -> Open Connection
    • Choose proper host, port and protocol. (default is localhost, 8118, and rmi)
    • OK.
  • Note: The Contributions View will be populated with the available contributions from the server.

Bundles

  • In the Contributions View, expand the Bundles element.
    • Note: These are all the bundles that are installed on the server.
  • Expand org.eclipse.equinox.registry.
    • Note: The imported packages and required bundles are listed as well as the services.
    • Expand the imported packages to show what it requires.
    • Expand the required bundles to show what it requires.
      • Expand org.eclipse.equinox.common to show it is recursive.
    • Expand Services.
      • Note: there are 3 different icons, one each for providing, using, and both.

Extension Registry

  • In the Contributions View expand the Extension Points element.
    • Note: All the extension points are listed.
  • Navigate to the org.eclipse.runtime.applications extension point
    • Note: All of the available applications should be there, including the JMX server application and the IDE application.
  • TODO: Can we hook in Tom's demos here? click on an extension and start it remotely?
  • Future work: add extensions, namespaces, better grouping, and more methods.

Preferences

  • In the Contributions View expand the Preferences element.
  • Expand to Preferences -> instance -> org.eclipse.core.resources.
  • Select the org.eclipse.core.resources node.
  • In the Operations part of the editor, select the put operation.
  • In Invocation View, set the parameters to be the key description.autobuilding and the value false.
  • Select the Invoke button.
  • Look at the preference on the server.
    • On the server choose: Window -> Preferences -> General -> Workspace.
    • Note: The Build Automatically preference is now unchecked.

Services

  • In the Contributions View expand the Services element.
  • Expand the org.eclipse.core.runtime.IExtensionRegistry element.
  • Expand the Bundles element and see who is importing the service, exporting the service, and both.

Sleak

  • In the Contributions View select the Sleak element.
  • TODO: This is currently broken and needs to be fixed.

VM

  • In the Contributions View expand the VM Stats element.
  • Note: All the VM info is for the VM currently running the server.

Workspace Resources

  • In the Contributions View expand the Workspace Resources element.
  • Note: The Core projects that you previously imported into the server's workspace should be in the list.
  • Select the org.eclipse.code.boot project.
  • In the editor, in the Operations part of the form, select the delete method.
  • Make the Navigator View from the server instance visible to the user.
  • In the Invocation View select the Delete button.
  • Note: The project was deleted from the server's workspace.

Back to the top