|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.ibm.di.UpdateInstaller.Registry
public class Registry
Represents the current TDI installation including installed components and fixes that have been applied.
| Constructor Summary | |
|---|---|
Registry(String installDir)
Class constructor that takes an installation directory |
|
| Method Summary | |
|---|---|
void |
dump()
Outputs information about this TDI installation to standard out. |
boolean |
getClobber()
Gets the clobber variable |
InstalledComponent |
getComponent(String name)
Gets the object representing the specified name if this TDI installation has it installed. |
String |
getEdition()
Gets the edition |
Object[] |
getFixes()
Gets the fixes applied to this TDI installation |
static String |
getFixName(String fix)
|
String |
getInstallDir()
Gets the install directory location |
Object[] |
getInstalledComponents()
Gets the components installed for this TDI installation |
String |
getLevel()
Gets the TDI level |
String |
getLicenseType()
Gets the license type |
boolean |
isInstalled(String component)
Tells if a certain component is installed |
void |
restore()
Updates the .registry file during a rollback operation |
void |
setClobber(boolean c)
Sets the clobber variable |
void |
setLevel(String l)
Sets the level variable |
void |
setLicenseType(String ltype)
Sets the license type |
int |
update(Fix fix,
boolean clean)
Updates the .registry file after a rollback or update. |
int |
updateCommon()
performs actual writing of the .registry during an update. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Registry(String installDir)
throws Exception
installDir - The TDI installation directory
Exception - If an error occurs while reading the .registry file in the
specified location| Method Detail |
|---|
public void setClobber(boolean c)
c - true or false indicating if we are in a clobber casepublic boolean getClobber()
public void setLevel(String l)
l - The TDI levelpublic String getLevel()
public String getInstallDir()
public String getEdition()
FixUtilspublic String getLicenseType()
FixUtilspublic void setLicenseType(String ltype)
FixUtilspublic Object[] getFixes()
public Object[] getInstalledComponents()
public InstalledComponent getComponent(String name)
name - The name of the component to look for
public boolean isInstalled(String component)
component - The name of the component to search for
FixUtilspublic void restore()
public int update(Fix fix,
boolean clean)
fix - The fix we are adding or null if we are rolling backclean - If true, clear the registry
public int updateCommon()
public void dump()
public static String getFixName(String fix)
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||