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.
|
String |
detectMuleVersion(Path muleHome)
Detects Mule Runtime Distribution version.
|
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.Copyright © 2021 MuleSoft, Inc.. All rights reserved.