Package org.apache.karaf.kar
Interface KarsMBean
-
- All Known Implementing Classes:
KarsMBeanImpl
public interface KarsMBean
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidcreate(String repoName, List<String> features)Create a kar file for a list of feature reposList<String>getKars()List the installed KAR files.voidinstall(String url)Install a KAR file from the given URL.voidinstall(String url, boolean noAutoStartBundles)Install a KAR file from a given URL and decide to start or not the bundles.voidinstall(String url, boolean noAutoStartBundles, boolean noAutoRefreshBundles)Install a KAR file from a given URL.voiduninstall(String name)Uninstall a KAR file.voiduninstall(String name, boolean noAutoRefreshBundles)Uninstall a KAR file.
-
-
-
Method Detail
-
getKars
List<String> getKars() throws MBeanException
List the installed KAR files.- Returns:
- the list of KAR files.
- Throws:
MBeanException- in case of listing failure.
-
create
void create(String repoName, List<String> features)
Create a kar file for a list of feature repos- Parameters:
repoName- the name of features repositoryfeatures- the features to include in the kar
-
install
void install(String url) throws MBeanException
Install a KAR file from the given URL.- Parameters:
url- the KAR URL.- Throws:
MBeanException- in case of installation failure.
-
install
void install(String url, boolean noAutoStartBundles) throws MBeanException
Install a KAR file from a given URL and decide to start or not the bundles.- Parameters:
url- the KAR URL.noAutoStartBundles- true to not automatically start the bundles, false else.- Throws:
MBeanException- in case of installation failure.
-
install
void install(String url, boolean noAutoStartBundles, boolean noAutoRefreshBundles) throws MBeanException
Install a KAR file from a given URL.- Parameters:
url- the KAR URL.noAutoStartBundles- true to not automatically start the bundles, false else.noAutoRefreshBundles- true to not automatically refresh the bundles, false else.- Throws:
MBeanException- in case of installation failure.
-
uninstall
void uninstall(String name) throws MBeanException
Uninstall a KAR file.- Parameters:
name- the name of the KAR file.- Throws:
MBeanException- in case of uninstall failure.
-
uninstall
void uninstall(String name, boolean noAutoRefreshBundles) throws MBeanException
Uninstall a KAR file.- Parameters:
name- the name of the KAR file.noAutoRefreshBundles- true to not automatically refresh bundles, false else.- Throws:
MBeanException- in case of uninstall failure.
-
-