Interface KarsMBean

  • All Known Implementing Classes:
    KarsMBeanImpl

    public interface KarsMBean
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void create​(String repoName, List<String> features)
      Create a kar file for a list of feature repos
      List<String> getKars()
      List the installed KAR files.
      void install​(String url)
      Install a KAR file from the given URL.
      void install​(String url, boolean noAutoStartBundles)
      Install a KAR file from a given URL and decide to start or not the bundles.
      void install​(String url, boolean noAutoStartBundles, boolean noAutoRefreshBundles)
      Install a KAR file from a given URL.
      void uninstall​(String name)
      Uninstall a KAR file.
      void uninstall​(String name, boolean noAutoRefreshBundles)
      Uninstall a KAR file.
    • Method Detail

      • create

        void create​(String repoName,
                    List<String> features)
        Create a kar file for a list of feature repos
        Parameters:
        repoName - the name of features repository
        features - 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.