public class FeaturesSynchronizer extends FeaturesSupport implements org.apache.karaf.cellar.core.Synchronizer
featuresService| Constructor and Description |
|---|
FeaturesSynchronizer() |
| Modifier and Type | Method and Description |
|---|---|
void |
destroy() |
String |
getSyncPolicy(org.apache.karaf.cellar.core.Group group)
Get the features sync policy for the given cluster group.
|
void |
init(org.osgi.framework.BundleContext bundleContext) |
void |
pull(org.apache.karaf.cellar.core.Group group)
Pull the features repositories and features states from a cluster group, and update the local states.
|
void |
push(org.apache.karaf.cellar.core.Group group)
Push features repositories and features local states to a cluster group.
|
void |
setEventProducer(org.apache.karaf.cellar.core.event.EventProducer eventProducer) |
void |
sync(org.apache.karaf.cellar.core.Group group)
Sync node and cluster states, depending of the sync policy.
|
getFeaturesService, isFeatureInstalledLocally, isRepositoryRegisteredLocally, setFeaturesServicepublic void setEventProducer(org.apache.karaf.cellar.core.event.EventProducer eventProducer)
public void init(org.osgi.framework.BundleContext bundleContext)
init in class FeaturesSupportpublic void destroy()
destroy in class FeaturesSupportpublic void sync(org.apache.karaf.cellar.core.Group group)
sync in interface org.apache.karaf.cellar.core.Synchronizergroup - the target cluster group.public void pull(org.apache.karaf.cellar.core.Group group)
pull in interface org.apache.karaf.cellar.core.Synchronizergroup - the cluster group.public void push(org.apache.karaf.cellar.core.Group group)
push in interface org.apache.karaf.cellar.core.Synchronizergroup - the cluster group.public String getSyncPolicy(org.apache.karaf.cellar.core.Group group)
getSyncPolicy in interface org.apache.karaf.cellar.core.Synchronizergroup - the cluster group.Copyright © 2016 The Apache Software Foundation. All rights reserved.