Class TutorialExercise42
java.lang.Object
|
+--TutorialExercise42
- public class TutorialExercise42
- extends java.lang.Object
|
Constructor Summary |
TutorialExercise42(java.lang.String[] host,
int port,
java.lang.String destJavaFile,
java.lang.String sourceJavaFile,
int transfer_type,
java.lang.String[] interval,
java.lang.String credentialPath)
Copies the executable file to the specified host and path. |
|
Method Summary |
java.lang.String |
getOutput()
Returns the aggregated output of the jobs. |
static void |
main(java.lang.String[] args)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TutorialExercise42
public TutorialExercise42(java.lang.String[] host,
int port,
java.lang.String destJavaFile,
java.lang.String sourceJavaFile,
int transfer_type,
java.lang.String[] interval,
java.lang.String credentialPath)
- Copies the executable file to the specified host and path. Then run the executables there.
- Parameters:
host - Host names which will execute the program.port - FTP port (use the default one, which is 2811)destJavaFile - the destination file name with path informationsourceJavaFile - the source file name with path informationtransfer_type - the transfer type of the file use GridFTPSession.TYPE_IMAGE for binary transfers.interval - the arguments of the Counter.java program, which shows the startng
getOutput
public java.lang.String getOutput()
- Returns the aggregated output of the jobs.
- Returns:
- output
main
public static void main(java.lang.String[] args)