public abstract class InstalledIdentity extends Object
Constructor and Description |
---|
InstalledIdentity() |
Modifier and Type | Method and Description |
---|---|
protected static InstalledIdentity |
copy(InstalledIdentity original) |
abstract AddOn |
getAddOn(String addOnName)
Get an add-on by name.
|
abstract Collection<String> |
getAddOnNames()
Get a list of available add-on names.
|
abstract Collection<AddOn> |
getAddOns()
Get a list of installed add-ons.
|
abstract List<String> |
getAllInstalledPatches()
Get a list of all installed patches.
|
abstract Identity |
getIdentity()
Get information about the installed identity.
|
abstract InstalledImage |
getInstalledImage()
Get the installed image.
|
abstract Layer |
getLayer(String layerName)
Get a layer by name.
|
abstract List<String> |
getLayerNames()
Get a list of available layer names.
|
abstract List<Layer> |
getLayers()
Get a list of installed layers.
|
static InstalledIdentity |
load(File jbossHome,
ProductConfig productConfig,
File... repoRoots)
Load the layers based on the default setup.
|
protected static org.jboss.as.patching.installation.InstallationModificationImpl.InstallationState |
load(InstalledIdentity installedIdentity)
Load the installation state based on the identity
|
static InstalledIdentity |
load(InstalledImage installedImage,
ProductConfig productConfig,
List<File> moduleRoots,
List<File> bundleRoots)
Load the InstalledIdentity configuration based on the module.path
|
InstallationManager.InstallationModification |
modifyInstallation(InstallationManager.ModificationCompletionCallback callback) |
protected abstract void |
updateState(String name,
org.jboss.as.patching.installation.InstallationModificationImpl modification,
org.jboss.as.patching.installation.InstallationModificationImpl.InstallationState state) |
public abstract List<String> getAllInstalledPatches()
public abstract Identity getIdentity()
public abstract List<String> getLayerNames()
public abstract Layer getLayer(String layerName)
layerName
- the layer namenull
if there is no matching layerpublic abstract List<Layer> getLayers()
public abstract Collection<String> getAddOnNames()
public abstract AddOn getAddOn(String addOnName)
addOnName
- the add-on namenull
if is no matching add-onpublic abstract Collection<AddOn> getAddOns()
protected abstract void updateState(String name, org.jboss.as.patching.installation.InstallationModificationImpl modification, org.jboss.as.patching.installation.InstallationModificationImpl.InstallationState state)
public abstract InstalledImage getInstalledImage()
public InstallationManager.InstallationModification modifyInstallation(InstallationManager.ModificationCompletionCallback callback)
protected static org.jboss.as.patching.installation.InstallationModificationImpl.InstallationState load(InstalledIdentity installedIdentity) throws IOException
installedIdentity
- the installed identityIOException
public static InstalledIdentity load(File jbossHome, ProductConfig productConfig, File... repoRoots) throws IOException
jbossHome
- the jboss home directoryproductConfig
- the product configrepoRoots
- the repository rootsIOException
public static InstalledIdentity load(InstalledImage installedImage, ProductConfig productConfig, List<File> moduleRoots, List<File> bundleRoots) throws IOException
installedImage
- the installed imageproductConfig
- the product configmoduleRoots
- the module rootsbundleRoots
- the bundle rootsIOException
protected static InstalledIdentity copy(InstalledIdentity original) throws IOException
IOException
Copyright © 2023 JBoss by Red Hat. All rights reserved.