|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.objectweb.proactive.filetransfer.FileTransfer
public class FileTransfer
This class provides a standard entry point for API FileTransfer tools.
Constructor Summary | |
---|---|
FileTransfer()
|
Method Summary | |
---|---|
static FileVector |
pullFile(Node node,
java.io.File srcFile,
java.io.File dstFile)
Pulls a file from a remote node. |
static FileVector |
pullFile(Node node,
java.io.File srcFile,
java.io.File dstFile,
int bsize,
int numFlyingBlocks)
|
static FileVector |
pullFiles(Node node,
java.io.File[] srcFile,
java.io.File[] dstFile)
This method behaves like pullFile(Node, File, File), with the difference that it transfers multiple files. |
static FileVector |
pullFiles(Node node,
java.io.File[] srcFile,
java.io.File[] dstFile,
int bsize,
int numFlyingBlocks)
|
static FileVector |
pushFile(Node node,
java.io.File srcFile,
java.io.File dstFile)
Pushs a file from the local node to a remote node. |
static FileVector |
pushFile(Node node,
java.io.File srcFile,
java.io.File dstFile,
int bsize,
int numFlyingBlocks)
|
static FileVector |
pushFile(Node node,
FileVector srcFile,
java.io.File dst)
|
static FileVector |
pushFiles(Node node,
java.io.File[] srcFile,
java.io.File[] dstFile)
This method behaves like pushFile(Node, File, File), with the difference that it transfers multiple files. |
static FileVector |
pushFiles(Node node,
java.io.File[] srcFile,
java.io.File[] dstFile,
int bsize,
int numFlyingBlocks)
|
static FileVector |
pushFiles(Node node,
FileVector srcFile,
java.io.File[] dst)
Pushes a File to the node, while the file is being transferred from a previous operation. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FileTransfer()
Method Detail |
---|
public static FileVector pullFile(Node node, java.io.File srcFile, java.io.File dstFile) throws java.io.IOException, ProActiveException
node
- The remote ProActive node.srcFile
- The source file in the remote node.dstFile
- The destination file in the local node.
java.io.IOException
- Problem with permissions, files not found, etc.
ProActiveException
- Problems with communication like node unreachable, etc.public static FileVector pullFile(Node node, java.io.File srcFile, java.io.File dstFile, int bsize, int numFlyingBlocks) throws java.io.IOException, ProActiveException
java.io.IOException
ProActiveException
public static FileVector pullFiles(Node node, java.io.File[] srcFile, java.io.File[] dstFile) throws java.io.IOException, ProActiveException
java.io.IOException
ProActiveException
public static FileVector pullFiles(Node node, java.io.File[] srcFile, java.io.File[] dstFile, int bsize, int numFlyingBlocks) throws java.io.IOException, ProActiveException
java.io.IOException
ProActiveException
public static FileVector pushFile(Node node, java.io.File srcFile, java.io.File dstFile) throws java.io.IOException, ProActiveException
node
- The remote ProActive node.srcFile
- The source file in the local node.dstFile
- The destination file in the remote node.
java.io.IOException
- Problem with permissions, files not found, etc.
ProActiveException
- Problems with communication like node unreachable, etc.public static FileVector pushFile(Node node, java.io.File srcFile, java.io.File dstFile, int bsize, int numFlyingBlocks) throws java.io.IOException, ProActiveException
java.io.IOException
ProActiveException
public static FileVector pushFiles(Node node, java.io.File[] srcFile, java.io.File[] dstFile) throws java.io.IOException, ProActiveException
java.io.IOException
ProActiveException
public static FileVector pushFiles(Node node, java.io.File[] srcFile, java.io.File[] dstFile, int bsize, int numFlyingBlocks) throws java.io.IOException, ProActiveException
java.io.IOException
ProActiveException
public static FileVector pushFile(Node node, FileVector srcFile, java.io.File dst) throws java.io.IOException, ProActiveException
java.io.IOException
ProActiveException
public static FileVector pushFiles(Node node, FileVector srcFile, java.io.File[] dst) throws ProActiveException
node
- The node to where the file will be transferred/srcFile
- The source files which correspond to the result of another file transfer operation.dst
- The destination names of the files.
ProActiveException
- If the srcFile vector and the dst array length do not match.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |