Brooklyn

brooklyn.demo
[Java] Class CumulusRDFApplication

java.lang.Object
  brooklyn.entity.basic.AbstractEntity
      brooklyn.entity.basic.AbstractApplication
          brooklyn.demo.CumulusRDFApplication

@Catalog(name="Cumulus RDF Application", description="CumulusRDF Application on a Tomcat server using a multi-region Cassandra fabric")
public class CumulusRDFApplication
extends AbstractApplication

CumulusRDF application with Cassandra cluster.


Field Summary
static ConfigKey CASSANDRA_CLUSTER_SIZE

static ConfigKey CASSANDRA_THRIFT_PORT

static ConfigKey CUMULUS_RDF_CONFIG_URL

static java.lang.String DEFAULT_LOCATIONS

static ConfigKey MULTI_REGION_FABRIC

 
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
 
Method Summary
void init()

Create the application entities:

  • A CassandraFabric of CassandraClusters containing CassandraNodes
  • A TomcatServer

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

void start(java.util.Collection locations)

Controls the startup locations for the webapp and the cassandra fabric.

 
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

CASSANDRA_CLUSTER_SIZE

@CatalogConfig(label="Cassandra Cluster Size", priority=1)
public static final ConfigKey CASSANDRA_CLUSTER_SIZE


CASSANDRA_THRIFT_PORT

@CatalogConfig(label="Cassandra Thrift Port", priority=1)
public static final ConfigKey CASSANDRA_THRIFT_PORT


CUMULUS_RDF_CONFIG_URL

@CatalogConfig(label="Cumulus Configuration File (URL)", priority=1)
public static final ConfigKey CUMULUS_RDF_CONFIG_URL


DEFAULT_LOCATIONS

public static final java.lang.String DEFAULT_LOCATIONS


MULTI_REGION_FABRIC

@CatalogConfig(label="Multi-region Fabric", priority=1)
public static final ConfigKey MULTI_REGION_FABRIC


 
Method Detail

init

@Override
public void init()
Create the application entities:


main

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


start

try {
public void start(java.util.Collection locations)
Controls the startup locations for the webapp and the cassandra fabric.
See Also:
AbstractApplication#start(Collection)#start(Collection)


 

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