|
TPTP 4.6.0 Platform Project Public API Specification |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface IFileManagerExtended
New and improved file manager interface that supports easier feature extension in the future. The get, put and delete operations have been improved with plurality support, progress monitor support and increased type-safety for method signatures. File manager options are now available to further fine-tune the semantics of a given method such as get or put. Options are described in more detail under the option type-safe enumeration in this interface.
| Nested Class Summary | |
|---|---|
static class |
IFileManagerExtended.Cookie
Cookie class used for the sake of uniqueness when identifing a set of state on the file server. |
static class |
IFileManagerExtended.FileIdentifierList
A lightweight list class to use when passing one or many file identifier names into the file manager extended interface. |
static class |
IFileManagerExtended.Option
Type-safe enumeration class used for file manager operations, not final since enumeration values can be added in the future by classes in the local package-only. |
| Method Summary | |
|---|---|
void |
deleteDirectory(IFileManagerExtended.FileIdentifierList remoteIdentifiers)
Delete directories identified by the remote names specified. |
void |
deleteDirectory(IFileManagerExtended.FileIdentifierList remoteIdentifiers,
org.eclipse.core.runtime.IProgressMonitor monitor)
Delete directories identified by the remote names specified using the given progress monitor for progres tracking and cancelability. |
void |
deleteFile(IFileManagerExtended.Cookie cookie)
Delete files identified by the state on the remote file server specified by the given state identifier (cookie) |
void |
deleteFile(IFileManagerExtended.Cookie cookie,
org.eclipse.core.runtime.IProgressMonitor monitor)
Delete files identified by the state on the remote file server specified by the given state identifier (cookie) |
void |
deleteFile(IFileManagerExtended.FileIdentifierList remoteIdentifiers)
Delete files identified by the remote names specified. |
void |
deleteFile(IFileManagerExtended.FileIdentifierList remoteIdentifiers,
org.eclipse.core.runtime.IProgressMonitor monitor)
Delete files identified by the remote names specified using the given progress monitor for progres tracking and cancelability. |
boolean |
determineServerReach(java.lang.String host,
int port)
Determine the server's reach, the server's reach is its ability to connect to other hosts (if a firewall blocks the server attempting connection then the reach cannot be extended for this particular host and port number) -- the primary use for this function is to determine if the agent controller machine can connect successfully to the workbench machine on a given host and port combination |
void |
getFile(IFileManagerExtended.FileIdentifierList localIdentifiers,
IFileManagerExtended.FileIdentifierList remoteIdentifiers)
Transfer files identified by remote names into files identified by local names, basically download files from remote to local. |
void |
getFile(IFileManagerExtended.FileIdentifierList localIdentifiers,
IFileManagerExtended.FileIdentifierList remoteIdentifiers,
IFileManagerExtended.Option[] options)
Transfer files identified by remote names into files identified by local names, basically download files from remote to local. |
void |
getFile(IFileManagerExtended.FileIdentifierList localIdentifiers,
IFileManagerExtended.FileIdentifierList remoteIdentifiers,
IFileManagerExtended.Option[] options,
org.eclipse.core.runtime.IProgressMonitor monitor)
Transfer files identified by remote names into files identified by local names, basically download files from remote to local. |
void |
getFile(IFileManagerExtended.FileIdentifierList localIdentifiers,
IFileManagerExtended.FileIdentifierList remoteIdentifiers,
org.eclipse.core.runtime.IProgressMonitor monitor)
Transfer files identified by remote names into files identified by local names, basically download files from remote to local. |
boolean[] |
isDirectoryExistent(IFileManagerExtended.FileIdentifierList remoteIdentifier)
Determines if the directory path specified resolves to an existing directory, used to validate if the given path represents a valid existing directory on the server |
boolean[] |
isDirectoryExistent(IFileManagerExtended.FileIdentifierList remoteIdentifier,
org.eclipse.core.runtime.IProgressMonitor monitor)
Determines if the directory path specified resolves to an existing directory, used to validate if the given path represents a valid existing directory on the server |
boolean |
isServerAvailable()
Indicates whether the file server is up and running and available for commands to be sent |
IFileManagerExtended.FileIdentifierList |
listContent(IFileManagerExtended.FileIdentifierList remoteIdentifiers)
List the contents of the file (which is a directory) identified by the remote names given. |
IFileManagerExtended.FileIdentifierList |
listContent(IFileManagerExtended.FileIdentifierList remoteIdentifiers,
org.eclipse.core.runtime.IProgressMonitor monitor)
List the contents of the file (which is a directory) identified by the remote names given. |
void |
modifyPermission(IFileManagerExtended.FileIdentifierList remoteIdentifiers,
java.lang.String permissionDirective)
Modify the permissions of a file or file directory given the names that identify the remote files and/or file directories and a permission directive in the form of a platform-specific string. |
void |
modifyPermission(IFileManagerExtended.FileIdentifierList remoteIdentifiers,
java.lang.String permissionDirective,
org.eclipse.core.runtime.IProgressMonitor monitor)
Modify the permissions of a file or file directory given the names that identify the remote files and/or file directories and a permission directive in the form of a platform-specific string. |
void |
putFile(IFileManagerExtended.Cookie cookie,
IFileManagerExtended.FileIdentifierList localIdentifiers,
IFileManagerExtended.FileIdentifierList remoteIdentifiers)
Transfer files identified by local names into files identified by remote names, basically upload files from local to remote, the remote file identifiers can be relative or absolute paths on the remote file system. |
void |
putFile(IFileManagerExtended.Cookie cookie,
IFileManagerExtended.FileIdentifierList localIdentifiers,
IFileManagerExtended.FileIdentifierList remoteIdentifiers,
IFileManagerExtended.Option[] options)
Transfer files identified by local names into files identified by remote names, basically upload files from local to remote. |
void |
putFile(IFileManagerExtended.Cookie cookie,
IFileManagerExtended.FileIdentifierList localIdentifiers,
IFileManagerExtended.FileIdentifierList remoteIdentifiers,
IFileManagerExtended.Option[] options,
org.eclipse.core.runtime.IProgressMonitor monitor)
Transfer files identified by local names into files identified by remote names, basically upload files from local to remote. |
void |
putFile(IFileManagerExtended.Cookie cookie,
IFileManagerExtended.FileIdentifierList localIdentifiers,
IFileManagerExtended.FileIdentifierList remoteIdentifiers,
org.eclipse.core.runtime.IProgressMonitor monitor)
Transfer files identified by local names into files identified by remote names, basically upload files from local to remote. |
void |
putFile(IFileManagerExtended.FileIdentifierList localIdentifiers,
IFileManagerExtended.FileIdentifierList remoteIdentifiers)
Transfer files identified by local names into files identified by remote names, basically upload files from local to remote. |
void |
putFile(IFileManagerExtended.FileIdentifierList localIdentifiers,
IFileManagerExtended.FileIdentifierList remoteIdentifiers,
IFileManagerExtended.Option[] options)
Transfer files identified by local names into files identified by remote names, basically upload files from local to remote. |
void |
putFile(IFileManagerExtended.FileIdentifierList localIdentifiers,
IFileManagerExtended.FileIdentifierList remoteIdentifiers,
IFileManagerExtended.Option[] options,
org.eclipse.core.runtime.IProgressMonitor monitor)
Transfer files identified by local names into files identified by remote names, basically upload files from local to remote. |
void |
putFile(IFileManagerExtended.FileIdentifierList localIdentifiers,
IFileManagerExtended.FileIdentifierList remoteIdentifiers,
org.eclipse.core.runtime.IProgressMonitor monitor)
Transfer files identified by local names into files identified by remote names, basically upload files from local to remote. |
void |
reset()
Resets the file manager, clearing any cached state, should have almost the same consequences as constructing a new file manager, as if for the first time for this client. |
| Methods inherited from interface org.eclipse.hyades.execution.core.file.IFileManager |
|---|
deleteFile, getFile, putFile |
| Method Detail |
|---|
void deleteDirectory(IFileManagerExtended.FileIdentifierList remoteIdentifiers)
throws java.io.IOException,
org.eclipse.hyades.internal.execution.core.file.ServerNotAvailableException
remoteIdentifiers - the remote directories to delete
IOException, - ServerNotAvailableException
java.io.IOException
org.eclipse.hyades.internal.execution.core.file.ServerNotAvailableException
void deleteDirectory(IFileManagerExtended.FileIdentifierList remoteIdentifiers,
org.eclipse.core.runtime.IProgressMonitor monitor)
throws java.io.IOException,
org.eclipse.hyades.internal.execution.core.file.ServerNotAvailableException
remoteIdentifiers - the names identifying the remote directories to be deletedmonitor - the progress monitor to use for progress query and canceling
IOException, - ServerNotAvailableException
java.io.IOException
org.eclipse.hyades.internal.execution.core.file.ServerNotAvailableException
void deleteFile(IFileManagerExtended.Cookie cookie,
org.eclipse.core.runtime.IProgressMonitor monitor)
throws java.io.IOException,
org.eclipse.hyades.internal.execution.core.file.ServerNotAvailableException
cookie - identifies the state on the server for this command, for
example, when a put file command is executed, optionally a
state identifier (cookie) may be given, when this is the case,
the file server stores state concerning the particular put
file command -- it will know for example which files have been
created and then it will know how to use that state to delete
them againmonitor - the progress monitor to use for progress query and canceling
IOException, - ServerNotAvailableException
java.io.IOException
org.eclipse.hyades.internal.execution.core.file.ServerNotAvailableException
void deleteFile(IFileManagerExtended.FileIdentifierList remoteIdentifiers)
throws java.io.IOException,
org.eclipse.hyades.internal.execution.core.file.ServerNotAvailableException
remoteIdentifiers - the remote files to delete
IOException, - ServerNotAvailableException
java.io.IOException
org.eclipse.hyades.internal.execution.core.file.ServerNotAvailableException
void deleteFile(IFileManagerExtended.FileIdentifierList remoteIdentifiers,
org.eclipse.core.runtime.IProgressMonitor monitor)
throws java.io.IOException,
org.eclipse.hyades.internal.execution.core.file.ServerNotAvailableException
remoteIdentifiers - the names identifying the remote files to be deletedmonitor - the progress monitor to use for progress query and canceling
IOException, - ServerNotAvailableException
java.io.IOException
org.eclipse.hyades.internal.execution.core.file.ServerNotAvailableException
void deleteFile(IFileManagerExtended.Cookie cookie)
throws java.io.IOException,
org.eclipse.hyades.internal.execution.core.file.ServerNotAvailableException
cookie - identifies the state on the server for this command, for
example, when a put file command is executed, optionally a
state identifier (cookie) may be given, when this is the case,
the file server stores state concerning the particular put
file command -- it will know for example which files have been
created and then it will know how to use that state to delete
them again
IOException, - ServerNotAvailableException
java.io.IOException
org.eclipse.hyades.internal.execution.core.file.ServerNotAvailableException
boolean determineServerReach(java.lang.String host,
int port)
host - the host to attempt to connect back on (from the server to
this client initiating the command)port - the port the server will attempt to connect back on
void getFile(IFileManagerExtended.FileIdentifierList localIdentifiers,
IFileManagerExtended.FileIdentifierList remoteIdentifiers)
throws java.io.IOException,
org.eclipse.hyades.internal.execution.core.file.ServerNotAvailableException
localIdentifiers - the names identifying the local files to be copied toremoteNames - the names identifying the remote files to be copied from
IOException, - ServerNotAvailableException
java.io.IOException
org.eclipse.hyades.internal.execution.core.file.ServerNotAvailableException
void getFile(IFileManagerExtended.FileIdentifierList localIdentifiers,
IFileManagerExtended.FileIdentifierList remoteIdentifiers,
IFileManagerExtended.Option[] options)
throws java.io.IOException,
org.eclipse.hyades.internal.execution.core.file.ServerNotAvailableException
localIdentifiers - the names identifying the local files to be copied toremoteIdentifiers - the names identifying the remote files to be copied fromoptions - the options to use for the file manager operation
IOException, - ServerNotAvailableException
java.io.IOException
org.eclipse.hyades.internal.execution.core.file.ServerNotAvailableException
void getFile(IFileManagerExtended.FileIdentifierList localIdentifiers,
IFileManagerExtended.FileIdentifierList remoteIdentifiers,
IFileManagerExtended.Option[] options,
org.eclipse.core.runtime.IProgressMonitor monitor)
throws java.io.IOException,
org.eclipse.hyades.internal.execution.core.file.ServerNotAvailableException
localIdentifiers - the names identifying the local files to be copied toremoteIdentifiers - the names identifying the remote files to be copied fromoptions - the options to use for the file manager operationmonitor - the progress monitor to use for progress and execution control
IOException, - ServerNotAvailableException
java.io.IOException
org.eclipse.hyades.internal.execution.core.file.ServerNotAvailableException
void getFile(IFileManagerExtended.FileIdentifierList localIdentifiers,
IFileManagerExtended.FileIdentifierList remoteIdentifiers,
org.eclipse.core.runtime.IProgressMonitor monitor)
throws java.io.IOException,
org.eclipse.hyades.internal.execution.core.file.ServerNotAvailableException
localIdentifiers - the names identifying the local files to be copied toremoteIdentifiers - the names identifying the remote files to be copied frommonitor - the progress monitor to use for progress and execution control
IOException, - ServerNotAvailableException
java.io.IOException
org.eclipse.hyades.internal.execution.core.file.ServerNotAvailableException
boolean[] isDirectoryExistent(IFileManagerExtended.FileIdentifierList remoteIdentifier)
throws java.io.IOException,
org.eclipse.hyades.internal.execution.core.file.ServerNotAvailableException
remoteIdentifier - the directory to validate on the server
IOException, - ServerNotAvailableException
java.io.IOException
org.eclipse.hyades.internal.execution.core.file.ServerNotAvailableException
boolean[] isDirectoryExistent(IFileManagerExtended.FileIdentifierList remoteIdentifier,
org.eclipse.core.runtime.IProgressMonitor monitor)
throws java.io.IOException,
org.eclipse.hyades.internal.execution.core.file.ServerNotAvailableException
remoteIdentifier - the directory to validate on the servermonitor - the progres monitor for querying progress and canceling
IOException, - ServerNotAvailableException
java.io.IOException
org.eclipse.hyades.internal.execution.core.file.ServerNotAvailableException
boolean isServerAvailable()
throws java.io.IOException
java.io.IOException
IFileManagerExtended.FileIdentifierList listContent(IFileManagerExtended.FileIdentifierList remoteIdentifiers)
throws java.io.IOException,
org.eclipse.hyades.internal.execution.core.file.ServerNotAvailableException
remoteIdentifiers - the names identifying the remote file directories to list
contents of
IOException, - ServerNotAvailableException
java.io.IOException
org.eclipse.hyades.internal.execution.core.file.ServerNotAvailableException
IFileManagerExtended.FileIdentifierList listContent(IFileManagerExtended.FileIdentifierList remoteIdentifiers,
org.eclipse.core.runtime.IProgressMonitor monitor)
throws java.io.IOException,
org.eclipse.hyades.internal.execution.core.file.ServerNotAvailableException
remoteIdentifiers - the names identifying the remote file directories to list
contents ofmonitor - the progres monitor for querying progress and canceling
IOException, - ServerNotAvailableException
java.io.IOException
org.eclipse.hyades.internal.execution.core.file.ServerNotAvailableException
void modifyPermission(IFileManagerExtended.FileIdentifierList remoteIdentifiers,
java.lang.String permissionDirective)
throws java.io.IOException,
org.eclipse.hyades.internal.execution.core.file.ServerNotAvailableException
remoteIdentifiers - the names identifying the remote files and file directories to
apply the given permission directive topermissionDirective - the permission directive to pass, unchanged, to the
server-side file manager implementation
IOException, - ServerNotAvailableException
java.io.IOException
org.eclipse.hyades.internal.execution.core.file.ServerNotAvailableException
void modifyPermission(IFileManagerExtended.FileIdentifierList remoteIdentifiers,
java.lang.String permissionDirective,
org.eclipse.core.runtime.IProgressMonitor monitor)
throws java.io.IOException,
org.eclipse.hyades.internal.execution.core.file.ServerNotAvailableException
remoteIdentifiers - the names identifying the remote files and file directories to
apply the given permission directive topermissionDirective - the permission directive to pass, unchanged, to the
server-side file manager implementationmonitor - the progress monitor for querying progress and canceling
IOException, - ServerNotAvailableException
java.io.IOException
org.eclipse.hyades.internal.execution.core.file.ServerNotAvailableException
void putFile(IFileManagerExtended.Cookie cookie,
IFileManagerExtended.FileIdentifierList localIdentifiers,
IFileManagerExtended.FileIdentifierList remoteIdentifiers)
throws java.io.IOException,
org.eclipse.hyades.internal.execution.core.file.ServerNotAvailableException
cookie - the state identifier (cookie) to use for this one particular
command invocation, can be saved and then passed in to other
methods to access this stored server state (such as the delete
file method)localIdentifiers - the names identifying the local files to be copied fromremoteIdentifiers - the names identifying the remote files to be copied to,
supports relative paths in addition to absolute paths,
resolving the relative paths into absolute paths as required,
this argument serves as an in and out argument returning the
resolved relative file identifiers back (as absolute paths on
the remote system) -- use forward slashes '/' to separate path
segments to be as platform-agnostic as possible (this will
work on the majority of file systems).
IOException, - ServerNotAvailableException
java.io.IOException
org.eclipse.hyades.internal.execution.core.file.ServerNotAvailableException
void putFile(IFileManagerExtended.Cookie cookie,
IFileManagerExtended.FileIdentifierList localIdentifiers,
IFileManagerExtended.FileIdentifierList remoteIdentifiers,
IFileManagerExtended.Option[] options)
throws java.io.IOException,
org.eclipse.hyades.internal.execution.core.file.ServerNotAvailableException
cookie - the state identifier (cookie) to use for this one particular
command invocation, can be saved and then passed in to other
methods to access this stored server state (such as the delete
file method)localIdentifiers - the names identifying the local files to be copied fromremoteIdentifiers - the names identifying the remote files to be copied to,
supports relative paths in addition to absolute paths,
resolving the relative paths into absolute paths as required,
this argument serves as an in and out argument returning the
resolved relative file identifiers back (as absolute paths on
the remote system)options - the options to use for the file manager operation
IOException, - ServerNotAvailableException
java.io.IOException
org.eclipse.hyades.internal.execution.core.file.ServerNotAvailableException
void putFile(IFileManagerExtended.Cookie cookie,
IFileManagerExtended.FileIdentifierList localIdentifiers,
IFileManagerExtended.FileIdentifierList remoteIdentifiers,
IFileManagerExtended.Option[] options,
org.eclipse.core.runtime.IProgressMonitor monitor)
throws java.io.IOException,
org.eclipse.hyades.internal.execution.core.file.ServerNotAvailableException
cookie - the state identifier (cookie) to use for this one particular
command invocation, can be saved and then passed in to other
methods to access this stored server state (such as the delete
file method)localIdentifiers - the names identifying the local files to be copied fromremoteIdentifiers - the names identifying the remote files to be copied to,
supports relative paths in addition to absolute paths,
resolving the relative paths into absolute paths as required,
this argument serves as an in and out argument returning the
resolved relative file identifiers back (as absolute paths on
the remote system)options - the options to use for the file manager operationmonitor - the progress monitor to use for reporting and canceling
IOException, - ServerNotAvailableException
java.io.IOException
org.eclipse.hyades.internal.execution.core.file.ServerNotAvailableException
void putFile(IFileManagerExtended.Cookie cookie,
IFileManagerExtended.FileIdentifierList localIdentifiers,
IFileManagerExtended.FileIdentifierList remoteIdentifiers,
org.eclipse.core.runtime.IProgressMonitor monitor)
throws java.io.IOException,
org.eclipse.hyades.internal.execution.core.file.ServerNotAvailableException
cookie - the state identifier (cookie) to use for this one particular
command invocation, can be saved and then passed in to other
methods to access this stored server state (such as the delete
file method)localIdentifiers - the names identifying the local files to be copied fromremoteIdentifiers - the names identifying the remote files to be copied to,
supports relative paths in addition to absolute paths,
resolving the relative paths into absolute paths as required,
this argument serves as an in and out argument returning the
resolved relative file identifiers back (as absolute paths on
the remote system)monitor - the progress monitor to use for reporting and canceling
IOException, - ServerNotAvailableException
java.io.IOException
org.eclipse.hyades.internal.execution.core.file.ServerNotAvailableException
void putFile(IFileManagerExtended.FileIdentifierList localIdentifiers,
IFileManagerExtended.FileIdentifierList remoteIdentifiers)
throws java.io.IOException,
org.eclipse.hyades.internal.execution.core.file.ServerNotAvailableException
localIdentifiers - the names identifying the local files to be copied fromremoteIdentifiers - the names identifying the remote files to be copied to,
supports relative paths in addition to absolute paths,
resolving the relative paths into absolute paths as required,
this argument serves as an in and out argument returning the
resolved relative file identifiers back (as absolute paths on
the remote system)
IOException, - ServerNotAvailableException
java.io.IOException
org.eclipse.hyades.internal.execution.core.file.ServerNotAvailableException
void putFile(IFileManagerExtended.FileIdentifierList localIdentifiers,
IFileManagerExtended.FileIdentifierList remoteIdentifiers,
IFileManagerExtended.Option[] options)
throws java.io.IOException,
org.eclipse.hyades.internal.execution.core.file.ServerNotAvailableException
localIdentifiers - the names identifying the local files to be copied fromremoteIdentifiers - the names identifying the remote files to be copied to,
supports relative paths in addition to absolute paths,
resolving the relative paths into absolute paths as required,
this argument serves as an in and out argument returning the
resolved relative file identifiers back (as absolute paths on
the remote system)options - the options to use for the file manager operation
IOException, - ServerNotAvailableException
java.io.IOException
org.eclipse.hyades.internal.execution.core.file.ServerNotAvailableException
void putFile(IFileManagerExtended.FileIdentifierList localIdentifiers,
IFileManagerExtended.FileIdentifierList remoteIdentifiers,
IFileManagerExtended.Option[] options,
org.eclipse.core.runtime.IProgressMonitor monitor)
throws java.io.IOException,
org.eclipse.hyades.internal.execution.core.file.ServerNotAvailableException
localIdentifiers - the names identifying the local files to be copied fromremoteIdentifiers - the names identifying the remote files to be copied to,
supports relative paths in addition to absolute paths,
resolving the relative paths into absolute paths as required,
this argument serves as an in and out argument returning the
resolved relative file identifiers back (as absolute paths on
the remote system)options - the options to use for the file manager operationmonitor - the progress monitor to use for reporting and canceling
IOException, - ServerNotAvailableException
java.io.IOException
org.eclipse.hyades.internal.execution.core.file.ServerNotAvailableException
void putFile(IFileManagerExtended.FileIdentifierList localIdentifiers,
IFileManagerExtended.FileIdentifierList remoteIdentifiers,
org.eclipse.core.runtime.IProgressMonitor monitor)
throws java.io.IOException,
org.eclipse.hyades.internal.execution.core.file.ServerNotAvailableException
localIdentifiers - the names identifying the local files to be copied fromremoteIdentifiers - the names identifying the remote files to be copied to,
supports relative paths in addition to absolute paths,
resolving the relative paths into absolute paths as required,
this argument serves as an in and out argument returning the
resolved relative file identifiers back (as absolute paths on
the remote system)monitor - the progress monitor to use for reporting and canceling
IOException, - ServerNotAvailableException
java.io.IOException
org.eclipse.hyades.internal.execution.core.file.ServerNotAvailableExceptionvoid reset()
|
TPTP 4.6.0 Platform Project Public API Specification |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||