Brooklyn

brooklyn.entity.java
[Java] Class VanillaJavaApp

java.lang.Object
  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 JmxFeed jmxFeed

protected long jmxPollPeriod

 
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
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, 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

ARGS

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


CLASSPATH

@SetFromFlag
public static final ConfigKey CLASSPATH


JVM_DEFINES

public static final ConfigKey JVM_DEFINES


JVM_XARGS

public static final ConfigKey JVM_XARGS


MAIN_CLASS

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


jmxFeed

protected JmxFeed jmxFeed


jmxPollPeriod

@SetFromFlag("jvmXArgs")
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

protected void connectSensors()


disconnectSensors

disconnectServiceUpIsRunning();
public void disconnectSensors()


getClasspath

public java.util.List getClasspath()


getDriverInterface

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

super.preStop();
protected void preStop()


 

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