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
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class -
Constructor Summary
ConstructorsConstructorDescriptionSynchronizedInstallerImpl(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 Summary
Modifier and TypeMethodDescriptionorg.osgi.service.cm.ConfigurationcreateManagedFactoryService(long maxWaitTime, String factoryPid, Map<String, Object> properties, String bundleLocation) org.osgi.service.cm.ConfigurationcreateManagedFactoryService(String factoryPid, Map<String, Object> properties, String bundleLocation) voidinstallFeatures(long maxWaitTime, EnumSet<org.apache.karaf.features.FeaturesService.Option> options, String feature, String... additionalFeatures) voidinstallFeatures(String feature, String... additionalFeatures) voidinstallFeatures(EnumSet<org.apache.karaf.features.FeaturesService.Option> options, String feature, String... additionalFeatures) voidstartBundles(String symbolicName, String... additionalSymbolicNames) voidstopBundles(String symbolicName, String... additionalSymbolicNames) voiduninstallFeatures(long maxWaitTime, EnumSet<org.apache.karaf.features.FeaturesService.Option> options, String feature, String... additionalFeatures) voiduninstallFeatures(String feature, String... additionalFeatures) voiduninstallFeatures(EnumSet<org.apache.karaf.features.FeaturesService.Option> options, String feature, String... additionalFeatures) voidupdateManagedService(long maxWaitTime, String servicePid, Map<String, Object> properties, String bundleLocation) voidvoidvoidwaitForBootFinish(long maxWaitTime) voidwaitForBundles(long maxWaitTime, String... symbolicNames) voidwaitForBundles(String... symbolicNames) voidwaitForServiceToBeAvailable(long maxWaitTime, String servicePid) voidwaitForServiceToBeAvailable(String servicePid)
-
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
- Specified by:
waitForBootFinishin interfaceorg.codice.ddf.sync.installer.api.SynchronizedInstaller- Throws:
InterruptedException
-
waitForBootFinish
- Specified by:
waitForBootFinishin interfaceorg.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:
createManagedFactoryServicein interfaceorg.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:
createManagedFactoryServicein interfaceorg.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:
updateManagedServicein interfaceorg.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:
updateManagedServicein interfaceorg.codice.ddf.sync.installer.api.SynchronizedInstaller- Throws:
InterruptedException
-
waitForServiceToBeAvailable
- Specified by:
waitForServiceToBeAvailablein interfaceorg.codice.ddf.sync.installer.api.SynchronizedInstaller- Throws:
InterruptedException
-
waitForServiceToBeAvailable
public void waitForServiceToBeAvailable(long maxWaitTime, String servicePid) throws InterruptedException - Specified by:
waitForServiceToBeAvailablein interfaceorg.codice.ddf.sync.installer.api.SynchronizedInstaller- Throws:
InterruptedException
-
installFeatures
public void installFeatures(String feature, String... additionalFeatures) throws InterruptedException - Specified by:
installFeaturesin interfaceorg.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:
installFeaturesin interfaceorg.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:
installFeaturesin interfaceorg.codice.ddf.sync.installer.api.SynchronizedInstaller- Throws:
InterruptedException
-
uninstallFeatures
public void uninstallFeatures(String feature, String... additionalFeatures) throws InterruptedException - Specified by:
uninstallFeaturesin interfaceorg.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:
uninstallFeaturesin interfaceorg.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:
uninstallFeaturesin interfaceorg.codice.ddf.sync.installer.api.SynchronizedInstaller- Throws:
InterruptedException
-
stopBundles
- Specified by:
stopBundlesin interfaceorg.codice.ddf.sync.installer.api.SynchronizedInstaller
-
startBundles
- Specified by:
startBundlesin interfaceorg.codice.ddf.sync.installer.api.SynchronizedInstaller
-
waitForBundles
- Specified by:
waitForBundlesin interfaceorg.codice.ddf.sync.installer.api.SynchronizedInstaller- Throws:
InterruptedException
-
waitForBundles
- Specified by:
waitForBundlesin interfaceorg.codice.ddf.sync.installer.api.SynchronizedInstaller- Throws:
InterruptedException
-