|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ibm.di.migration.BaseMigrationUtility
com.ibm.di.migam.MigrateAmConfig
public class MigrateAmConfig
The MigrateAmConfig class is a small program that will migrate any am.properties file from 6.0, 6.1, 6.1.1, or 7.0 to 7.1. See the main method for information of valid parameters that can be passed into the command. The program relies on the icu4j library for globalization. It relies on log4j for logging.
Field Summary |
---|
Fields inherited from class com.ibm.di.migration.BaseMigrationUtility |
---|
SWITCH_HELP, SWITCH_MIG_FILE, SWITCH_MIG_FILE_BAKUP, SWITCH_MIG_FILE_NEW, SWITCH_VERBOSE |
Constructor Summary | |
---|---|
MigrateAmConfig(String[] args,
org.apache.log4j.Logger log)
|
Method Summary | |
---|---|
protected List<ChangeDescription> |
defineChanges(Map<String,String> props)
Defines the changes that will be done over the properties of the source file. |
protected void |
interpretCommandLineOptions()
Called to parse the passed command line arguments. |
static void |
main(String[] args)
The main method of the Migrate Global Properties Command. |
protected void |
parseArgs(String[] args)
Parses the command line arguments by filling BaseMigrationUtility.commandLineOptions
and BaseMigrationUtility.commandValuesList structures. |
protected void |
printHelpInformation()
Called to print the help information to the stdOut. |
void |
setTdiDir(String tdiDir)
Sets TDI installation folder. |
protected void |
validateCommandLineOptions()
Called to check whether the parsed arguments are valid enough for the migration utility to continue. |
Methods inherited from class com.ibm.di.migration.BaseMigrationUtility |
---|
applyChanges, backupFile, getCommandStandaloneValuesList, getCommandValueBySwitch, getLog, isHelpRequested, isSwitch, isVerboseMode, migrateFile, parseFile, parseFile, performPropertyAddition, performPropertyCommenting, performPropertyDeletion, performPropertyModification, performPropertyUncommenting, readFile, setLog, writeFile |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MigrateAmConfig(String[] args, org.apache.log4j.Logger log)
args
- log
- Method Detail |
---|
public void setTdiDir(String tdiDir)
tdiDir
- protected void parseArgs(String[] args)
BaseMigrationUtility
BaseMigrationUtility.commandLineOptions
and BaseMigrationUtility.commandValuesList
structures.
parseArgs
in class BaseMigrationUtility
args
- the array of all the command line arguments.protected void interpretCommandLineOptions()
BaseMigrationUtility
BaseMigrationUtility.SWITCH_HELP
, BaseMigrationUtility.SWITCH_MIG_FILE_BAKUP
,
BaseMigrationUtility.SWITCH_MIG_FILE_NEW
, BaseMigrationUtility.SWITCH_MIG_FILE
and
BaseMigrationUtility.SWITCH_VERBOSE
BaseMigrationUtility.SWITCH_HELP
is checked first, if it is specified then the
rest of the common switches will not be considered.
interpretCommandLineOptions
in class BaseMigrationUtility
protected List<ChangeDescription> defineChanges(Map<String,String> props)
BaseMigrationUtility
defineChanges
in class BaseMigrationUtility
props
- the Map
of properties read from the source file.
Note this is an immutable representation of the map.
Map
defining the changes that will be done. The keys of
this map represent the names of the properties. The corresponding
values describe the particular changes that should be done done
over the specific property. Must not be null
ChangeDescription
protected void printHelpInformation()
BaseMigrationUtility
printHelpInformation
in class BaseMigrationUtility
protected void validateCommandLineOptions()
BaseMigrationUtility
IllegalArgumentException
should be thrown.
validateCommandLineOptions
in class BaseMigrationUtility
public static void main(String[] args)
args
- The arguments passed into the command. Valid arguments are:
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |