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.
|
loadload, loadpublic InstallationManagerImpl(InstalledIdentity installedIdentity)
public List<String> getAllInstalledPatches()
InstalledIdentitygetAllInstalledPatches in class InstalledIdentitypublic Identity getIdentity()
InstalledIdentitygetIdentity in class InstalledIdentitypublic List<String> getLayerNames()
InstalledIdentitygetLayerNames in class InstalledIdentitypublic Layer getLayer(String layerName)
InstalledIdentitygetLayer in class InstalledIdentitylayerName - the layer namenull if there is no matching layerpublic List<Layer> getLayers()
InstalledIdentitygetLayers in class InstalledIdentitypublic Collection<String> getAddOnNames()
InstalledIdentitygetAddOnNames in class InstalledIdentitypublic AddOn getAddOn(String addOnName)
InstalledIdentitygetAddOn in class InstalledIdentityaddOnName - the add-on namenull if is no matching add-onpublic Collection<AddOn> getAddOns()
InstalledIdentitygetAddOns in class InstalledIdentitypublic InstalledImage getInstalledImage()
InstalledIdentitygetInstalledImage in class InstalledIdentitypublic InstallationManager.InstallationModification modifyInstallation(InstallationManager.ModificationCompletionCallback callback)
InstallationManagermodifyInstallation in class InstallationManagercallback - a completed callbackprotected static org.jboss.as.patching.installation.InstallationModificationImpl.InstallationState load(InstalledIdentity installedIdentity) throws IOException
installedIdentity - the installed identityIOExceptionprotected 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()
InstallationManagerrequiresRestart in class InstallationManagertrue if a restart is required, false otherwisepublic boolean restartRequired()
InstallationManagerInstallationManager.clearRestartRequired().restartRequired in class InstallationManagertruepublic void clearRestartRequired()
InstallationManagerclearRestartRequired in class InstallationManagerCopyright © 2014 JBoss by Red Hat. All rights reserved.