public class DeploymentAgent extends Object implements org.osgi.service.cm.ManagedService
Modifier and Type | Field and Description |
---|---|
static String |
FABRIC_ZOOKEEPER_PID |
Constructor and Description |
---|
DeploymentAgent(org.osgi.framework.BundleContext bundleContext) |
Modifier and Type | Method and Description |
---|---|
protected ExecutorService |
createDownloadExecutor() |
boolean |
doUpdate(Dictionary<String,?> props) |
protected void |
findBundlesWithFragmentsToRefresh(Set<org.osgi.framework.Bundle> toRefresh) |
protected void |
findBundlesWithOptionalPackagesToRefresh(Set<org.osgi.framework.Bundle> toRefresh) |
protected InputStream |
getBundleInputStream(org.osgi.resource.Resource resource,
Map<String,StreamProvider> providers) |
protected ExecutorService |
getDownloadExecutor() |
long |
getUrlHandlersTimeout() |
boolean |
isResolveOptionalImports() |
protected static void |
putAllProperties(Properties answer,
org.apache.felix.utils.properties.Properties properties) |
protected void |
refreshPackages(Collection<org.osgi.framework.Bundle> bundles) |
void |
setResolveOptionalImports(boolean resolveOptionalImports) |
void |
setUrlHandlersTimeout(long urlHandlersTimeout) |
void |
start() |
void |
stop() |
void |
updated(Dictionary<String,?> props) |
protected boolean |
updateFramework(org.apache.felix.utils.properties.Properties properties,
String url) |
public static final String FABRIC_ZOOKEEPER_PID
public DeploymentAgent(org.osgi.framework.BundleContext bundleContext) throws IOException
IOException
protected ExecutorService createDownloadExecutor()
public boolean isResolveOptionalImports()
public void setResolveOptionalImports(boolean resolveOptionalImports)
public long getUrlHandlersTimeout()
public void setUrlHandlersTimeout(long urlHandlersTimeout)
public void start() throws IOException
IOException
public void stop() throws InterruptedException
InterruptedException
public void updated(Dictionary<String,?> props) throws org.osgi.service.cm.ConfigurationException
updated
in interface org.osgi.service.cm.ManagedService
org.osgi.service.cm.ConfigurationException
protected static void putAllProperties(Properties answer, org.apache.felix.utils.properties.Properties properties)
public boolean doUpdate(Dictionary<String,?> props) throws Exception
Exception
protected InputStream getBundleInputStream(org.osgi.resource.Resource resource, Map<String,StreamProvider> providers) throws IOException
IOException
protected void findBundlesWithFragmentsToRefresh(Set<org.osgi.framework.Bundle> toRefresh)
protected void findBundlesWithOptionalPackagesToRefresh(Set<org.osgi.framework.Bundle> toRefresh)
protected boolean updateFramework(org.apache.felix.utils.properties.Properties properties, String url) throws Exception
Exception
protected void refreshPackages(Collection<org.osgi.framework.Bundle> bundles) throws InterruptedException
InterruptedException
protected ExecutorService getDownloadExecutor()
Copyright © 2011–2014 Red Hat. All rights reserved.