|
TPTP 4.5.0 Platform Project Internal API Specification |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface IFileServerCommandFactory
Interface for file server command factories -- used by both the client and server sides of the file service implementation. The server side uses the create file server command method while the client side of this mechanism uses the rest. File server commands have client and server side personalities that in effect, change the class of the command at run-time (the state pattern is implemented in all file server commands, one state represents the server-side personality and another represents the client-side).
| Method Summary | |
|---|---|
IDeleteDirectoryCommand |
createDeleteDirectoryCommand(org.eclipse.hyades.execution.core.file.IFileManagerExtended.FileIdentifierList remoteIdentifiers,
org.eclipse.core.runtime.IProgressMonitor monitor)
Create delete directory command for use by file transfer service clients |
IDeleteFileCommand |
createDeleteFileCommand(org.eclipse.hyades.execution.core.file.IFileManagerExtended.Cookie cookie,
org.eclipse.core.runtime.IProgressMonitor monitor)
Create delete file command for use by file transfer service clients |
IDeleteFileCommand |
createDeleteFileCommand(org.eclipse.hyades.execution.core.file.IFileManagerExtended.FileIdentifierList remoteIdentifiers,
org.eclipse.core.runtime.IProgressMonitor monitor)
Create delete file command for use by file transfer service clients |
IFileServerCommand |
createFileServerCommand(java.lang.String identity,
ISocketChannel clientChannel)
Create a file server command to be used by the file transfer service server, all server-side hosted file server commands are created through this method -- the appropriate command to create is identified by the identity argument passed in. |
IGetFileCommand |
createGetFileCommand(org.eclipse.hyades.execution.core.file.IFileManagerExtended.FileIdentifierList localIdentifiers,
org.eclipse.hyades.execution.core.file.IFileManagerExtended.FileIdentifierList remoteIdentifiers,
org.eclipse.hyades.execution.core.file.IFileManagerExtended.Option[] options,
org.eclipse.core.runtime.IProgressMonitor monitor)
Create get file command for use by file transfer service clients |
IListContentCommand |
createListContentCommand(org.eclipse.hyades.execution.core.file.IFileManagerExtended.FileIdentifierList remoteIdentifiers,
org.eclipse.core.runtime.IProgressMonitor monitor)
Create list content command for use by file transfer service clients, used to list the content of a directory or folder on the remote server |
IModifyPermissionCommand |
createModifyPermissionCommand(org.eclipse.hyades.execution.core.file.IFileManagerExtended.FileIdentifierList remoteIdentifiers,
java.lang.String permissionDirective,
org.eclipse.core.runtime.IProgressMonitor monitor)
Create modify permission command for use by file transfer service clients, used to modify the permissions of files on the remote file server |
IPutFileCommand |
createPutFileCommand(org.eclipse.hyades.execution.core.file.IFileManagerExtended.Cookie cookie,
org.eclipse.hyades.execution.core.file.IFileManagerExtended.FileIdentifierList localIdentifiers,
org.eclipse.hyades.execution.core.file.IFileManagerExtended.FileIdentifierList remoteIdentifiers,
org.eclipse.hyades.execution.core.file.IFileManagerExtended.Option[] options,
org.eclipse.core.runtime.IProgressMonitor monitor)
Create put file command for use by file transfer service clients |
IQueryServerStatusCommand |
createQueryServerStatusCommand()
Create query server status command for use by file transfer service clients, used to query the status of the file server, a simple echo test or equivalent is used as a simple sanity test |
void |
reset()
Resets any appropriate resources or connections associated with this factory, cleans out the state as if the factory instance was constructed new |
| Method Detail |
|---|
IDeleteDirectoryCommand createDeleteDirectoryCommand(org.eclipse.hyades.execution.core.file.IFileManagerExtended.FileIdentifierList remoteIdentifiers,
org.eclipse.core.runtime.IProgressMonitor monitor)
throws ServerNotAvailableException
remoteIdentifiers - the identifiers on the remote server to be deletedmonitor - progress monitor for the delete directory command
ServerNotAvailableException
IDeleteFileCommand createDeleteFileCommand(org.eclipse.hyades.execution.core.file.IFileManagerExtended.Cookie cookie,
org.eclipse.core.runtime.IProgressMonitor monitor)
throws ServerNotAvailableException
cookie - the cookie to use for identifying the associated file
operation that created files, a cookie used for a put file
command for example, can then be used to pass in the delete
file command -- this will then result in the delete command
deleting only the files that were created during the put file
command operation, the cookie identifies which files to remove
via the remote server processmonitor - progress monitor for the delete file command
ServerNotAvailableException
IDeleteFileCommand createDeleteFileCommand(org.eclipse.hyades.execution.core.file.IFileManagerExtended.FileIdentifierList remoteIdentifiers,
org.eclipse.core.runtime.IProgressMonitor monitor)
throws ServerNotAvailableException
remoteIdentifiers - the identifiers on the remote server to be deletedmonitor - progress monitor for the delete file command
ServerNotAvailableException
IFileServerCommand createFileServerCommand(java.lang.String identity,
ISocketChannel clientChannel)
throws InvalidFileServerCommandException
identity - the identity of the command to create on the serverclientChannel - the channel to use to communicate with the client from the
server
InvalidFileServerCommandException#createFileServerCommand(String, ISocketChannel, ClassLoader)
IGetFileCommand createGetFileCommand(org.eclipse.hyades.execution.core.file.IFileManagerExtended.FileIdentifierList localIdentifiers,
org.eclipse.hyades.execution.core.file.IFileManagerExtended.FileIdentifierList remoteIdentifiers,
org.eclipse.hyades.execution.core.file.IFileManagerExtended.Option[] options,
org.eclipse.core.runtime.IProgressMonitor monitor)
throws ServerNotAvailableException
localIdentifiers - the identifiers of the files to be created locally, the
destination file identifiers for the transferremoteIdentifiers - the identifiers of the files to be transferred from the remote
server to the local client, the source file identifiers for
the transferoptions - options to configure the get file command behaviormonitor - progress monitor for the get file command operation
ServerNotAvailableException
IListContentCommand createListContentCommand(org.eclipse.hyades.execution.core.file.IFileManagerExtended.FileIdentifierList remoteIdentifiers,
org.eclipse.core.runtime.IProgressMonitor monitor)
throws ServerNotAvailableException
remoteIdentifiers - identifies the directories to list the contents ofmonitor - progress monitor for the list content command
ServerNotAvailableException
IModifyPermissionCommand createModifyPermissionCommand(org.eclipse.hyades.execution.core.file.IFileManagerExtended.FileIdentifierList remoteIdentifiers,
java.lang.String permissionDirective,
org.eclipse.core.runtime.IProgressMonitor monitor)
throws ServerNotAvailableException
remoteIdentifiers - the remote identifiers to affect with the modify permission
command's operationpermissionDirective - the permission directives to affect the filesmonitor - progress monitor for the modify permission command
ServerNotAvailableException
IPutFileCommand createPutFileCommand(org.eclipse.hyades.execution.core.file.IFileManagerExtended.Cookie cookie,
org.eclipse.hyades.execution.core.file.IFileManagerExtended.FileIdentifierList localIdentifiers,
org.eclipse.hyades.execution.core.file.IFileManagerExtended.FileIdentifierList remoteIdentifiers,
org.eclipse.hyades.execution.core.file.IFileManagerExtended.Option[] options,
org.eclipse.core.runtime.IProgressMonitor monitor)
throws ServerNotAvailableException
cookie - the cookie to use for identifying the instance of the command
between client and server, for example, the cookie represents
an instance of the command on the client and can then be
associated with the command on the server that is associated
with the same operationlocalIdentifiers - the identifiers of the files to be sent to the remote server,
the source file identifiers in this operationremoteIdentifiers - the identifiers of the files to be created on the remote
server process, the destination file identifiers in the
operationoptions - options to configure the put file command behaviormonitor - progress monitor for the put file command
ServerNotAvailableException
IQueryServerStatusCommand createQueryServerStatusCommand()
throws ServerNotAvailableException
ServerNotAvailableExceptionvoid reset()
|
TPTP 4.5.0 Platform Project Internal API Specification |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||