cgl.imr.script
Class FileDistributor

java.lang.Object
  extended by cgl.imr.script.FileDistributor

public class FileDistributor
extends Object

This class provide the functionality of distributing a set of files available in a given directory to a collection of compute nodes. The compute nodes are read from the $MRPP_HOME/bin/nodes file and the user is expected to give the destination directory (a common directory to in all the nodes) as command line arguments. It uses a thread pool to schedule the file copy processes which utilizes a shell script. Possible improvements to this class would include different file copying mechanisms without the use of secure copy vi a shell script.


Field Summary
static String FILE_COPY_PROGRAM
           
static int NUM_FILE_COPY_THREADS
           
 
Constructor Summary
FileDistributor()
           
 
Method Summary
static void main(String[] args)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

FILE_COPY_PROGRAM

public static String FILE_COPY_PROGRAM

NUM_FILE_COPY_THREADS

public static int NUM_FILE_COPY_THREADS
Constructor Detail

FileDistributor

public FileDistributor()
Method Detail

main

public static void main(String[] args)
                 throws ConfigurationException,
                        IOException,
                        InterruptedException
Throws:
ConfigurationException
IOException
InterruptedException


For comments and suggestions please send e-mail to