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

PTP/designs/rm extensions

< PTP‎ | designs
Revision as of 18:36, 9 June 2009 by G.watson.computer.org (Talk | contribs) (Resource Manager Configuration Wizard)

The following sections detail some additional resource manager functionality that will be included in the 3.0 release of PTP.

Services Framework

RDT provides a services framework for configuring the various services required for remote project operation. It is proposed that this services framework be moved to a separate set of plugins at the top level: org.eclipse.ptp.services.core and org.eclipse.ptp.services.ui. The core plugin will provide the service and service provider extension point and interfaces. The UI plugin will provide a configuration wizard, wizard page templates, and configuration page templates.

Resource Manager Configuration Wizard

The PTP resource manager concept will be extended to include the management of all services that relate to resources required for application development. These will include:

  • Launch
  • Debug
  • Filesystem
  • Build
  • Indexing

The resource manager configuration wizard will provide a means of configuring all these services in one process.

Wiz 1.png

Wiz 2.png

Wiz 3.png

Wiz 4.png

Default Resource Manager Selection

The resource manager view has been enhanced to support the notion of a "default" resource manager. The default resource manager can be used by tools that require access to a particular remote system.

  • Adds "Select Default Resource Manager" to current context menu (enabled if RM is running)
  • The selected resource manager is annotated in the view
  • RM selection listeners can be registered, and are notified when a new default RM is selected
  • The method getSelected() returns null if no RM selected, otherwise returns selected RM
    • Default is no RM selected
  • Stopping a selected resource manager fires a selection event (with null) and returns to the default
  • The selected resource manager is persisted. When the resource manager is restarted:
    • It will be selected provided no other RM has been selected
    • The selection even will fire
    • If the RM fails to start due to an error, it will still remain the selected RM

Interfaces

RM selection interfaces are accessed from the PTPUIPlugin class by retrieving the RMManager.

PTPUIPlugin Class

public RMManager getRMManager() 
Retrieve the RMManager class

RMManager Class

IResourceManager getSelected() 
Return the currently selected RM, or null if no RM is selected
void addRMSelectionListener(IRMSelectionListener listener) 
Add a listener that will be notified when an RM is selected
void removeRMSelectionListener(IRMSelectionListener listener) 
Remove a listener that will be notified when an RM is selected

Resource Manager Configuration Extensions

  • The IResourceManagerConfiguration interface will be extended to provide persistent attribute information:
void put(String key, String value) 
save the (key, value) pair in the resource manager configuration
String get(String key) 
retrieve the value associated with the key from the resource manager configuration

Back to the top