Brooklyn

brooklyn.entity.webapp.tomcat
[Java] Class TomcatServer

java.lang.Object
  groovy.lang.GroovyObjectSupport
      brooklyn.entity.basic.AbstractEntity
          brooklyn.entity.basic.SoftwareProcessEntity
              brooklyn.entity.webapp.JavaWebAppSoftwareProcess
                  brooklyn.entity.webapp.tomcat.TomcatServer
All Implemented Interfaces:
JavaWebAppService, UsesJmx

public class TomcatServer
extends JavaWebAppSoftwareProcess

An Entity that represents a single Tomcat instance.


Field Summary
static BasicAttributeSensor CONNECTOR_STATUS

static BasicAttributeSensor JMX_SERVICE_URL

static PortAttributeSensorAndConfigKey SHUTDOWN_PORT

Tomcat insists on having a port you can connect to for the sole purpose of shutting it down.

static BasicConfigKey SUGGESTED_VERSION

 
Fields inherited from class JavaWebAppSoftwareProcess
DEPLOYED_WARS
 
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
TomcatServer(java.util.Map flags)

TomcatServer(Entity owner)

TomcatServer(java.util.Map flags, Entity owner)

 
Method Summary
void connectSensors()

java.lang.Class getDriverInterface()

protected void postActivation()

 
Methods inherited from class JavaWebAppSoftwareProcess
connectSensors, deploy, deployInitialWars, getDriver, stop, undeploy
 
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

CONNECTOR_STATUS

public static final BasicAttributeSensor CONNECTOR_STATUS


JMX_SERVICE_URL

public static final BasicAttributeSensor JMX_SERVICE_URL


SHUTDOWN_PORT

@SetFromFlag("shutdownPort")
public static final PortAttributeSensorAndConfigKey SHUTDOWN_PORT
Tomcat insists on having a port you can connect to for the sole purpose of shutting it down. Don't see an easy way to disable it; causes collisions in its out-of-the-box location of 8005, so override default here to a high-numbered port.


SUGGESTED_VERSION

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


 
Constructor Detail

TomcatServer

public TomcatServer(java.util.Map flags)


TomcatServer

public TomcatServer(Entity owner)


TomcatServer

public TomcatServer(java.util.Map flags, Entity owner)


 
Method Detail

connectSensors

@Override
public void connectSensors()


getDriverInterface

@Override
public java.lang.Class getDriverInterface()


postActivation

@Override
protected void postActivation()


 

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