public class InstallationManagerImpl extends InstallationManager
InstallationManager.InstallationModification, InstallationManager.ModificationCompletionCallback, InstallationManager.MutablePatchingTarget
Constructor and Description |
---|
InstallationManagerImpl(InstalledImage installedImage,
List<File> moduleRoots,
List<File> bundlesRoots,
ProductConfig productConfig) |
Modifier and Type | Method and Description |
---|---|
void |
clearRestartRequired()
Clear the the restart required state.
|
InstalledIdentity |
getDefaultIdentity() |
List<InstalledIdentity> |
getInstalledIdentities()
This method will return a list of installed identities for which
the corresponding .conf file exists under .installation directory.
|
InstalledIdentity |
getInstalledIdentity(String productName,
String productVersion)
This method returns the installed identity with the requested name and version.
|
InstalledImage |
getInstalledImage() |
boolean |
requiresRestart()
Check whether the instance requires a restart.
|
boolean |
restartRequired()
Require a restart.
|
load
public InstallationManagerImpl(InstalledImage installedImage, List<File> moduleRoots, List<File> bundlesRoots, ProductConfig productConfig) throws IOException
IOException
public InstalledIdentity getInstalledIdentity(String productName, String productVersion) throws PatchingException
getInstalledIdentity
in class InstallationManager
productName
- productVersion
- PatchingException
public InstalledIdentity getDefaultIdentity()
getDefaultIdentity
in class InstallationManager
public List<InstalledIdentity> getInstalledIdentities() throws PatchingException
getInstalledIdentities
in class InstallationManager
PatchingException
public InstalledImage getInstalledImage()
getInstalledImage
in class InstallationManager
public boolean requiresRestart()
InstallationManager
requiresRestart
in class InstallationManager
true
if a restart is required, false
otherwisepublic boolean restartRequired()
InstallationManager
InstallationManager.clearRestartRequired()
.restartRequired
in class InstallationManager
true
public void clearRestartRequired()
InstallationManager
clearRestartRequired
in class InstallationManager
Copyright © 2023 JBoss by Red Hat. All rights reserved.