Package org.apache.karaf.kar.internal
Class KarsMBeanImpl
- java.lang.Object
-
- javax.management.StandardMBean
-
- org.apache.karaf.kar.internal.KarsMBeanImpl
-
- All Implemented Interfaces:
DynamicMBean,MBeanRegistration,KarsMBean
public class KarsMBeanImpl extends StandardMBean implements KarsMBean
-
-
Constructor Summary
Constructors Constructor Description KarsMBeanImpl()
-
Method Summary
All Methods Instance Methods Concrete 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.KarServicegetKarService()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.voidsetKarService(KarService karService)voiduninstall(String name)Uninstall a KAR file.voiduninstall(String name, boolean noAutoRefreshBundles)Uninstall a KAR file.-
Methods inherited from class javax.management.StandardMBean
cacheMBeanInfo, getAttribute, getAttributes, getCachedMBeanInfo, getClassName, getConstructors, getDescription, getDescription, getDescription, getDescription, getDescription, getDescription, getDescription, getImpact, getImplementation, getImplementationClass, getMBeanInfo, getMBeanInterface, getParameterName, getParameterName, invoke, postDeregister, postRegister, preDeregister, preRegister, setAttribute, setAttributes, setImplementation
-
-
-
-
Constructor Detail
-
KarsMBeanImpl
public KarsMBeanImpl() throws NotCompliantMBeanException- Throws:
NotCompliantMBeanException
-
-
Method Detail
-
getKars
public List<String> getKars() throws MBeanException
Description copied from interface:KarsMBeanList the installed KAR files.- Specified by:
getKarsin interfaceKarsMBean- Returns:
- the list of KAR files.
- Throws:
MBeanException- in case of listing failure.
-
create
public void create(String repoName, List<String> features)
Description copied from interface:KarsMBeanCreate a kar file for a list of feature repos
-
install
public void install(String url) throws MBeanException
Description copied from interface:KarsMBeanInstall a KAR file from the given URL.- Specified by:
installin interfaceKarsMBean- Parameters:
url- the KAR URL.- Throws:
MBeanException- in case of installation failure.
-
install
public void install(String url, boolean noAutoStartBundles) throws MBeanException
Description copied from interface:KarsMBeanInstall a KAR file from a given URL and decide to start or not the bundles.- Specified by:
installin interfaceKarsMBean- Parameters:
url- the KAR URL.noAutoStartBundles- true to not automatically start the bundles, false else.- Throws:
MBeanException- in case of installation failure.
-
install
public void install(String url, boolean noAutoStartBundles, boolean noAutoRefreshBundles) throws MBeanException
Description copied from interface:KarsMBeanInstall a KAR file from a given URL.- Specified by:
installin interfaceKarsMBean- 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
public void uninstall(String name) throws MBeanException
Description copied from interface:KarsMBeanUninstall a KAR file.- Specified by:
uninstallin interfaceKarsMBean- Parameters:
name- the name of the KAR file.- Throws:
MBeanException- in case of uninstall failure.
-
uninstall
public void uninstall(String name, boolean noAutoRefreshBundles) throws MBeanException
Description copied from interface:KarsMBeanUninstall a KAR file.- Specified by:
uninstallin interfaceKarsMBean- Parameters:
name- the name of the KAR file.noAutoRefreshBundles- true to not automatically refresh bundles, false else.- Throws:
MBeanException- in case of uninstall failure.
-
getKarService
public KarService getKarService()
-
setKarService
public void setKarService(KarService karService)
-
-