public interface MuleDistroService
MuleDistribution operations.| Modifier and Type | Method and Description |
|---|---|
boolean |
checkClusterModeIsActive(Path currentMuleDistroPropertiesFilePath)
Checks if current mule distro is working on cluster mode.
|
boolean |
checkFilesDescriptorsExistencesInsideBothDistributions(Path oldMulePath,
Path newMulePath)
Checks File Descriptor existence inside all mule distributions involve in the upgrade process and inside the tool.
|
boolean |
checkMisleadingMuleDirName(Path mulePath)
Check if the name of the Mule directory is misleading regarding its content
|
String |
detectMuleVersion(Path muleHome)
Detects Mule Runtime Distribution version.
|
Path |
getConfigFolder()
Gets a relative path to the conf dir where the Mule Runtime distro configs files are placed.
|
Path |
getLibMuleJarDirectoryPath()
Gets a relative path to the lib/mule dir where the mule jars are placed.
|
MuleDistribution |
initMuleDistro(Path muleHome)
Initializes a
MuleDistribution object after validating that the given file path corresponds to a Mule Runtime
distribution. |
void |
looksLikeADistro(Path muleDistroLocation)
Introspects the given directory to determine if it looks like a Mule Runtime distribution.
|
MuleDistribution initMuleDistro(Path muleHome) throws IOException
MuleDistribution object after validating that the given file path corresponds to a Mule Runtime
distribution.muleHome - a path pointing to a Mule Runtime distribution.MuleDistribution instance.NotDirectoryException - if given muleHome path is not a directory.FileNotFoundException - if mule-core jar used for determining the Mule distro version is not found.IOExceptionvoid looksLikeADistro(Path muleDistroLocation) throws IOException
muleDistroLocation - a path pointing to a potential Mule Runtime distribution.IOException - if given muleHome path does not look like a distro.String detectMuleVersion(Path muleHome) throws FileNotFoundException
muleHome - Mule Runtime Distribution path.FileNotFoundException - if muleHome path is not found.boolean checkClusterModeIsActive(Path currentMuleDistroPropertiesFilePath) throws IOException
currentMuleDistroPropertiesFilePath - Current mule distro path.IOException - I/O Exception.boolean checkFilesDescriptorsExistencesInsideBothDistributions(Path oldMulePath, Path newMulePath) throws IOException
oldMulePath - Current Mule Runtime Distribution path.newMulePath - New Mule Runtime Distribution path.FileNotFoundExceptionIOExceptionPath getLibMuleJarDirectoryPath()
Path to the lib/mule folderPath getConfigFolder()
ConfigFilesService.checkConflicts(Path, Path, boolean) are
placed inside this folder.Path to the conf folderboolean checkMisleadingMuleDirName(Path mulePath)
mulePath - A mule distro path.Copyright © 2022 MuleSoft, Inc.. All rights reserved.