edu.isi.pegasus.planner.client
Class PartitionDAX

java.lang.Object
  extended by edu.isi.pegasus.planner.client.Executable
      extended by edu.isi.pegasus.planner.client.PartitionDAX

public class PartitionDAX
extends Executable

The class ends up partitioning the dax into smaller daxes according to the various algorithms/criteria, to be used for deferred planning.

Version:
$Revision: 3778 $
Author:
Karan Vahi

Field Summary
static String DEFAULT_PARTITIONER_TYPE
          The name of the default partitioner that is loaded, if none is specified by the user.
private  String mDAXFile
          The path to the dax file that is to be partitioned.
private  String mDirectory
          The directory in which the partition daxes are generated.
private  String mType
          The type of the partitioner to be used.
 
Fields inherited from class edu.isi.pegasus.planner.client.Executable
mLogger, mLogMsg, mProps, mVersion
 
Constructor Summary
PartitionDAX()
          The default constructor.
 
Method Summary
 void executeCommand()
          Executes the partition dax on the basis of the options given by the user.
 gnu.getopt.LongOpt[] generateValidOptions()
          Tt generates the LongOpt which contain the valid options that the command will accept.
 void initalize(String[] opts)
          Initialize the PartitionDax object
 void loadProperties()
          Loads all the properties that are needed by this class.
static void main(String[] args)
          The main function of the class, that is invoked by the jvm.
 String partitionDAX(PegasusProperties properties, String daxFile, String directory, String type)
           
 void printLongVersion()
          Generated the long version of the help on the stdout.
 void printShortVersion()
          Generates the short version of the help on the stdout.
 
Methods inherited from class edu.isi.pegasus.planner.client.Executable
convertException, convertException, getCommandLineOptions, getEnvValue, getGVDSVersion, initialize, initialize, log, lookupConfProperty, sanityCheckOnProperties, setupLogging
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_PARTITIONER_TYPE

public static final String DEFAULT_PARTITIONER_TYPE
The name of the default partitioner that is loaded, if none is specified by the user.

See Also:
Constant Field Values

mDAXFile

private String mDAXFile
The path to the dax file that is to be partitioned.


mDirectory

private String mDirectory
The directory in which the partition daxes are generated.


mType

private String mType
The type of the partitioner to be used. Is the same as the name of the implementing class.

Constructor Detail

PartitionDAX

public PartitionDAX()
The default constructor.

Method Detail

initalize

public void initalize(String[] opts)
Initialize the PartitionDax object

Parameters:
opts - the command line argument passed to the PartitionDax

main

public static void main(String[] args)
The main function of the class, that is invoked by the jvm. It calls the executeCommand function.

Parameters:
args - array of arguments.

executeCommand

public void executeCommand()
Executes the partition dax on the basis of the options given by the user.

Parameters:
args - the arguments array populated by the user options.

partitionDAX

public String partitionDAX(PegasusProperties properties,
                           String daxFile,
                           String directory,
                           String type)
Parameters:
properties - the PegasusProperties
daxFile - String
directory - the directory where paritioned daxes reside
type - the type of partitioning to use.
Returns:
the path to the pdax file.

printShortVersion

public void printShortVersion()
Generates the short version of the help on the stdout.

Specified by:
printShortVersion in class Executable

printLongVersion

public void printLongVersion()
Generated the long version of the help on the stdout.

Specified by:
printLongVersion in class Executable

generateValidOptions

public gnu.getopt.LongOpt[] generateValidOptions()
Tt generates the LongOpt which contain the valid options that the command will accept.

Specified by:
generateValidOptions in class Executable
Returns:
array of LongOpt objects , corresponding to the valid options

loadProperties

public void loadProperties()
Loads all the properties that are needed by this class.

Specified by:
loadProperties in class Executable


Copyright © 2011 The University of Southern California. All Rights Reserved.