public interface DescriptorService
| Modifier and Type | Method and Description |
|---|---|
boolean |
checkFileDescriptorExistenceInsideMuleDistroOrInsideUpgradeTool(Path mulePath)
Checks File Descriptor existence inside a specific mule distro and inside the tool.
|
boolean |
checkIntegrity(List<AssemblyEntry> entries,
Path dirWithFiles)
This method checks the integrity of the files inside a directory and a list of assembly entries
|
void |
compareMuleDistros(Path oldMulePath)
This method creates file descriptor of the current client mule and then compares with the original file descriptor of the
same version.
|
List<AssemblyEntry> |
getAssemblyEntryListByFileDescriptor(String currentVersion,
Path mulePath)
Looking for File Descriptor inside the tool, and if doesn't exist there, try to find it inside the Mule Runtime Distribution.
|
List<AssemblyEntry> |
getEntriesInPath(Path directory)
This method recursively gets the assembly entries from the files inside a directory
|
List<String> |
getFilesNamesList(Path muleDistroPath)
Makes a list with the names of all files which appears in the File Descriptor of an specific Mule Runtime Distribution.
|
void compareMuleDistros(Path oldMulePath) throws IOException
oldMulePath - Path of the current mule distro.IOException - I/O Exception.List<AssemblyEntry> getEntriesInPath(Path directory) throws IOException
directory - Path of the directory to get the assembly entries list.IOException - I/O Exception.boolean checkIntegrity(List<AssemblyEntry> entries, Path dirWithFiles) throws IOException
entries - List of assembly entriesdirWithFiles - Path of the directory to be checked against the assembly entries listIOException - I/O Exception.List<AssemblyEntry> getAssemblyEntryListByFileDescriptor(String currentVersion, Path mulePath) throws IOException
currentVersion - Mule Runtime Distribution version.mulePath - Mule Runtime Distribution Path.IOExceptionboolean checkFileDescriptorExistenceInsideMuleDistroOrInsideUpgradeTool(Path mulePath) throws IOException
mulePath - Mule Runtime Distribution path.FileNotFoundExceptionIOExceptionList<String> getFilesNamesList(Path muleDistroPath) throws IOException
muleDistroPath - Mule Runtime Distribution Path.IOExceptionCopyright © 2022 MuleSoft, Inc.. All rights reserved.