PTP
Release 7.0

org.eclipse.ptp.remote.core
Class RemoteServices

java.lang.Object
  extended by org.eclipse.ptp.remote.core.RemoteServices

public class RemoteServices
extends Object

Main entry point for accessing remote services.

Since:
7.0

Constructor Summary
RemoteServices()
           
 
Method Summary
static IRemoteServices getLocalServices()
          Retrieve the local services provider.
static IRemoteServices getRemoteServices(String id)
          Get the remote service implementation identified by id and ensure that it is initialized.
static IRemoteServices getRemoteServices(String id, IProgressMonitor monitor)
          Get the remote service implementation identified by id and ensure that it is initialized.
static IRemoteServices getRemoteServices(URI uri)
          Get the remote services identified by a URI.
static IRemoteServices getRemoteServices(URI uri, IProgressMonitor monitor)
          Get the remote services implementation identified by URI.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RemoteServices

public RemoteServices()
Method Detail

getLocalServices

public static IRemoteServices getLocalServices()
Retrieve the local services provider. Guaranteed to exist and be initialized.

Returns:
local services provider

getRemoteServices

public static IRemoteServices getRemoteServices(String id)
Get the remote service implementation identified by id and ensure that it is initialized.

Parameters:
id - id of the remote service
Returns:
remote service or null if the service cannot be found or failed to initialized

getRemoteServices

public static IRemoteServices getRemoteServices(String id,
                                                IProgressMonitor monitor)
Get the remote service implementation identified by id and ensure that it is initialized. This method will present the user with a dialog box that can be canceled.

Parameters:
id - id of remote service to retrieve
monitor - progress monitor to allow user to cancel operation
Returns:
remote service, or null if the service cannot be found or failed to initialized
Since:
5.0

getRemoteServices

public static IRemoteServices getRemoteServices(URI uri)
Get the remote services identified by a URI.

Parameters:
uri - URI of remote services to retrieve
Returns:
remote service, or null if the service cannot be found or failed to initialized

getRemoteServices

public static IRemoteServices getRemoteServices(URI uri,
                                                IProgressMonitor monitor)
Get the remote services implementation identified by URI. This method will present the user with a dialog box that can be canceled.

Parameters:
uri - URI of remote services to retrieve
monitor - progress monitor to allow user to cancel operation
Returns:
remote service, or null if the service cannot be found or failed to initialized
Since:
5.0

PTP
Release 7.0

Copyright (c) 2011 IBM Corporation and others. All Rights Reserved.