org.mule.module.reboot
Class MuleContainerBootstrapUtils
java.lang.Object
org.mule.module.reboot.MuleContainerBootstrapUtils
public final class MuleContainerBootstrapUtils
- extends Object
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MULE_DOMAIN_FOLDER
public static final String MULE_DOMAIN_FOLDER
- See Also:
- Constant Field Values
MULE_LOCAL_JAR_FILENAME
public static final String MULE_LOCAL_JAR_FILENAME
- See Also:
- Constant Field Values
isStandalone
public static boolean isStandalone()
- Whether Mule is running embedded or standalone.
- Returns:
- true if running standalone
getMuleHome
public static File getMuleHome()
- Returns:
- null if running embedded
getMuleAppsDir
public static File getMuleAppsDir()
- Returns:
- null if running embedded, otherwise the apps dir as a File ref
getMuleAppDir
public static File getMuleAppDir(String appName)
- Parameters:
appName - name of the application
- Returns:
- null if running embedded, otherwise the app dir as a File ref
getMuleAppDefaultConfigFile
public static File getMuleAppDefaultConfigFile(String appName)
- Parameters:
appName - name of the application
- Returns:
- null if running embedded, otherwise the app default configuration file as a File ref
getMuleLibDir
public static File getMuleLibDir()
- Returns:
- null if running embedded
getMuleTmpDir
public static File getMuleTmpDir()
- Returns:
- null if running embedded, otherwise the $MULE_HOME/tmp dir reference
getMuleLocalJarFile
public static File getMuleLocalJarFile()
getMuleDomainsDir
public static File getMuleDomainsDir()
getMuleConfDir
public static File getMuleConfDir()
- Returns:
- null if running embedded, otherwise the conf dir as a File ref
getResource
public static URL getResource(String resourceName,
Class<?> callingClass)
- See Also:
ClassUtils
renameFile
public static boolean renameFile(File srcFile,
File destFile)
throws IOException
- Throws:
IOException- See Also:
FileUtils
renameFileHard
public static boolean renameFileHard(File srcFile,
File destFile)
throws IOException
- Throws:
IOException- See Also:
FileUtils
copy
public static int copy(InputStream input,
OutputStream output)
throws IOException
- Throws:
IOException- See Also:
IOUtils
copyLarge
public static long copyLarge(InputStream input,
OutputStream output)
throws IOException
- Throws:
IOException- See Also:
IOUtils
Copyright © 2003–2014 MuleSoft, Inc.. All rights reserved.