Brooklyn

brooklyn.entity.osgi.karaf
[Java] Class KarafContainerImpl

java.lang.Object
  brooklyn.entity.basic.AbstractEntity
      brooklyn.entity.basic.SoftwareProcessImpl
          brooklyn.entity.osgi.karaf.KarafContainerImpl
All Implemented Interfaces:
KarafContainer

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

static java.lang.String OSGI_BUNDLE_STATE

static java.lang.String OSGI_COMPENDIUM

static java.lang.String OSGI_FRAMEWORK

protected JmxHelper jmxHelper

 
Fields inherited from class SoftwareProcessImpl
connectedSensors
 
Fields inherited from class AbstractEntity
EFFECTOR_ADDED, EFFECTOR_CHANGED, EFFECTOR_REMOVED, LOG, POLICY_ADDED, POLICY_REMOVED, SENSOR_ADDED, SENSOR_REMOVED, _subscriptionTracker, managementSupport, tempWorkings
 
Constructor Summary
KarafContainerImpl()

 
Method Summary
protected void connectSensors()

protected void disconnectSensors()

KarafDriver getDriver()

java.lang.Class getDriverInterface()

void init()

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 SoftwareProcessImpl
callRebindHooks, callStartHooks, checkModifiable, connectSensors, connectServiceUpIsRunning, disconnectSensors, disconnectServiceUpIsRunning, doInitDriver, doRestart, doStart, doStop, getDriver, getLocalHostname, getMachineOrNull, getProvisioningFlags, getProvisioningLocation, getRequiredOpenPorts, newDriver, obtainProvisioningFlags, onManagementStarted, onManagementStarting, postDriverStart, postRebind, postStart, preStart, preStop, rebind, restart, setProvisioningLocation, start, startInLocation, startInLocation, startInLocation, startInLocation, stop, waitForEntityStart, waitForServiceUp, waitForServiceUp, waitForServiceUp, waitForServiceUp
 
Methods inherited from class AbstractEntity
addChild, addChild, addEnricher, addGroup, addLocations, addPolicy, clearLocations, clearParent, configure, configure, configure, configure, configure, configure, destroy, emit, emitInternal, equals, finalize, firstLocation, getAllAttributes, getAllConfig, getApplication, getApplicationId, getAttribute, getAttributeByNameParts, getChildren, getConfig, getConfig, getConfig, getConfig, getConfigMap, getCreationTime, getDisplayName, getEffector, getEnrichers, getEntityManager, getEntityType, getEntityTypeName, getExecutionContext, getGroups, getIconUrl, getId, getLocations, getManagementContext, getManagementSupport, getMutableEntityType, getParent, getPolicies, getProxy, getProxyIfAvailable, getRebindSupport, getSubscriptionContext, getSubscriptionTracker, hashCode, init, invalidateReferences, invoke, invoke, invoke, isLegacyConstruction, onManagementBecomingMaster, onManagementNoLongerMaster, onManagementStarted, onManagementStarting, onManagementStopped, refreshInheritedConfig, removeAllEnrichers, removeAllPolicies, removeAttribute, removeChild, removeEnricher, removeLocations, removePolicy, setApplication, setAttribute, setAttribute, setAttributeWithoutPublishing, setConfig, setConfig, setConfig, setConfig, setConfig, setConfig, setConfigEvenIfOwned, setConfigEvenIfOwned, setConfigIfValNonNull, setConfigIfValNonNull, setDisplayName, setManagementContext, setParent, setProxy, subscribe, subscribeToChildren, subscribeToMembers, toMetadataRecord, toString, toStringHelper, unsubscribe, unsubscribe
 

Field Detail

KARAF_ADMIN

public static final java.lang.String KARAF_ADMIN


KARAF_FEATURES

public static final java.lang.String KARAF_FEATURES


OSGI_BUNDLE_STATE

public static final java.lang.String OSGI_BUNDLE_STATE


OSGI_COMPENDIUM

public static final java.lang.String OSGI_COMPENDIUM


OSGI_FRAMEWORK

public static final java.lang.String OSGI_FRAMEWORK


jmxHelper

protected JmxHelper jmxHelper


 
Constructor Detail

KarafContainerImpl

public KarafContainerImpl()


 
Method Detail

connectSensors

super.connectSensors();
protected void connectSensors()


disconnectSensors

protected void preStop() {
protected void disconnectSensors()


getDriver

public KarafDriver getDriver() {
public KarafDriver getDriver()


getDriverInterface

public Class getDriverInterface() {
public java.lang.Class getDriverInterface()


init

public void init() {
public void init()


installBundle

public long installBundle(ean wrap = false; java.lang.String bundle)
throws URISyntaxException If bundle name is not a valid URI


installFeature

.limitIterationsTo(40)
public void installFeature(.until(new Callable() { java.lang.String featureName)


listBundles

public java.util.Map listBundles()


postDriverStart

protected void postDriverStart() {
protected void postDriverStart()


preStop

@Effector(description="Updates the OSGi Service's properties, adding (and overriding) the given key-value pairs")
protected void preStop()


uninstallBundle

public void uninstallBundle(propertyFiles == null) return; java.lang.Long bundleId)


updateServiceProperties

for (Map.Entry entry: additionalVals.entrySet()) {
public void updateServiceProperties(String value = entry.getValue(); java.lang.String serviceName, java.util.Map additionalVals)


uploadPropertyFiles

protected void uploadPropertyFiles(java.util.Map propertyFiles)


 

Brooklyn Multi-Cloud Application Management Platform
brooklyncentral.github.com. Apache License. © 2012.