PTP
Release 7.0

org.eclipse.ptp.remote.core
Class AbstractRemoteServices

java.lang.Object
  extended by org.eclipse.ptp.remote.core.AbstractRemoteServices
All Implemented Interfaces:
IRemoteServices, IRemoteServicesDescriptor

public abstract class AbstractRemoteServices
extends java.lang.Object
implements IRemoteServices

Abstract base class for remote services. Implementors can use this class to provide a default implementation of a remote services provider.

Since:
5.0

Field Summary
protected  IRemoteServicesDescriptor fDescriptor
           
 
Constructor Summary
AbstractRemoteServices(IRemoteServicesDescriptor descriptor)
           
 
Method Summary
 boolean canCreateConnections()
          Test if this provider can create connections.
 java.lang.String getId()
          Get unique ID of this service.
 java.lang.String getName()
          Get display name of this service.
 java.lang.String getScheme()
          Get the EFS scheme provided by this service.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.eclipse.ptp.remote.core.IRemoteServices
getCommandShell, getConnectionManager, getFileManager, getProcessBuilder, getProcessBuilder, initialize
 

Field Detail

fDescriptor

protected final IRemoteServicesDescriptor fDescriptor
Constructor Detail

AbstractRemoteServices

public AbstractRemoteServices(IRemoteServicesDescriptor descriptor)
Method Detail

canCreateConnections

public boolean canCreateConnections()
Description copied from interface: IRemoteServicesDescriptor
Test if this provider can create connections.

Specified by:
canCreateConnections in interface IRemoteServicesDescriptor
Returns:
true if new connections can be created

getId

public java.lang.String getId()
Description copied from interface: IRemoteServicesDescriptor
Get unique ID of this service. Can be used as a lookup key.

Specified by:
getId in interface IRemoteServicesDescriptor
Returns:
unique ID

getName

public java.lang.String getName()
Description copied from interface: IRemoteServicesDescriptor
Get display name of this service.

Specified by:
getName in interface IRemoteServicesDescriptor
Returns:
display name

getScheme

public java.lang.String getScheme()
Description copied from interface: IRemoteServicesDescriptor
Get the EFS scheme provided by this service.

Specified by:
getScheme in interface IRemoteServicesDescriptor
Returns:
display name

PTP
Release 7.0

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