public class TCClient extends Executable
Modifier and Type | Field and Description |
---|---|
private int |
add |
private java.util.Map |
argsmap |
private int |
bulk |
java.lang.String |
classname |
private int |
delete |
private java.lang.String |
file |
private int |
islfn |
private boolean |
isoldformat |
private int |
ispfn |
private int |
isprofile |
private int |
isresource |
private int |
issysinfo |
private int |
istype |
private boolean |
isxml |
private java.lang.String |
lfn |
private java.lang.String |
pfn |
private java.lang.String |
profile |
private int |
query |
private java.lang.String |
resource |
private java.lang.String |
system |
private TransformationCatalog |
tc |
private java.lang.String |
type |
private Version |
version |
mLogger, mLogMsg, mProps, mVersion
Constructor and Description |
---|
TCClient() |
Modifier and Type | Method and Description |
---|---|
void |
executeCommand()
Call the correct commands depending on options.
|
gnu.getopt.LongOpt[] |
generateValidOptions()
Generates an array of valid
LongOpt objects which contain
all the valid options to the Executable. |
void |
initialize(java.lang.String[] opts)
Initialize the executable object
|
void |
loadProperties()
Loads all the properties that would be needed by the Toolkit classes.
|
static void |
main(java.lang.String[] args) |
void |
printLongVersion()
This method is used to print the long version of the command.
|
void |
printShortVersion()
This is used to print the short version of the command.
|
protected void |
setupLogging()
Sets up the logging options for this class.
|
convertException, convertException, getCommandLineOptions, getEnvValue, getGVDSVersion, initialize, log, lookupConfProperty, sanityCheckOnProperties, setupLogging
public java.lang.String classname
private int add
private int query
private int delete
private int bulk
private int islfn
private int ispfn
private int isresource
private int isprofile
private int istype
private int issysinfo
private boolean isxml
private boolean isoldformat
private java.lang.String lfn
private java.lang.String pfn
private java.lang.String profile
private java.lang.String type
private java.lang.String resource
private java.lang.String system
private java.lang.String file
private TransformationCatalog tc
private java.util.Map argsmap
private Version version
public void initialize(java.lang.String[] opts)
Executable
initialize
in class Executable
opts
- the command line argument passed to the executablepublic void loadProperties()
Executable
loadProperties
in class Executable
protected void setupLogging()
public gnu.getopt.LongOpt[] generateValidOptions()
Executable
LongOpt
objects which contain
all the valid options to the Executable.generateValidOptions
in class Executable
public void executeCommand()
opts
- String[] The arguments obtained from the command line.public void printShortVersion()
Executable
printShortVersion
in class Executable
public void printLongVersion()
Executable
printLongVersion
in class Executable
public static void main(java.lang.String[] args) throws java.lang.Exception
java.lang.Exception