Brooklyn

brooklyn.extras.whirr
[Java] Class WebClusterWithHadoopExample

java.lang.Object
  brooklyn.entity.basic.AbstractEntity
      brooklyn.entity.basic.AbstractApplication
          brooklyn.extras.whirr.WebClusterWithHadoopExample
All Implemented Interfaces:
StartableApplication

public class WebClusterWithHadoopExample
extends AbstractApplication

Starts hadoop and a webapp using hadoop in the location supplied (just one location), configuring the webapp to connect to hadoop


Nested Class Summary
static class WebClusterWithHadoopExample.PrepVmsForHadoop

 
Field Summary
static java.lang.String WAR_PATH

 
Fields inherited from class AbstractApplication
log
 
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
WebClusterWithHadoopExample()

 
Method Summary
void init()

static void main(java.lang.String[] argv)

void start(java.util.Collection locations)

 
Methods inherited from class AbstractApplication
getApplication, init, onManagementStopped, postStart, preStart, restart, setApplication, setParent, start, stop
 
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

WAR_PATH

public static final java.lang.String WAR_PATH


 
Constructor Detail

WebClusterWithHadoopExample

public WebClusterWithHadoopExample()


 
Method Detail

init

.configure("size", 2)
public void init()


main

public static void main(java.lang.String[] argv)


start

log.debug("started "+this+", now starting policy");
public void start(java.util.Collection locations)


 

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