Brooklyn

brooklyn.entity.java
[Groovy] Class VanillaJavaApp

java.lang.Object
  groovy.lang.GroovyObjectSupport
      brooklyn.entity.basic.AbstractEntity
          brooklyn.entity.basic.SoftwareProcessEntity
              brooklyn.entity.java.VanillaJavaApp
All Implemented Interfaces:
UsesJava, UsesJavaMXBeans, UsesJmx

class VanillaJavaApp
extends SoftwareProcessEntity

Field Summary
static ConfigKey ARGS

static ConfigKey CLASSPATH

static ConfigKey JVM_DEFINES

static ConfigKey JVM_XARGS

static ConfigKey MAIN_CLASS

protected JmxSensorAdapter jmxAdapter

protected long jmxPollPeriod

protected boolean useJmx

 
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
VanillaJavaApp(java.util.Map props = [:], Entity owner = null)

 
Method Summary
void addToClasspath(java.lang.String url)

void addToClasspath(java.util.Collection urls)

protected void connectSensors()

java.util.List getClasspath()

java.lang.Class getDriverInterface()

java.util.Map getJvmDefines()

java.util.List getJvmXArgs()

java.lang.String getMainClass()

java.lang.String getRunDir()

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

ARGS

@SetFromFlag("args")
public static final ConfigKey ARGS


CLASSPATH

@SetFromFlag("classpath")
public static final ConfigKey CLASSPATH


JVM_DEFINES

@SetFromFlag("jvmDefines")
public static final ConfigKey JVM_DEFINES


JVM_XARGS

@SetFromFlag("jvmXArgs")
public static final ConfigKey JVM_XARGS


MAIN_CLASS

@SetFromFlag(value="main", nullable=false)
public static final ConfigKey MAIN_CLASS


jmxAdapter

protected JmxSensorAdapter jmxAdapter


jmxPollPeriod

@SetFromFlag
protected long jmxPollPeriod


useJmx

@SetFromFlag(defaultVal="true")
protected boolean useJmx


 
Constructor Detail

VanillaJavaApp

VanillaJavaApp(java.util.Map props = [:], Entity owner = null)


 
Method Detail

addToClasspath

void addToClasspath(java.lang.String url)


addToClasspath

void addToClasspath(java.util.Collection urls)


connectSensors

@Override
protected void connectSensors()


getClasspath

java.util.List getClasspath()


getDriverInterface

java.lang.Class getDriverInterface()


getJvmDefines

java.util.Map getJvmDefines()


getJvmXArgs

java.util.List getJvmXArgs()


getMainClass

java.lang.String getMainClass()


getRunDir

java.lang.String getRunDir()


preStop

@Override
protected void preStop()


 

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