Class MigrateFromInstFinderStore
- java.lang.Object
-
- com.sun.identity.install.tools.configurator.OrderedPropertyStore
-
- com.sun.identity.install.tools.configurator.MigrateFromInstFinderStore
-
- All Implemented Interfaces:
ICommonToolsConstants,InstallConstants
public class MigrateFromInstFinderStore extends OrderedPropertyStore
This class reads the instance finder file, belonging to previous product.
-
-
Field Summary
-
Fields inherited from class com.sun.identity.install.tools.configurator.OrderedPropertyStore
STR_KEY_COMMENT_MARKER, STR_KEY_VALUE_SEP, STR_KEY_VALUE_SEP_AND_SPACE
-
Fields inherited from interface com.sun.identity.install.tools.admin.ICommonToolsConstants
FILE_SEP, INSTANCE_AUDIT_DIR_NAME, INSTANCE_CONFIG_DIR_NAME, INSTANCE_DEBUG_DIR_NAME, INSTANCE_LIB_DIR_NAME, INSTANCE_LOCALE_DIR_NAME, INSTANCE_LOGS_DIR_NAME, LINE_SEP
-
Fields inherited from interface com.sun.identity.install.tools.configurator.InstallConstants
INT_OPERATION_TYPE_REGULAR, INT_OPERATION_TYPE_SAVE_RESPONSE, INT_OPERATION_TYPE_USE_RESPONSE, LOC_DR_ERR_APP_SERVER_HOME_LOCATOR, LOC_DR_ERR_CORRUPT_PRODUCT_INSTALL, LOC_DR_ERR_INVALID_INSTALL_HOME, LOC_DR_ERR_PRODUCT_ALREADY_MIGRATED, LOC_DR_ERR_PRODUCT_LOCATOR_BACKUP, LOC_DR_ERR_PRODUCT_LOCATOR_READ, LOC_DR_ERR_PRODUCT_LOCATOR_WRITE, LOC_DR_MSG_PRODUCT_SUMM_INFO_BEGIN, LOC_DR_MSG_PRODUCT_SUMM_INFO_BEGIN_LINE, LOC_DR_MSG_PRODUCT_SUMM_INFO_END, LOC_IS_ERR_LOAD_INSTALL_STATE, LOC_IS_ERR_SAVE_INSTALL_STATE, STR_AUDIT_DIR_PREFIX_TAG, STR_BEGIN_END_LINE_MARKER, STR_CONFIG_AGENT_CONFIG_FILE_PATH_TAG, STR_CONFIG_AGENT_MIGRATE_FILE_PATH_TAG, STR_CONFIG_DIR_PREFIX_MIGRATE_TAG, STR_CONFIG_DIR_PREFIX_TAG, STR_CONFIG_FILE_PATH_TAG, STR_CREATE_AGENT_PROFILE_KEY, STR_CREATE_AGENT_PROFILE_NAME, STR_CUSTOM, STR_DEBUG_DIR_PREFIX_TAG, STR_INSTALL, STR_INSTANCE_NAME_MIGRATE_TAG, STR_IS_GLOBAL_DATA_ID, STR_LOG_CONFIG_FILE_PATH, STR_LOG_CONFIG_FILENAME, STR_MIGRATE, STR_SAVE_AGENT_INSTANCE_NAME_KEY, STR_SAVE_REMOTE_AGENT_INSTALL_DIR_KEY, STR_UNINSTALL, STR_VERSION_FILE_NAME
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description MapgetAllProductDetails(ArrayList mapKeys)get all instances' instance finder data.StringgetFile()StringgetFileHeader()static MigrateFromInstFinderStoregetInstance()get the singleton of MigrateFromInstFinderStore.StringgetInstanceName(Map map, ArrayList keysToUse)return the instance name to be migrated from.LocalizedMessagegetInvalidKeyErrorMessage(int lineNumber)LocalizedMessagegetInvalidLineErrorMessage(int lineNumber)LocalizedMessagegetLoadErrorMessage()static StringgetProductHome()get product home of previous product.static StringgetRelativeTranslateFile()LocalizedMessagegetSaveErrorMessage()static StringgetTranslateFile()static voidsetProductHome(String oldProductHome)set product home of previous product.StringtoString()-
Methods inherited from class com.sun.identity.install.tools.configurator.OrderedPropertyStore
getProperty, getPropertyKey, getPropertyKeys, getPropertyValue, getPropertyValues, isEmpty, load, removeProperty, removeProperty, save, setProperty, size
-
-
-
-
Method Detail
-
getInstance
public static MigrateFromInstFinderStore getInstance() throws InstallException
get the singleton of MigrateFromInstFinderStore.- Returns:
- MigrateFromInstFinderStore
- Throws:
InstallException- thrown if reading instance finder file fails.
-
getInstanceName
public String getInstanceName(Map map, ArrayList keysToUse) throws InstallException
return the instance name to be migrated from.- Parameters:
map-keysToUse-- Returns:
- Throws:
InstallException
-
getAllProductDetails
public Map getAllProductDetails(ArrayList mapKeys) throws InstallException
get all instances' instance finder data.- Parameters:
mapKeys-- Returns:
- Map of all product's install details.
- Throws:
InstallException
-
toString
public String toString()
- Overrides:
toStringin classOrderedPropertyStore
-
getProductHome
public static String getProductHome()
get product home of previous product.- Returns:
-
setProductHome
public static void setProductHome(String oldProductHome)
set product home of previous product.
-
getFile
public String getFile()
- Specified by:
getFilein classOrderedPropertyStore
-
getTranslateFile
public static String getTranslateFile()
-
getRelativeTranslateFile
public static String getRelativeTranslateFile()
-
getFileHeader
public String getFileHeader()
- Specified by:
getFileHeaderin classOrderedPropertyStore
-
getLoadErrorMessage
public LocalizedMessage getLoadErrorMessage()
- Specified by:
getLoadErrorMessagein classOrderedPropertyStore
-
getSaveErrorMessage
public LocalizedMessage getSaveErrorMessage()
- Specified by:
getSaveErrorMessagein classOrderedPropertyStore
-
getInvalidLineErrorMessage
public LocalizedMessage getInvalidLineErrorMessage(int lineNumber)
- Specified by:
getInvalidLineErrorMessagein classOrderedPropertyStore
-
getInvalidKeyErrorMessage
public LocalizedMessage getInvalidKeyErrorMessage(int lineNumber)
- Specified by:
getInvalidKeyErrorMessagein classOrderedPropertyStore
-
-