Brooklyn

brooklyn.entity.osgi.karaf
[Groovy] Class KarafContainer

java.lang.Object
  groovy.lang.GroovyObjectSupport
      brooklyn.entity.basic.AbstractEntity
          brooklyn.entity.basic.SoftwareProcessEntity
              brooklyn.entity.osgi.karaf.KarafContainer
All Implemented Interfaces:
UsesJava, UsesJmx

class KarafContainer
extends SoftwareProcessEntity

This sets up a Karaf OSGi container


Field Summary
static BasicAttributeSensorAndConfigKey JMX_CONTEXT

static BasicAttributeSensorAndConfigKey JMX_PASSWORD

static PortAttributeSensorAndConfigKey JMX_PORT

static BasicAttributeSensorAndConfigKey JMX_USER

static java.lang.String KARAF_ADMIN

static java.lang.String KARAF_FEATURES

static BasicAttributeSensor KARAF_INSTALL_LOCATION

static BasicAttributeSensor KARAF_INSTANCES

static BasicAttributeSensor KARAF_JAVA_OPTS

static BasicAttributeSensorAndConfigKey KARAF_NAME

static BasicAttributeSensor KARAF_PID

static BasicAttributeSensor KARAF_RMI_REGISTRY_PORT

static BasicAttributeSensor KARAF_RMI_SERVER_PORT

static BasicAttributeSensor KARAF_ROOT

static BasicAttributeSensor KARAF_SSH_PORT

static BasicAttributeSensor KARAF_STATE

static MapConfigKey NAMED_PROPERTY_FILES

static PortAttributeSensorAndConfigKey RMI_PORT

static PortAttributeSensorAndConfigKey RMI_SERVER_PORT

static BasicConfigKey SUGGESTED_VERSION

protected JmxSensorAdapter jmxAdapter

 
Fields inherited from class SoftwareProcessEntity
ADDRESS, CUSTOMIZE_LATCH, HOSTNAME, INSTALL_LATCH, LAUNCH_LATCH, PROVISIONING_PROPERTIES, SERVICE_STATE, SHELL_ENVIRONMENT, START_LATCH, SUGGESTED_INSTALL_DIR, SUGGESTED_RUN_DIR, SUGGESTED_VERSION, sensorRegistry
 
Fields inherited from class AbstractEntity
LOG, SENSOR_ADDED, SENSOR_REMOVED, _subscriptionTracker, application, attributesInternal, configsInternal, execution, managementContext, managementData, subscription, tempWorkings
 
Constructor Summary
KarafContainer(java.util.Map properties = [:], Entity owner = null)

 
Method Summary
protected void connectSensors()

protected void deployConfiguration(java.util.Map propertyFiles)

java.lang.Class getDriverInterface()

protected java.lang.Object getInstanceAttribute(java.lang.String attribute)

void postStart()

protected void preStop()

 
Methods inherited from class SoftwareProcessEntity
checkAllSensorsConnected, checkModifiable, connectSensors, getDriver, getLocalHostname, getProvisioningFlags, getProvisioningLocation, getRequiredOpenPorts, initDriver, newDriver, obtainProvisioningFlags, postActivation, postStart, preStart, preStop, removeFirstMatchingLocation, removeFirstMatchingLocation, restart, setProvisioningLocation, start, startInLocation, startInLocation, startInLocation, stop, stopInLocation, waitForEntityStart, waitForServiceUp, waitForServiceUp
 
Methods inherited from class AbstractEntity
addEnricher, addGroup, addOwnedChild, addPolicy, assertNotYetOwned, clearOwner, configure, configure, destroy, emit, emitInternal, firstLocation, getAllConfig, getApplication, getApplicationId, getAttribute, getAttributeByNameParts, getConfig, getConfig, getConfig, getConfig, getConfigMap, getEffector, getEnrichers, getEntityType, getExecutionContext, getGroups, getLocations, getManagementContext, getMutableEntityType, getOwnedChildren, getOwner, getPolicies, getSubscriptionContext, getSubscriptionTracker, hasEverBeenManaged, invalidate, invoke, invoke, invokeFromJava, invokeMethod, onManagementBecomingMaster, onManagementNoLongerMaster, refreshInheritedConfig, refreshInheritedConfigOfChildren, removeAllEnrichers, removeAllPolicies, removeAttribute, removeEnricher, removeOwnedChild, removePolicy, setApplication, setAttribute, setAttribute, setBeingManaged, setConfig, setConfig, setConfigEvenIfOwned, setConfigEvenIfOwned, setConfigIfValNonNull, setConfigIfValNonNull, setOwner, subscribe, subscribeToChildren, subscribeToMembers, toString, toStringFieldsToInclude, unsubscribe, unsubscribe
 
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

JMX_CONTEXT

@SetFromFlag("jmxContext")
public static final BasicAttributeSensorAndConfigKey JMX_CONTEXT


JMX_PASSWORD

@SetFromFlag("jmxPassword")
public static final BasicAttributeSensorAndConfigKey JMX_PASSWORD


JMX_PORT

@SetFromFlag("jmxPort")
public static final PortAttributeSensorAndConfigKey JMX_PORT


JMX_USER

@SetFromFlag("jmxUser")
public static final BasicAttributeSensorAndConfigKey JMX_USER


KARAF_ADMIN

public static final java.lang.String KARAF_ADMIN


KARAF_FEATURES

public static final java.lang.String KARAF_FEATURES


KARAF_INSTALL_LOCATION

public static final BasicAttributeSensor KARAF_INSTALL_LOCATION


KARAF_INSTANCES

public static final BasicAttributeSensor KARAF_INSTANCES


KARAF_JAVA_OPTS

public static final BasicAttributeSensor KARAF_JAVA_OPTS


KARAF_NAME

@SetFromFlag("karafName")
public static final BasicAttributeSensorAndConfigKey KARAF_NAME


KARAF_PID

public static final BasicAttributeSensor KARAF_PID


KARAF_RMI_REGISTRY_PORT

public static final BasicAttributeSensor KARAF_RMI_REGISTRY_PORT


KARAF_RMI_SERVER_PORT

public static final BasicAttributeSensor KARAF_RMI_SERVER_PORT


KARAF_ROOT

public static final BasicAttributeSensor KARAF_ROOT


KARAF_SSH_PORT

public static final BasicAttributeSensor KARAF_SSH_PORT


KARAF_STATE

public static final BasicAttributeSensor KARAF_STATE


NAMED_PROPERTY_FILES

public static final MapConfigKey NAMED_PROPERTY_FILES


RMI_PORT

@Deprecated // since 0.4 use RMI_SERVER_PORT
public static final PortAttributeSensorAndConfigKey RMI_PORT


RMI_SERVER_PORT

@SetFromFlag("rmiServerPort")
public static final PortAttributeSensorAndConfigKey RMI_SERVER_PORT


SUGGESTED_VERSION

@SetFromFlag("version")
public static final BasicConfigKey SUGGESTED_VERSION


jmxAdapter

protected JmxSensorAdapter jmxAdapter


 
Constructor Detail

KarafContainer

KarafContainer(java.util.Map properties = [:], Entity owner = null)


 
Method Detail

connectSensors

@Override
protected void connectSensors()


deployConfiguration

protected void deployConfiguration(java.util.Map propertyFiles)


getDriverInterface

@Override
java.lang.Class getDriverInterface()


getInstanceAttribute

protected java.lang.Object getInstanceAttribute(java.lang.String attribute)


postStart

@Override
void postStart()


preStop

@Override
protected void preStop()


 

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