public class InstallationManagerImpl extends InstallationManager
InstallationManager.InstallationModification, InstallationManager.ModificationCompletionCallback, InstallationManager.MutablePatchingTarget
Constructor and Description |
---|
InstallationManagerImpl(InstalledIdentity installedIdentity) |
Modifier and Type | Method and Description |
---|---|
void |
clearRestartRequired()
Clear the the restart required state.
|
AddOn |
getAddOn(String addOnName)
Get an add-on by name.
|
Collection<String> |
getAddOnNames()
Get a list of available add-on names.
|
Collection<AddOn> |
getAddOns()
Get a list of installed add-ons.
|
List<String> |
getAllInstalledPatches()
Get a list of all installed patches.
|
Identity |
getIdentity()
Get information about the installed identity.
|
InstalledImage |
getInstalledImage()
Get the installed image.
|
Layer |
getLayer(String layerName)
Get a layer by name.
|
List<String> |
getLayerNames()
Get a list of available layer names.
|
List<Layer> |
getLayers()
Get a list of installed layers.
|
protected static org.jboss.as.patching.installation.InstallationModificationImpl.InstallationState |
load(InstalledIdentity installedIdentity)
Load the installation state based on the identity
|
InstallationManager.InstallationModification |
modifyInstallation(InstallationManager.ModificationCompletionCallback callback)
Modify the installation.
|
boolean |
requiresRestart()
Check whether the instance requires a restart.
|
boolean |
restartRequired()
Require a restart.
|
protected InstalledIdentity |
updateState(String name,
org.jboss.as.patching.installation.InstallationModificationImpl modification,
org.jboss.as.patching.installation.InstallationModificationImpl.InstallationState state)
Update the installed identity using the modified state from the modification.
|
load
load, load
public InstallationManagerImpl(InstalledIdentity installedIdentity)
public List<String> getAllInstalledPatches()
InstalledIdentity
getAllInstalledPatches
in class InstalledIdentity
public Identity getIdentity()
InstalledIdentity
getIdentity
in class InstalledIdentity
public List<String> getLayerNames()
InstalledIdentity
getLayerNames
in class InstalledIdentity
public Layer getLayer(String layerName)
InstalledIdentity
getLayer
in class InstalledIdentity
layerName
- the layer namenull
if there is no matching layerpublic List<Layer> getLayers()
InstalledIdentity
getLayers
in class InstalledIdentity
public Collection<String> getAddOnNames()
InstalledIdentity
getAddOnNames
in class InstalledIdentity
public AddOn getAddOn(String addOnName)
InstalledIdentity
getAddOn
in class InstalledIdentity
addOnName
- the add-on namenull
if is no matching add-onpublic Collection<AddOn> getAddOns()
InstalledIdentity
getAddOns
in class InstalledIdentity
public InstalledImage getInstalledImage()
InstalledIdentity
getInstalledImage
in class InstalledIdentity
public InstallationManager.InstallationModification modifyInstallation(InstallationManager.ModificationCompletionCallback callback)
InstallationManager
modifyInstallation
in class InstallationManager
callback
- a completed callbackprotected static org.jboss.as.patching.installation.InstallationModificationImpl.InstallationState load(InstalledIdentity installedIdentity) throws IOException
installedIdentity
- the installed identityIOException
protected InstalledIdentity updateState(String name, org.jboss.as.patching.installation.InstallationModificationImpl modification, org.jboss.as.patching.installation.InstallationModificationImpl.InstallationState state)
name
- the identity namemodification
- the modificationstate
- the installation statepublic 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 © 2015 JBoss by Red Hat. All rights reserved.