Class SynchronizedInstallerImpl

java.lang.Object
org.codice.ddf.sync.installer.impl.SynchronizedInstallerImpl
All Implemented Interfaces:
org.codice.ddf.sync.installer.api.SynchronizedInstaller

public class SynchronizedInstallerImpl extends Object implements org.codice.ddf.sync.installer.api.SynchronizedInstaller
  • Constructor Details

    • SynchronizedInstallerImpl

      public SynchronizedInstallerImpl(org.osgi.framework.BundleContext bundleContext, org.osgi.service.cm.ConfigurationAdmin configAdmin, org.apache.karaf.features.FeaturesService featuresService, org.apache.karaf.bundle.core.BundleService bundleService)
  • Method Details

    • waitForBootFinish

      public void waitForBootFinish() throws InterruptedException
      Specified by:
      waitForBootFinish in interface org.codice.ddf.sync.installer.api.SynchronizedInstaller
      Throws:
      InterruptedException
    • waitForBootFinish

      public void waitForBootFinish(long maxWaitTime) throws InterruptedException
      Specified by:
      waitForBootFinish in interface org.codice.ddf.sync.installer.api.SynchronizedInstaller
      Throws:
      InterruptedException
    • createManagedFactoryService

      public org.osgi.service.cm.Configuration createManagedFactoryService(String factoryPid, @Nullable Map<String,Object> properties, @Nullable String bundleLocation) throws InterruptedException
      Specified by:
      createManagedFactoryService in interface org.codice.ddf.sync.installer.api.SynchronizedInstaller
      Throws:
      InterruptedException
    • createManagedFactoryService

      public org.osgi.service.cm.Configuration createManagedFactoryService(long maxWaitTime, String factoryPid, @Nullable Map<String,Object> properties, @Nullable String bundleLocation) throws InterruptedException
      Specified by:
      createManagedFactoryService in interface org.codice.ddf.sync.installer.api.SynchronizedInstaller
      Throws:
      InterruptedException
    • updateManagedService

      public void updateManagedService(String servicePid, Map<String,Object> properties, @Nullable String bundleLocation) throws InterruptedException
      Specified by:
      updateManagedService in interface org.codice.ddf.sync.installer.api.SynchronizedInstaller
      Throws:
      InterruptedException
    • updateManagedService

      public void updateManagedService(long maxWaitTime, String servicePid, Map<String,Object> properties, @Nullable String bundleLocation) throws InterruptedException
      Specified by:
      updateManagedService in interface org.codice.ddf.sync.installer.api.SynchronizedInstaller
      Throws:
      InterruptedException
    • waitForServiceToBeAvailable

      public void waitForServiceToBeAvailable(String servicePid) throws InterruptedException
      Specified by:
      waitForServiceToBeAvailable in interface org.codice.ddf.sync.installer.api.SynchronizedInstaller
      Throws:
      InterruptedException
    • waitForServiceToBeAvailable

      public void waitForServiceToBeAvailable(long maxWaitTime, String servicePid) throws InterruptedException
      Specified by:
      waitForServiceToBeAvailable in interface org.codice.ddf.sync.installer.api.SynchronizedInstaller
      Throws:
      InterruptedException
    • installFeatures

      public void installFeatures(String feature, String... additionalFeatures) throws InterruptedException
      Specified by:
      installFeatures in interface org.codice.ddf.sync.installer.api.SynchronizedInstaller
      Throws:
      InterruptedException
    • installFeatures

      public void installFeatures(EnumSet<org.apache.karaf.features.FeaturesService.Option> options, String feature, String... additionalFeatures) throws InterruptedException
      Specified by:
      installFeatures in interface org.codice.ddf.sync.installer.api.SynchronizedInstaller
      Throws:
      InterruptedException
    • installFeatures

      public void installFeatures(long maxWaitTime, EnumSet<org.apache.karaf.features.FeaturesService.Option> options, String feature, String... additionalFeatures) throws InterruptedException
      Specified by:
      installFeatures in interface org.codice.ddf.sync.installer.api.SynchronizedInstaller
      Throws:
      InterruptedException
    • uninstallFeatures

      public void uninstallFeatures(String feature, String... additionalFeatures) throws InterruptedException
      Specified by:
      uninstallFeatures in interface org.codice.ddf.sync.installer.api.SynchronizedInstaller
      Throws:
      InterruptedException
    • uninstallFeatures

      public void uninstallFeatures(EnumSet<org.apache.karaf.features.FeaturesService.Option> options, String feature, String... additionalFeatures) throws InterruptedException
      Specified by:
      uninstallFeatures in interface org.codice.ddf.sync.installer.api.SynchronizedInstaller
      Throws:
      InterruptedException
    • uninstallFeatures

      public void uninstallFeatures(long maxWaitTime, EnumSet<org.apache.karaf.features.FeaturesService.Option> options, String feature, String... additionalFeatures) throws InterruptedException
      Specified by:
      uninstallFeatures in interface org.codice.ddf.sync.installer.api.SynchronizedInstaller
      Throws:
      InterruptedException
    • stopBundles

      public void stopBundles(String symbolicName, String... additionalSymbolicNames)
      Specified by:
      stopBundles in interface org.codice.ddf.sync.installer.api.SynchronizedInstaller
    • startBundles

      public void startBundles(String symbolicName, String... additionalSymbolicNames)
      Specified by:
      startBundles in interface org.codice.ddf.sync.installer.api.SynchronizedInstaller
    • waitForBundles

      public void waitForBundles(String... symbolicNames) throws InterruptedException
      Specified by:
      waitForBundles in interface org.codice.ddf.sync.installer.api.SynchronizedInstaller
      Throws:
      InterruptedException
    • waitForBundles

      public void waitForBundles(long maxWaitTime, String... symbolicNames) throws InterruptedException
      Specified by:
      waitForBundles in interface org.codice.ddf.sync.installer.api.SynchronizedInstaller
      Throws:
      InterruptedException