Brooklyn

brooklyn.entity.java
[Java] Class VanillaJavaApp

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

public class VanillaJavaApp
extends SoftwareProcessImpl

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

 
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
VanillaJavaApp()

VanillaJavaApp(Entity parent)

VanillaJavaApp(java.util.Map flags)

VanillaJavaApp(java.util.Map props, Entity parent)

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

void addToClasspath(java.util.Collection urls)

protected void connectSensors()

void disconnectSensors()

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


 
Constructor Detail

VanillaJavaApp

public VanillaJavaApp()


VanillaJavaApp

public VanillaJavaApp(Entity parent)


VanillaJavaApp

public VanillaJavaApp(java.util.Map flags)


VanillaJavaApp

public VanillaJavaApp(java.util.Map props, Entity parent)


 
Method Detail

addToClasspath

public void addToClasspath(java.lang.String url)


addToClasspath

public void addToClasspath(java.util.Collection urls)


connectSensors

@Override
protected void connectSensors()


disconnectSensors

@Override
public void disconnectSensors()


getClasspath

public java.util.List getClasspath()


getDriverInterface

@Override
public java.lang.Class getDriverInterface()


getJvmDefines

public java.util.Map getJvmDefines()


getJvmXArgs

public java.util.List getJvmXArgs()


getMainClass

public java.lang.String getMainClass()


getRunDir

public java.lang.String getRunDir()


preStop

@Override
protected void preStop()


 

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