org.wildfly.extras.creaper.commands.patching
Class PatchingOperations
java.lang.Object
org.wildfly.extras.creaper.commands.patching.PatchingOperations
public final class PatchingOperations
- extends Object
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PatchingOperations
public PatchingOperations(OnlineManagementClient client)
getHistory
public List<PatchingOperations.PatchHistoryEntry> getHistory()
throws IOException
- Returns:
- list of history entries of all patches that have been applied; never
null
- Throws:
IOException
getHistoryEntry
public PatchingOperations.PatchHistoryEntry getHistoryEntry(String patchId)
throws IOException
- Parameters:
patchId - ID of the patch to look for
- Returns:
- history entry of the patch specified by the ID (null if not found)
- Throws:
IOException
getPatchInfo
public PatchingOperations.PatchInfo getPatchInfo()
throws IOException
- Returns:
- information about current patch state as a
PatchInfo object; never null
- Throws:
IOException
getCumulativePatchId
public String getCumulativePatchId()
throws IOException
- Returns:
- cumulative patch ID or
null if no patch is installed
- Throws:
IOException - when IO error occurs
getCurrentServerVersion
public String getCurrentServerVersion()
throws IOException
- Returns:
- active server version (may differ to "version" command output until restart)
or
null when the "version" is undefined
- Throws:
IOException - when IO error occurs
getPatchesIds
public List<String> getPatchesIds()
throws IOException
- Returns:
- list of applied patches IDs, or an empty immutable list if no patch is installed
- Throws:
IOException - when IO error occurs
isAnyPatchInstalled
public boolean isAnyPatchInstalled()
throws IOException
- Returns:
- whether there is any patch applied
- Throws:
IOException - when IO error occurs
isPatchInstalled
public boolean isPatchInstalled(String patchId)
throws IOException
- Parameters:
patchId - patch id to check
- Returns:
- whether certain patch is installed
- Throws:
IOException - when IO error occurs
Copyright © 2020. All rights reserved.