|
PTP Release 5.0 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.ptp.remote.core.RemoteServicesDelegate
public class RemoteServicesDelegate
A wrapper for holding initialized remote services information.
Also contains convenience utilities associated with remote file operations.
IRemoteFileManager,
IFileStore| Constructor Summary | |
|---|---|
RemoteServicesDelegate(java.lang.String remoteServicesId,
java.lang.String remoteConnectionName)
|
|
| Method Summary | |
|---|---|
static void |
copy(IRemoteFileManager from,
java.lang.String source,
IRemoteFileManager to,
java.lang.String target,
int mkParent,
org.eclipse.core.runtime.IProgressMonitor progress)
|
IRemoteConnection |
getLocalConnection()
|
IRemoteConnectionManager |
getLocalConnectionManager()
|
IRemoteFileManager |
getLocalFileManager()
|
java.net.URI |
getLocalHome()
|
IRemoteServices |
getLocalServices()
|
IRemoteConnection |
getRemoteConnection()
|
IRemoteConnectionManager |
getRemoteConnectionManager()
|
IRemoteFileManager |
getRemoteFileManager()
|
java.net.URI |
getRemoteHome()
|
IRemoteServices |
getRemoteServices()
|
void |
initialize(org.eclipse.core.runtime.IProgressMonitor monitor)
On the basis of the passed in identifiers, constructs the local and remote services, connection manager, connection, file manager and home URIs. |
static boolean |
isStable(IRemoteFileManager manager,
java.lang.String path,
int intervalInSecs,
org.eclipse.core.runtime.IProgressMonitor progress)
Checks for existence of file. |
static java.lang.String |
read(IRemoteFileManager manager,
java.lang.String path,
org.eclipse.core.runtime.IProgressMonitor progress)
|
static void |
write(IRemoteFileManager manager,
java.lang.String path,
java.lang.String contents,
org.eclipse.core.runtime.IProgressMonitor progress)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public RemoteServicesDelegate(java.lang.String remoteServicesId,
java.lang.String remoteConnectionName)
remoteServicesId - e.g., "local", "remotetools", "rse"remoteConnectionName - e.g., "ember.ncsa.illinois.edu"| Method Detail |
|---|
public IRemoteConnection getLocalConnection()
public IRemoteConnectionManager getLocalConnectionManager()
public IRemoteFileManager getLocalFileManager()
public java.net.URI getLocalHome()
public IRemoteServices getLocalServices()
public IRemoteConnection getRemoteConnection()
public IRemoteConnectionManager getRemoteConnectionManager()
public IRemoteFileManager getRemoteFileManager()
public java.net.URI getRemoteHome()
public IRemoteServices getRemoteServices()
public void initialize(org.eclipse.core.runtime.IProgressMonitor monitor)
throws org.eclipse.core.runtime.CoreException
monitor -
org.eclipse.core.runtime.CoreException
public static void copy(IRemoteFileManager from,
java.lang.String source,
IRemoteFileManager to,
java.lang.String target,
int mkParent,
org.eclipse.core.runtime.IProgressMonitor progress)
throws org.eclipse.core.runtime.CoreException
from - manager for source resourcesource - file to copyto - manager for target resourcetarget - destination filemkParent - EFS.NONE = mkdir -p on the parent directory; EFS.SHALLOW =
mkdir parent; UNDEFINED = no mkdirprogress -
org.eclipse.core.runtime.CoreException
public static boolean isStable(IRemoteFileManager manager,
java.lang.String path,
int intervalInSecs,
org.eclipse.core.runtime.IProgressMonitor progress)
throws org.eclipse.core.runtime.CoreException
manager - for resource where file is locatedpath - of fileintervalInSecs - time after which to check size of file againprogress -
org.eclipse.core.runtime.CoreException
public static java.lang.String read(IRemoteFileManager manager,
java.lang.String path,
org.eclipse.core.runtime.IProgressMonitor progress)
throws org.eclipse.core.runtime.CoreException
manager - for resource where file is locatedpath - of fileprogress -
org.eclipse.core.runtime.CoreException
public static void write(IRemoteFileManager manager,
java.lang.String path,
java.lang.String contents,
org.eclipse.core.runtime.IProgressMonitor progress)
throws org.eclipse.core.runtime.CoreException
manager - for resource where file is to be writtenpath - of file to writecontents - to write to fileprogress -
org.eclipse.core.runtime.CoreException
|
PTP Release 5.0 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||