Package com.ibm.di.UpdateInstaller
Class Fix
- java.lang.Object
-
- com.ibm.di.UpdateInstaller.Fix
-
public class Fix extends java.lang.Object
Represents a single fix. Populated by parsing the .manifest file inside the associated fix file.
-
-
Constructor Summary
Constructors Constructor Description Fix(java.lang.String fixFile)
Class constructor that creates a Fix from the specified file.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
dump()
Outputs information about this fix to standard out.java.lang.Object[]
getComponents()
Gets a list of the components this fix will update.java.lang.String
getConfigID()
Gets the LWI config ID needed to roll back this fix if present.java.util.List<java.lang.String>
getDeleteFiles()
java.lang.String
getFixFileName()
Gets the fix filename.java.lang.String
getfixName()
gets the fixname.java.lang.String
getLevel()
Gets the level to which this fix will bring the current TDI installation.java.lang.String
getMaxLevel()
Gets the maximum required TDI level to apply this fix.java.lang.String
getMinLevel()
Gets the minimum required TDI level to apply this fix.java.lang.Object[]
getPreReqs()
Gets pre-requisite fixes.boolean
isUpdating(java.lang.String component)
Indicates if the specified component will be updated by this fix.void
remove(java.lang.String name)
Removes a component from the list that this fix will update.void
removeClobberedComponents(java.lang.Object[] installedComponents)
If this method is called, it will remove from the list of affected components any InstalledComponent with the same name from the specified list.void
setConfidIDFromJarName(java.lang.String jarName)
Sets the LWI config ID based on the specified JAR name.
-
-
-
Method Detail
-
getFixFileName
public java.lang.String getFixFileName()
Gets the fix filename.- Returns:
- The filename this object was created from.
-
getPreReqs
public java.lang.Object[] getPreReqs()
Gets pre-requisite fixes.- Returns:
- An array containing the names of pre-requisite fixes
-
getfixName
public java.lang.String getfixName()
gets the fixname.- Returns:
- The name of this fix
-
getComponents
public java.lang.Object[] getComponents()
Gets a list of the components this fix will update.- Returns:
- An array representing the components affected by this fix
-
getConfigID
public java.lang.String getConfigID()
Gets the LWI config ID needed to roll back this fix if present.- Returns:
- the LWI config ID
-
setConfidIDFromJarName
public void setConfidIDFromJarName(java.lang.String jarName)
Sets the LWI config ID based on the specified JAR name.- Parameters:
jarName
- An LWI fix JAR name
-
getMinLevel
public java.lang.String getMinLevel()
Gets the minimum required TDI level to apply this fix.- Returns:
- Minimum required TDI level to apply this fix.
-
getMaxLevel
public java.lang.String getMaxLevel()
Gets the maximum required TDI level to apply this fix.- Returns:
- Maximum required TDI level to apply this fix.
-
getLevel
public java.lang.String getLevel()
Gets the level to which this fix will bring the current TDI installation.- Returns:
- The level TDI will be at after applying this fix, if applicable.
-
remove
public void remove(java.lang.String name)
Removes a component from the list that this fix will update.- Parameters:
name
- The TDI component name to be removed
-
removeClobberedComponents
public void removeClobberedComponents(java.lang.Object[] installedComponents)
If this method is called, it will remove from the list of affected components any InstalledComponent with the same name from the specified list.- Parameters:
installedComponents
- An InstalledComponent array of components- See Also:
InstalledComponent
-
isUpdating
public boolean isUpdating(java.lang.String component)
Indicates if the specified component will be updated by this fix.- Parameters:
component
- The component in question- Returns:
- true or false indicating if the component is in this fix's update list
-
dump
public void dump()
Outputs information about this fix to standard out.
-
getDeleteFiles
public java.util.List<java.lang.String> getDeleteFiles()
-
-