All Downloads are FREE. Search and download functionalities are using the official Maven repository.

brooklyn.entity.webapp.DynamicWebAppFabric Maven / Gradle / Ivy

package brooklyn.entity.webapp;

import brooklyn.entity.group.DynamicFabric;
import brooklyn.entity.proxying.ImplementedBy;
import brooklyn.event.AttributeSensor;
import brooklyn.event.basic.BasicAttributeSensor;

/**
 * DynamicWebAppFabric provide a fabric of clusters, aggregating the entity attributes.  Currently totals and averages:
 * 
    *
  • Entity request counts
  • *
  • Entity error counts
  • *
  • Requests per second
  • *
  • Entity processing time
  • *
*/ @ImplementedBy(DynamicWebAppFabricImpl.class) public interface DynamicWebAppFabric extends DynamicFabric, WebAppService { public static final AttributeSensor REQUEST_COUNT_PER_NODE = new BasicAttributeSensor( Double.class, "webapp.reqs.total.perNode", "Fabric entity request average"); public static final AttributeSensor ERROR_COUNT_PER_NODE = new BasicAttributeSensor( Integer.class, "webapp.reqs.errors.perNode", "Fabric entity request error average"); public static final AttributeSensor REQUESTS_PER_SECOND_LAST_PER_NODE = new BasicAttributeSensor( Double.class, "webapp.reqs.perSec.last.perNode", "Reqs/sec (last datapoint) averaged over all nodes"); public static final AttributeSensor REQUESTS_PER_SECOND_IN_WINDOW_PER_NODE = new BasicAttributeSensor( Double.class, "webapp.reqs.perSec.windowed.perNode", "Reqs/sec (over time window) averaged over all nodes"); public static final AttributeSensor TOTAL_PROCESSING_TIME_PER_NODE = new BasicAttributeSensor( Integer.class, "webapp.reqs.processingTime.perNode", "Total processing time per node"); }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy