|
Brooklyn | |||||||
FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object groovy.lang.GroovyObjectSupport brooklyn.entity.basic.AbstractEntity brooklyn.entity.basic.SoftwareProcessImpl brooklyn.entity.osgi.karaf.KarafContainerImpl
public class KarafContainerImpl extends SoftwareProcessImpl
This sets up a Karaf OSGi container
Field Summary | |
---|---|
static java.lang.String |
KARAF_ADMIN
|
static java.lang.String |
KARAF_FEATURES
|
protected static Logger |
LOG
|
static java.lang.String |
OSGI_BUNDLE_STATE
|
static java.lang.String |
OSGI_COMPENDIUM
|
static java.lang.String |
OSGI_FRAMEWORK
|
protected JmxSensorAdapter |
jmxAdapter
|
protected JmxHelper |
jmxHelper
|
Fields inherited from class SoftwareProcessImpl | |
---|---|
sensorRegistry |
Fields inherited from class AbstractEntity | |
---|---|
LOG, POLICY_ADDED, POLICY_REMOVED, SENSOR_ADDED, SENSOR_REMOVED, _subscriptionTracker, attributesInternal, configsInternal, managementSupport, tempWorkings |
Constructor Summary | |
KarafContainerImpl()
|
|
KarafContainerImpl(java.util.Map properties)
|
|
KarafContainerImpl(Entity parent)
|
|
KarafContainerImpl(java.util.Map properties, Entity parent)
|
Method Summary | |
---|---|
protected void
|
connectSensors()
|
KarafDriver
|
getDriver()
|
java.lang.Class
|
getDriverInterface()
|
long
|
installBundle(java.lang.String bundle)
throws URISyntaxException If bundle name is not a valid URI |
void
|
installFeature(java.lang.String featureName)
|
java.util.Map
|
listBundles()
|
protected void
|
postDriverStart()
|
protected void
|
preStop()
|
void
|
uninstallBundle(java.lang.Long bundleId)
|
void
|
updateServiceProperties(java.lang.String serviceName, java.util.Map additionalVals)
|
protected void
|
uploadPropertyFiles(java.util.Map propertyFiles)
|
Methods inherited from class groovy.lang.GroovyObjectSupport | |
---|---|
groovy.lang.GroovyObjectSupport#setProperty(java.lang.String, java.lang.Object), groovy.lang.GroovyObjectSupport#getProperty(java.lang.String), groovy.lang.GroovyObjectSupport#getMetaClass(), groovy.lang.GroovyObjectSupport#setMetaClass(groovy.lang.MetaClass), groovy.lang.GroovyObjectSupport#invokeMethod(java.lang.String, java.lang.Object), groovy.lang.GroovyObjectSupport#wait(), groovy.lang.GroovyObjectSupport#wait(long), groovy.lang.GroovyObjectSupport#wait(long, int), groovy.lang.GroovyObjectSupport#equals(java.lang.Object), groovy.lang.GroovyObjectSupport#toString(), groovy.lang.GroovyObjectSupport#hashCode(), groovy.lang.GroovyObjectSupport#getClass(), groovy.lang.GroovyObjectSupport#notify(), groovy.lang.GroovyObjectSupport#notifyAll() |
Field Detail |
---|
public static final java.lang.String KARAF_ADMIN
public static final java.lang.String KARAF_FEATURES
protected static final Logger LOG
public static final java.lang.String OSGI_BUNDLE_STATE
public static final java.lang.String OSGI_COMPENDIUM
public static final java.lang.String OSGI_FRAMEWORK
protected JmxSensorAdapter jmxAdapter
protected JmxHelper jmxHelper
Constructor Detail |
---|
public KarafContainerImpl()
public KarafContainerImpl(java.util.Map properties)
public KarafContainerImpl(Entity parent)
public KarafContainerImpl(java.util.Map properties, Entity parent)
Method Detail |
---|
@Override protected void connectSensors()
@Override public KarafDriver getDriver()
@Override public java.lang.Class getDriverInterface()
@Description("Deploys the given bundle, returning the bundle id - see osgi.core:type=framework#installBundle()") public long installBundle(@NamedParameter("bundle") @Description("URI of bundle to be deployed") java.lang.String bundle)
@Description("Updates the OSGi Service's properties, adding (and overriding) the given key-value pairs") public void installFeature(@NamedParameter("featureName") @Description("Name of the feature - see org.apache.karaf:type=features#installFeature()") java.lang.String featureName)
public java.util.Map listBundles()
@Override protected void postDriverStart()
@Override protected void preStop()
@Description("Undeploys the bundle with the given id") public void uninstallBundle(@NamedParameter("bundleId") @Description("Id of the bundle") java.lang.Long bundleId)
@Description("Updates the OSGi Service's properties, adding (and overriding) the given key-value pairs") public void updateServiceProperties(@NamedParameter("serviceName") @Description("Name of the OSGi service") java.lang.String serviceName, java.util.Map additionalVals)
protected void uploadPropertyFiles(java.util.Map propertyFiles)
Brooklyn Multi-Cloud Application Management Platform
brooklyncentral.github.com. Apache License. © 2012.