public class TCConverter extends Executable
| Modifier and Type | Field and Description |
|---|---|
private static String |
DATABASE_FORMAT
The database format.
|
private static String |
DEFAULT_DATABASE
The default database .
|
private static String |
FILE_FORMAT
The File format.
|
private String |
mDatabase
The database type.
|
private String |
mDatabaseHost
The database host .
|
private String |
mDatabaseName
The database name.
|
private String |
mDatabasePassword
The database user password.
|
private String |
mDatabaseURL
The database type.
|
private String |
mDatabaseUserName
The database user name.
|
private List<String> |
mInputFiles
The input files.
|
private String |
mInputFormat
The input format for the transformation catalog.
|
private int |
mLoggingLevel
Denotes the logging level that is to be used for logging the messages.
|
private String |
mOutputFile
The output file that is written out.
|
private String |
mOutputFormat
The output format for the transformation catalog.
|
private static String[] |
SUPPORTED_TRANSFORMATION_FORMAT
The supported transformation formats.
|
private static String[] |
TC_INITIALIZATION_FILES
List of sql initialization files
|
private static String |
TEXT_FORMAT
The textual format.
|
mLogger, mLogMsg, mProps, mVersion| Constructor and Description |
|---|
TCConverter()
The default constructor.
|
| Modifier and Type | Method and Description |
|---|---|
private void |
convertTC()
Converts transformation catalog from one format to another
|
private TransformationStore |
convertTCEntryFrom(List<String> inputFiles,
String inputFormat)
Parses the input files in the input format and returns the output as a TransformationStore instance
|
private void |
convertTCEntryTo(TransformationStore output,
String format,
String filename)
Converts Transformation store to the given output format.
|
void |
decrementLogging()
Decrements the logging level by 1.
|
void |
executeCommand()
Call the correct commands depending on options.
|
gnu.getopt.LongOpt[] |
generateValidOptions()
Generates the list of valid options for the tc-converter client
|
int |
getLoggingLevel()
Returns the logging level.
|
void |
incrementLogging()
Increments the logging level by 1.
|
protected void |
initialize(String[] opts)
Initialize the executable object
|
private boolean |
isSupportedFormat(String format)
Checks if it is a supported transformation catalog format
|
void |
loadProperties()
Loads all the properties
that would be needed
by the Toolkit classes
|
static void |
main(String[] args)
The main function
|
private List<TransformationCatalogEntry> |
parseTC(PegasusProperties pegasusProperties)
Parses the input format specified in the properties file and returns list of TransfromationCatalogEntry
|
void |
printLongVersion()
This method is used to print the long version of the command.
|
void |
printShortVersion()
Prints the short help.
|
protected void |
setupLogging()
Sets up the logging options for this class.
|
convertException, convertException, getCommandLineOptions, getEnvValue, getGVDSVersion, initialize, log, lookupConfProperty, sanityCheckOnProperties, setupLoggingclone, equals, finalize, finalize, mDatabaseURL
private StringmDatabaseUserName
private List<String>mInputFiles
private StringmInputFormat
private intmLoggingLevel
private StringmOutputFile
private StringmOutputFormat
private static String[]SUPPORTED_TRANSFORMATION_FORMAT
private static String[]TC_INITIALIZATION_FILES
private static StringTEXT_FORMAT
mLogger, mLogMsg, mProps, mVersion| Constructor and Description |
|---|
TCConverter()
The default constructor.
|
| Modifier and Type | Method and Description |
|---|---|
private void |
convertTC()
Converts transformation catalog from one format to another
|
private TransformationStore |
convertTCEntryFrom(List<String> inputFiles,
String inputFormat)
Parses the input files in the input format and returns the output as a TransformationStore instance
|
private void |
convertTCEntryTo(TransformationStore output,
String format,
String filename)
Converts Transformation store to the given output format.
|
void |
decrementLogging()
Decrements the logging level by 1.
|
void |
executeCommand()
Call the correct commands depending on options.
|
gnu.getopt.LongOpt[] |
generateValidOptions()
Generates the list of valid options for the tc-converter client
|
int |
getLoggingLevel()
Returns the logging level.
|
void |
incrementLogging()
Increments the logging level by 1.
|
protected void |
initialize(String[] opts)
Initialize the executable object
|
private boolean |
isSupportedFormat(String format)
Checks if it is a supported transformation catalog format
|
void |
loadProperties()
Loads all the properties
that would be needed
by the Toolkit classes
|
static void |
main(String[] args)
The main function
|
private List<TransformationCatalogEntry> |
parseTC(PegasusProperties pegasusProperties)
Parses the input format specified in the properties file and returns list of TransfromationCatalogEntry
|
void |
printLongVersion()
This method is used to print the long version of the command.
|
void |
printShortVersion()
Prints the short help.
|
protected void |
setupLogging()
Sets up the logging options for this class.
|
convertException, convertException, getCommandLineOptions, getEnvValue, getGVDSVersion, initialize, log, lookupConfProperty, sanityCheckOnProperties, setupLoggingclone, equals, finalize, finalize, mDatabaseURL
private StringmDatabaseUserName
private List<String>mInputFiles
private StringmInputFormat
private intmLoggingLevel
private StringmOutputFile
private StringmOutputFormat
private static String[]SUPPORTED_TRANSFORMATION_FORMAT
private static String[]TC_INITIALIZATION_FILES
private static StringTEXT_FORMAT
mLogger, mLogMsg, mProps, mVersion| Constructor and Description |
|---|
TCConverter()
The default constructor.
|
| Modifier and Type | Method and Description |
|---|---|
private void |
convertTC()
Converts transformation catalog from one format to another
|
private |