|
||||||||||
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(java.lang.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(java.lang.String name)
Gets the object representing the specified name if this TDI installation has it installed. |
java.lang.String |
getEdition()
Gets the edition |
java.lang.Object[] |
getFixes()
Gets the fixes applied to this TDI installation |
java.lang.String |
getInstallDir()
Gets the install directory location |
java.lang.Object[] |
getInstalledComponents()
Gets the components installed for this TDI installation |
java.lang.String |
getLevel()
Gets the TDI level |
java.lang.String |
getLicenseType()
Gets the license type |
boolean |
isInstalled(java.lang.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(java.lang.String l)
Sets the level variable |
void |
setLicenseType(java.lang.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(java.lang.String installDir) throws java.lang.Exception
installDir
- The TDI installation directory
java.lang.Exception
- If an error occurs while reading the .registry file in the
specified locationMethod Detail |
---|
public void setClobber(boolean c)
c
- true or false indicating if we are in a clobber casepublic boolean getClobber()
public void setLevel(java.lang.String l)
l
- The TDI levelpublic java.lang.String getLevel()
public java.lang.String getInstallDir()
public java.lang.String getEdition()
FixUtils
public java.lang.String getLicenseType()
FixUtils
public void setLicenseType(java.lang.String ltype)
FixUtils
public java.lang.Object[] getFixes()
public java.lang.Object[] getInstalledComponents()
public InstalledComponent getComponent(java.lang.String name)
name
- The name of the component to look for
public boolean isInstalled(java.lang.String component)
component
- The name of the component to search for
FixUtils
public 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()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |