Package edu.isi.pegasus.planner.client
Class TCClient
- java.lang.Object
-
- edu.isi.pegasus.planner.client.Executable
-
- edu.isi.pegasus.planner.client.TCClient
-
public class TCClient extends Executable
A common client to add, modify, delete, query any Transformation Catalog implementation.- Version:
- $Revision$
- Author:
- Gaurang Mehta
-
-
Field Summary
Fields Modifier and Type Field Description private intaddprivate java.util.Mapargsmapprivate intbulkjava.lang.Stringclassnameprivate intdeleteprivate java.lang.Stringfileprivate intislfnprivate booleanisoldformatprivate intispfnprivate intisprofileprivate intisresourceprivate intissysinfoprivate intistypeprivate booleanisxmlprivate java.lang.Stringlfnprivate java.lang.Stringpfnprivate java.lang.Stringprofileprivate intqueryprivate java.lang.Stringresourceprivate java.lang.Stringsystemprivate TransformationCatalogtcprivate java.lang.Stringtypeprivate Versionversion-
Fields inherited from class edu.isi.pegasus.planner.client.Executable
mLogger, mLogMsg, mProps, mVersion
-
-
Constructor Summary
Constructors Constructor Description TCClient()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidexecuteCommand()Call the correct commands depending on options.gnu.getopt.LongOpt[]generateValidOptions()Generates an array of validLongOptobjects which contain all the valid options to the Executable.voidinitialize(java.lang.String[] opts)Initialize the executable objectvoidloadProperties()Loads all the properties that would be needed by the Toolkit classes.static voidmain(java.lang.String[] args)voidprintLongVersion()This method is used to print the long version of the command.voidprintShortVersion()This is used to print the short version of the command.protected voidsetupLogging()Sets up the logging options for this class.-
Methods inherited from class edu.isi.pegasus.planner.client.Executable
convertException, convertException, getCommandLineOptions, getEnvValue, getGVDSVersion, initialize, log, lookupConfProperty, sanityCheckOnProperties, setupLogging
-
-
-
-
Field Detail
-
classname
public java.lang.String classname
-
add
private int add
-
query
private int query
-
delete
private int delete
-
bulk
private int bulk
-
islfn
private int islfn
-
ispfn
private int ispfn
-
isresource
private int isresource
-
isprofile
private int isprofile
-
istype
private int istype
-
issysinfo
private int issysinfo
-
isxml
private boolean isxml
-
isoldformat
private boolean isoldformat
-
lfn
private java.lang.String lfn
-
pfn
private java.lang.String pfn
-
profile
private java.lang.String profile
-
type
private java.lang.String type
-
resource
private java.lang.String resource
-
system
private java.lang.String system
-
file
private java.lang.String file
-
tc
private TransformationCatalog tc
-
argsmap
private java.util.Map argsmap
-
version
private Version version
-
-
Method Detail
-
initialize
public void initialize(java.lang.String[] opts)
Description copied from class:ExecutableInitialize the executable object- Overrides:
initializein classExecutable- Parameters:
opts- the command line argument passed to the executable
-
loadProperties
public void loadProperties()
Description copied from class:ExecutableLoads all the properties that would be needed by the Toolkit classes.- Specified by:
loadPropertiesin classExecutable
-
setupLogging
protected void setupLogging()
Sets up the logging options for this class. Looking at the properties file, sets up the appropriate writers for output and stderr.
-
generateValidOptions
public gnu.getopt.LongOpt[] generateValidOptions()
Description copied from class:ExecutableGenerates an array of validLongOptobjects which contain all the valid options to the Executable.- Specified by:
generateValidOptionsin classExecutable
-
executeCommand
public void executeCommand()
Call the correct commands depending on options.- Parameters:
opts- String[] The arguments obtained from the command line.
-
printShortVersion
public void printShortVersion()
Description copied from class:ExecutableThis is used to print the short version of the command.- Specified by:
printShortVersionin classExecutable
-
printLongVersion
public void printLongVersion()
Description copied from class:ExecutableThis method is used to print the long version of the command.- Specified by:
printLongVersionin classExecutable
-
main
public static void main(java.lang.String[] args) throws java.lang.Exception- Throws:
java.lang.Exception
-
-