org.apache.camel.component.file.remote
Interface RemoteFileOperations<T>

All Superinterfaces:
GenericFileOperations<T>
All Known Implementing Classes:
FtpOperations, SftpOperations

public interface RemoteFileOperations<T>
extends GenericFileOperations<T>

Remote file operations based on some backing framework


Method Summary
 boolean connect(RemoteFileConfiguration configuration)
          Connects to the remote server
 void disconnect()
          Disconnects from the remote server
 boolean isConnected()
          Returns whether we are connected to the remote server or not
 boolean sendNoop()
          Sends a noop command to the remote server
 
Methods inherited from interface org.apache.camel.component.file.GenericFileOperations
buildDirectory, changeCurrentDirectory, deleteFile, existsFile, getCurrentDirectory, listFiles, listFiles, renameFile, retrieveFile, setEndpoint, storeFile
 

Method Detail

connect

boolean connect(RemoteFileConfiguration configuration)
                throws GenericFileOperationFailedException
Connects to the remote server

Parameters:
configuration - configuration
Returns:
true if connected
Throws:
GenericFileOperationFailedException - can be thrown

isConnected

boolean isConnected()
                    throws GenericFileOperationFailedException
Returns whether we are connected to the remote server or not

Returns:
true if connected, false if not
Throws:
GenericFileOperationFailedException - can be thrown

disconnect

void disconnect()
                throws GenericFileOperationFailedException
Disconnects from the remote server

Throws:
GenericFileOperationFailedException - can be thrown

sendNoop

boolean sendNoop()
                 throws GenericFileOperationFailedException
Sends a noop command to the remote server

Returns:
true if the noop was a success, false otherwise
Throws:
GenericFileOperationFailedException - can be thrown


Copyright © 2007-2010 The Apache Software Foundation. All Rights Reserved.