Remote trailing whitespace

pull/1209/head
Phillip Webb 11 years ago
parent 20766078d0
commit fa88c481a5

@ -34,7 +34,7 @@ import org.springframework.util.Assert;
* Users can inject a {@link AuditEventRepository} to publish their own events or
* alternatively use Springs {@link AuthenticationEventPublisher} (usually obtained by
* implementing {@link ApplicationEventPublisherAware}).
*
*
* @author Dave Syer
* @see AuditEventRepository
*/

@ -21,7 +21,7 @@ import java.util.List;
/**
* Repository for {@link AuditEvent}s.
*
*
* @author Dave Syer
*/
public interface AuditEventRepository {

@ -25,7 +25,7 @@ import java.util.Map;
/**
* In-memory {@link AuditEventRepository} implementation.
*
*
* @author Dave Syer
*/
public class InMemoryAuditEventRepository implements AuditEventRepository {

@ -25,7 +25,7 @@ import org.springframework.util.Assert;
/**
* Spring {@link ApplicationEvent} to encapsulate {@link AuditEvent}s.
*
*
* @author Dave Syer
*/
public class AuditApplicationEvent extends ApplicationEvent {

@ -25,7 +25,7 @@ import org.springframework.context.ApplicationListener;
/**
* {@link ApplicationListener} that listens for {@link AuditEvent}s and stores them in a
* {@link AuditEventRepository}.
*
*
* @author Dave Syer
*/
public class AuditListener implements ApplicationListener<AuditApplicationEvent> {

@ -31,7 +31,7 @@ import org.springframework.context.annotation.Configuration;
/**
* {@link EnableAutoConfiguration Auto-configuration} for {@link AuditEvent}s.
*
*
* @author Dave Syer
*/
@Configuration

@ -109,7 +109,7 @@ import org.springframework.util.StringUtils;
* using the following classpath scanning pattern <code>classpath*:/commands/**</code>. To
* add different locations or override the default use
* <code>shell.command_path_patterns</code> in your application configuration.
*
*
* @author Christian Dupuis
* @see ShellProperties
*/

@ -63,7 +63,7 @@ import org.springframework.web.servlet.handler.AbstractHandlerMethodMapping;
/**
* {@link EnableAutoConfiguration Auto-configuration} for common management
* {@link Endpoint}s.
*
*
* @author Dave Syer
* @author Phillip Webb
* @author Greg Turnquist

@ -34,7 +34,7 @@ import org.springframework.util.StringUtils;
/**
* {@link EnableAutoConfiguration Auto-configuration} to enable JMX export for
* {@link Endpoint}s.
*
*
* @author Christian Dupuis
*/
@Configuration

@ -24,7 +24,7 @@ import org.springframework.util.StringUtils;
/**
* Configuration properties for JMX.
*
*
* @author Christian Dupuis
*/
@ConfigurationProperties(prefix = "endpoints.jmx")

@ -77,7 +77,7 @@ import org.springframework.web.servlet.DispatcherServlet;
* different port to {@link ServerProperties} a new child context is created, otherwise it
* is assumed that endpoint requests will be mapped and handled via an already registered
* {@link DispatcherServlet}.
*
*
* @author Dave Syer
* @author Phillip Webb
* @author Christian Dupuis

@ -51,7 +51,7 @@ import org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandl
/**
* Configuration triggered from {@link EndpointWebMvcAutoConfiguration} when a new
* {@link EmbeddedServletContainer} running on a different port is required.
*
*
* @author Dave Syer
* @see EndpointWebMvcAutoConfiguration
*/

@ -54,7 +54,7 @@ import org.springframework.data.redis.connection.RedisConnectionFactory;
/**
* {@link EnableAutoConfiguration Auto-configuration} for {@link HealthIndicator}s.
*
*
* @author Christian Dupuis
* @author Andy Wilkinson
* @since 1.1.0

@ -25,7 +25,7 @@ import org.springframework.http.HttpStatus;
/**
* Configuration properties for the {@link HealthMvcEndpoint}.
*
*
* @author Christian Dupuis
* @since 1.1.0
*/

@ -36,18 +36,18 @@ import org.springframework.context.annotation.Configuration;
/**
* {@link EnableAutoConfiguration Auto-configuration} for embedding Jolokia, a JMX-HTTP
* bridge giving an alternative to JSR-160 connectors.
*
*
* <p>
* This configuration will get automatically enabled as soon as the Jolokia
* {@link AgentServlet} is on the classpath. To disable set
* <code>endpoints.jolokia.enabled: false</code>.
*
*
* <p>
* Additional configuration parameters for Jolokia can be provided by specifying
* <code>jolokia.config.*</code> properties. See the <a
* href="http://jolokia.org">http://jolokia.org</a> web site for more information on
* supported configuration parameters.
*
*
* @author Christian Dupuis
* @author Dave Syer
*/

@ -23,7 +23,7 @@ import org.springframework.boot.context.properties.ConfigurationProperties;
/**
* Configuration properties for Jolokia.
*
*
* @author Christian Dupuis
* @author Dave Syer
*/

@ -62,12 +62,12 @@ import org.springframework.util.StringUtils;
* Many aspects of the behavior can be controller with {@link ManagementServerProperties}
* via externalized application properties (or via an bean definition of that type to set
* the defaults).
*
*
* <p>
* The framework {@link Endpoint}s (used to expose application information to operations)
* include a {@link Endpoint#isSensitive() sensitive} configuration option which will be
* used as a security hint by the filter created here.
*
*
* @author Dave Syer
*/
@Configuration

@ -29,7 +29,7 @@ import org.springframework.util.ClassUtils;
/**
* Properties for the management server (e.g. port and path settings).
*
*
* @author Dave Syer
* @see ServerProperties
*/

@ -30,7 +30,7 @@ import org.springframework.context.annotation.Configuration;
/**
* {@link EnableAutoConfiguration Auto-configuration} for the
* {@link ManagementServerProperties} bean.
*
*
* @author Dave Syer
*/
@Configuration

@ -44,7 +44,7 @@ import org.springframework.web.util.UrlPathHelper;
/**
* {@link EnableAutoConfiguration Auto-configuration} that records Servlet interactions
* with a {@link CounterService} and {@link GaugeService}.
*
*
* @author Dave Syer
* @author Phillip Webb
*/

@ -78,14 +78,14 @@ import com.codahale.metrics.MetricRegistry;
* updates from the default counter and gauge services. Alternatively you can provide your
* own counter and gauge services and wire them to whichever writer you choose.
* </p>
*
*
* @see GaugeService
* @see CounterService
* @see MetricWriter
* @see InMemoryMetricRepository
* @see CodahaleMetricWriter
* @see Exporter
*
*
* @author Dave Syer
*/
@Configuration

@ -32,7 +32,7 @@ import org.springframework.util.StringUtils;
/**
* Configuration properties for the shell subsystem.
*
*
* @author Christian Dupuis
* @author Phillip Webb
*/

@ -25,7 +25,7 @@ import org.springframework.context.annotation.Configuration;
/**
* {@link EnableAutoConfiguration Auto-configuration} for {@link TraceRepository tracing}.
*
*
* @author Dave Syer
*/
@Configuration

@ -34,7 +34,7 @@ import org.springframework.web.servlet.DispatcherServlet;
/**
* {@link EnableAutoConfiguration Auto-configuration} for {@link WebRequestTraceFilter
* tracing}.
*
*
* @author Dave Syer
*/
@ConditionalOnClass({ Servlet.class, DispatcherServlet.class, ServletRegistration.class })

@ -21,7 +21,7 @@ import javax.validation.constraints.Pattern;
/**
* Abstract base for {@link Endpoint} implementations.
*
*
* @author Phillip Webb
* @author Christian Dupuis
*/

@ -38,7 +38,7 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder;
/**
* {@link Endpoint} to expose the {@link ConditionEvaluationReport}.
*
*
* @author Greg Turnquist
* @author Phillip Webb
* @author Dave Syer

@ -32,7 +32,7 @@ import org.springframework.core.env.Environment;
* the {@link LiveBeansView#MBEAN_DOMAIN_PROPERTY_NAME} then all application contexts in
* the JVM will be shown (and the corresponding MBeans will be registered per the standard
* behavior of LiveBeansView). Otherwise only the current application context.
*
*
* @author Dave Syer
*/
@ConfigurationProperties(prefix = "endpoints.beans", ignoreUnknownFields = false)

@ -50,13 +50,13 @@ import com.fasterxml.jackson.databind.ser.impl.SimpleFilterProvider;
/**
* {@link Endpoint} to expose application properties from {@link ConfigurationProperties}
* annotated beans.
*
*
* <p>
* To protect sensitive information from being exposed, certain property values are masked
* if their names end with a set of configurable values (default "password" and "secret").
* Configure property names by using <code>endpoints.configprops.keys_to_sanitize</code>
* in your Spring Boot application configuration.
*
*
* @author Christian Dupuis
* @author Dave Syer
*/

@ -25,7 +25,7 @@ import org.springframework.boot.context.properties.ConfigurationProperties;
/**
* {@link Endpoint} to expose thread info.
*
*
* @author Dave Syer
*/
@ConfigurationProperties(prefix = "endpoints.dump", ignoreUnknownFields = false)

@ -19,7 +19,7 @@ package org.springframework.boot.actuate.endpoint;
/**
* An endpoint that can be used to expose useful information to operations. Usually
* exposed via Spring MVC but could also be exposed using some other technique.
*
*
* @author Phillip Webb
* @author Dave Syer
* @author Christian Dupuis

@ -37,7 +37,7 @@ import org.springframework.util.ReflectionUtils;
/**
* {@link Endpoint} to expose {@link ConfigurableEnvironment environment} information.
*
*
* @author Dave Syer
* @author Phillip Webb
* @author Christian Dupuis

@ -27,7 +27,7 @@ import org.springframework.util.Assert;
/**
* {@link Endpoint} to expose application health.
*
*
* @author Dave Syer
* @author Christian Dupuis
*/

@ -25,7 +25,7 @@ import org.springframework.util.Assert;
/**
* {@link Endpoint} to expose arbitrary application information.
*
*
* @author Dave Syer
*/
@ConfigurationProperties(prefix = "endpoints.info", ignoreUnknownFields = false)
@ -35,7 +35,7 @@ public class InfoEndpoint extends AbstractEndpoint<Map<String, Object>> {
/**
* Create a new {@link InfoEndpoint} instance.
*
*
* @param info the info to expose
*/
public InfoEndpoint(Map<String, ? extends Object> info) {

@ -25,7 +25,7 @@ import org.springframework.util.Assert;
/**
* {@link Endpoint} to expose {@link PublicMetrics}.
*
*
* @author Dave Syer
*/
@ConfigurationProperties(prefix = "endpoints.metrics", ignoreUnknownFields = false)
@ -35,7 +35,7 @@ public class MetricsEndpoint extends AbstractEndpoint<Map<String, Object>> {
/**
* Create a new {@link MetricsEndpoint} instance.
*
*
* @param metrics the metrics to expose
*/
public MetricsEndpoint(PublicMetrics metrics) {

@ -22,7 +22,7 @@ import org.springframework.boot.actuate.metrics.Metric;
/**
* Interface to expose specific {@link Metric}s via a {@link MetricsEndpoint}.
*
*
* @author Dave Syer
* @see VanillaPublicMetrics
*/

@ -33,7 +33,7 @@ import org.springframework.web.servlet.handler.AbstractUrlHandlerMapping;
/**
* {@link Endpoint} to expose Spring MVC mappings.
*
*
* @author Dave Syer
*/
@ConfigurationProperties(prefix = "endpoints.mappings", ignoreUnknownFields = false)

@ -27,7 +27,7 @@ import org.springframework.context.ConfigurableApplicationContext;
/**
* {@link Endpoint} to shutdown the {@link ApplicationContext}.
*
*
* @author Dave Syer
* @author Christian Dupuis
*/

@ -25,7 +25,7 @@ import org.springframework.util.Assert;
/**
* {@link Endpoint} to expose {@link Trace} information.
*
*
* @author Dave Syer
*/
@ConfigurationProperties(prefix = "endpoints.trace", ignoreUnknownFields = false)

@ -33,7 +33,7 @@ import org.springframework.util.StringUtils;
/**
* Default implementation of {@link PublicMetrics} that exposes all metrics from a
* {@link MetricReader} along with memory information.
*
*
* @author Dave Syer
* @author Christian Dupuis
*/

@ -23,7 +23,7 @@ import org.springframework.jmx.export.annotation.ManagedResource;
/**
* Simple wrapper around {@link Endpoint} implementations that provide actuator data of
* some sort.
*
*
* @author Christian Dupuis
*/
@ManagedResource

@ -29,7 +29,7 @@ import com.fasterxml.jackson.databind.ObjectMapper;
/**
* Simple wrapper around {@link Endpoint} implementations to enable JMX export.
*
*
* @author Christian Dupuis
*/
@ManagedResource

@ -53,7 +53,7 @@ import org.springframework.util.ObjectUtils;
* {@link ApplicationListener} that registers all known {@link Endpoint}s with an
* {@link MBeanServer} using the {@link MBeanExporter} located from the application
* context.
*
*
* @author Christian Dupuis
*/
public class EndpointMBeanExporter extends MBeanExporter implements SmartLifecycle,

@ -23,7 +23,7 @@ import org.springframework.jmx.export.annotation.ManagedResource;
/**
* Special endpoint wrapper for {@link ShutdownEndpoint}.
*
*
* @author Christian Dupuis
*/
@ManagedResource

@ -36,13 +36,13 @@ import org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandl
* The semantics of {@code @RequestMapping} should be identical to a normal
* {@code @Controller}, but the endpoints should not be annotated as {@code @Controller}
* (otherwise they will be mapped by the normal MVC mechanisms).
*
*
* <p>
* One of the aims of the mapping is to support endpoints that work as HTTP endpoints but
* can still provide useful service interfaces when there is no HTTP server (and no Spring
* MVC on the classpath). Note that any endpoints having method signaturess will break in
* a non-servlet environment.
*
*
* @author Phillip Webb
* @author Christian Dupuis
* @author Dave Syer

@ -29,7 +29,7 @@ import org.springframework.web.bind.annotation.ResponseBody;
/**
* Adapter class to expose {@link Endpoint}s as {@link MvcEndpoint}s.
*
*
* @author Dave Syer
*/
public class EndpointMvcAdapter implements MvcEndpoint {

@ -28,7 +28,7 @@ import org.springframework.web.bind.annotation.ResponseStatus;
/**
* Adapter to expose {@link EnvironmentEndpoint} as an {@link MvcEndpoint}.
*
*
* @author Dave Syer
* @author Christian Dupuis
*/

@ -31,7 +31,7 @@ import org.springframework.web.bind.annotation.ResponseBody;
/**
* Adapter to expose {@link HealthEndpoint} as an {@link MvcEndpoint}.
*
*
* @author Christian Dupuis
* @since 1.1.0
*/

@ -40,7 +40,7 @@ import org.springframework.web.util.UrlPathHelper;
/**
* {@link MvcEndpoint} to expose Jolokia.
*
*
* @author Christian Dupuis
*/
@ConfigurationProperties(prefix = "endpoints.jolokia", ignoreUnknownFields = false)

@ -31,7 +31,7 @@ import org.springframework.web.context.request.RequestContextHolder;
* Special {@link MvcEndpoint} for handling "/error" path when the management servlet is
* in a child context. The regular {@link ErrorController} should be available there but
* because of the way the handler mappings are set up it will not be detected.
*
*
* @author Dave Syer
*/
@ConfigurationProperties(prefix = "error")

@ -26,7 +26,7 @@ import org.springframework.web.bind.annotation.ResponseStatus;
/**
* Adapter to expose {@link MetricsEndpoint} as an {@link MvcEndpoint}.
*
*
* @author Dave Syer
*/
public class MetricsMvcEndpoint extends EndpointMvcAdapter {

@ -24,7 +24,7 @@ import org.springframework.boot.actuate.endpoint.Endpoint;
* use <code>@Controller</code> or <code>@RequestMapping</code> at the type level (since
* that would lead to a double mapping of paths, once by the regular MVC handler mappings
* and once by the {@link EndpointHandlerMapping}).
*
*
* @author Dave Syer
*/
public interface MvcEndpoint {

@ -32,7 +32,7 @@ import org.springframework.stereotype.Component;
* A registry for all {@link MvcEndpoint} beans, and a factory for a set of generic ones
* wrapping existing {@link Endpoint} instances that are not already exposed as MVC
* endpoints.
*
*
* @author Dave Syer
*/
@Component

@ -28,7 +28,7 @@ import org.springframework.web.bind.annotation.ResponseBody;
/**
* Adapter to expose {@link ShutdownEndpoint} as an {@link MvcEndpoint}.
*
*
* @author Dave Syer
*/
public class ShutdownMvcEndpoint extends EndpointMvcAdapter {

@ -24,7 +24,7 @@ import java.util.Map;
/**
* Base {@link HealthAggregator} implementation to allow subclasses to focus on
* aggregating the {@link Status} instances and not deal with contextual details etc.
*
*
* @author Christian Dupuis
* @since 1.1.0
*/

@ -25,7 +25,7 @@ import org.springframework.boot.actuate.health.Health.Builder;
* This implementation is only suitable if an {@link Exception} raised from
* {@link #doHealthCheck(org.springframework.boot.actuate.health.Health.Builder)} should
* create a {@link Status#DOWN} health status.
*
*
* @author Christian Dupuis
* @since 1.1.0
*/

@ -23,7 +23,7 @@ import org.springframework.util.Assert;
/**
* {@link HealthIndicator} that returns health indications from all registered delegates.
*
*
* @author Tyler J. Frederick
* @author Phillip Webb
* @author Christian Dupuis

@ -31,7 +31,7 @@ import org.springframework.util.StringUtils;
/**
* {@link HealthIndicator} that tests the status of a {@link DataSource} and optionally
* runs a test query.
*
*
* @author Dave Syer
* @author Christian Dupuis
* @since 1.1.0

@ -35,7 +35,7 @@ import com.fasterxml.jackson.annotation.JsonUnwrapped;
* <p>
* {@link Health} instances can be created by using {@link Builder}'s fluent API. Typical
* usage in a {@link HealthIndicator} would be:
*
*
* <pre class="code">
* try {
* // do some test to determine state of component
@ -45,7 +45,7 @@ import com.fasterxml.jackson.annotation.JsonUnwrapped;
* return new Health.Builder().down(ex).build();
* }
* </pre>
*
*
* @author Christian Dupuis
* @author Phillip Webb
* @since 1.1.0

@ -30,7 +30,7 @@ import java.util.Map;
* It is possible to add more complex {@link Status} types to the system. In that case
* either the {@link OrderedHealthAggregator} needs to be properly configured or users
* need to register a custom {@link HealthAggregator} as bean.
*
*
* @author Christian Dupuis
* @since 1.1.0
*/

@ -18,7 +18,7 @@ package org.springframework.boot.actuate.health;
/**
* Strategy interface used to provide an indication of application health.
*
*
* @author Dave Syer
* @see VanillaHealthIndicator
*/

@ -24,7 +24,7 @@ import com.mongodb.CommandResult;
/**
* Simple implementation of a {@link HealthIndicator} returning status information for
* Mongo data stores.
*
*
* @author Christian Dupuis
* @since 1.1.0
*/

@ -29,7 +29,7 @@ import org.springframework.util.Assert;
* <p>
* If a different order is required or a new {@link Status} type will be used, the order
* can be set by calling {@link #setStatusOrder(List)}.
*
*
* @author Christian Dupuis
* @since 1.1.0
*/

@ -27,7 +27,7 @@ import com.rabbitmq.client.Channel;
/**
* Simple implementation of a {@link HealthIndicator} returning status information for the
* RabbitMQ messaging system.
*
*
* @author Christian Dupuis
* @since 1.1.0
*/

@ -26,7 +26,7 @@ import org.springframework.util.Assert;
/**
* Simple implementation of a {@link HealthIndicator} returning status information for
* Redis data stores.
*
*
* @author Christian Dupuis
* @since 1.1.0
*/

@ -20,7 +20,7 @@ import org.apache.solr.client.solrj.SolrServer;
/**
* {@link HealthIndicator} for Apache Solr.
*
*
* @author Andy Wilkinson
* @since 1.1.0
*/

@ -30,7 +30,7 @@ import com.fasterxml.jackson.annotation.JsonProperty;
* {@link #DOWN} or {@link #OUT_OF_SERVICE}.
* <p>
* Custom states can also be created and used throughout the Spring Boot Health subsystem.
*
*
* @author Christian Dupuis
* @since 1.1.0
*/

@ -18,7 +18,7 @@ package org.springframework.boot.actuate.health;
/**
* Default implementation of {@link HealthIndicator} that returns {@link Status#UP}.
*
*
* @author Dave Syer
* @author Christian Dupuis
* @see Status#UP

@ -18,7 +18,7 @@ package org.springframework.boot.actuate.metrics;
/**
* A service that can be used to increment, decrement and reset a named counter value.
*
*
* @author Dave Syer
*/
public interface CounterService {

@ -24,7 +24,7 @@ package org.springframework.boot.actuate.metrics;
* would go to a backend that keeps a histogram of recent values for comparison purposes.
* Or it could be a simple measurement of a sensor value (like a temperature reading) to
* be passed on to a monitoring system in its raw form.
*
*
* @author Dave Syer
*/
public interface GaugeService {

@ -25,7 +25,7 @@ import org.springframework.util.ObjectUtils;
* Immutable class that can be used to hold any arbitrary system measurement value (a
* named numeric value with a timestamp). For example a metric might record the number of
* active connections to a server, or the temperature of a meeting room.
*
*
* @author Dave Syer
*/
public class Metric<T extends Number> {

@ -29,7 +29,7 @@ import org.springframework.util.StringUtils;
* Base class for metric exporters that have common features, principally a prefix for
* exported metrics and filtering by timestamp (so only new values are included in the
* export).
*
*
* @author Dave Syer
*/
public abstract class AbstractMetricExporter implements Exporter {

@ -23,7 +23,7 @@ package org.springframework.boot.actuate.metrics.export;
* an export operation might be periodic or even driven, but it remains outside the scope
* of this interface. You might for instance create an instance of an Exporter and trigger
* it using a {@code @Scheduled} annotation in a Spring ApplicationContext.
*
*
* @author Dave Syer
*/
public interface Exporter {

@ -25,7 +25,7 @@ import org.springframework.boot.actuate.metrics.writer.MetricWriter;
/**
* {@link Exporter} that "exports" by copying metric data from a source
* {@link MetricReader} to a destination {@link MetricWriter}.
*
*
* @author Dave Syer
*/
public class MetricCopyExporter extends AbstractMetricExporter {

@ -28,7 +28,7 @@ import org.springframework.boot.actuate.metrics.writer.PrefixMetricWriter;
/**
* A convenient exporter for a group of metrics from a {@link PrefixMetricReader}. Exports
* all metrics whose name starts with a prefix (or all metrics if the prefix is empty).
*
*
* @author Dave Syer
*/
public class PrefixMetricGroupExporter extends AbstractMetricExporter {

@ -36,7 +36,7 @@ import org.springframework.boot.actuate.metrics.writer.PrefixMetricWriter;
* {@link MetricWriter} provided is a {@link MultiMetricRepository} then the values for a
* gauge will be stored as a group, and hence will be retrievable from the repository in a
* single query (or optionally individually).
*
*
* @author Dave Syer
*/
public class RichGaugeExporter extends AbstractMetricExporter {

@ -23,7 +23,7 @@ import org.springframework.boot.actuate.metrics.Metric;
/**
* Composite implementation of {@link MetricReader}.
*
*
* @author Dave Syer
*/
public class CompositeMetricReader implements MetricReader {

@ -20,7 +20,7 @@ import org.springframework.boot.actuate.metrics.Metric;
/**
* A simple reader interface used to interrogate {@link Metric}s.
*
*
* @author Dave Syer
*/
public interface MetricReader {

@ -20,7 +20,7 @@ import org.springframework.boot.actuate.metrics.Metric;
/**
* Interface for extracting metrics as a group whose name starts with a prefix.
*
*
* @author Dave Syer
*/
public interface PrefixMetricReader {

@ -31,7 +31,7 @@ import org.springframework.boot.actuate.metrics.writer.Delta;
/**
* {@link MetricRepository} and {@link MultiMetricRepository} implementation that stores
* metrics in memory.
*
*
* @author Dave Syer
*/
public class InMemoryMetricRepository implements MetricRepository, MultiMetricRepository,

@ -21,7 +21,7 @@ import org.springframework.boot.actuate.metrics.writer.MetricWriter;
/**
* Convenient combination of reader and writer concerns.
*
*
* @author Dave Syer
*/
public interface MetricRepository extends MetricReader, MetricWriter {

@ -22,7 +22,7 @@ import org.springframework.boot.actuate.metrics.writer.PrefixMetricWriter;
/**
* A repository for metrics that allows efficient storage and retrieval of groups of
* metrics with a common name prefix (their group name).
*
*
* @author Dave Syer
*/
public interface MultiMetricRepository extends PrefixMetricReader, PrefixMetricWriter {

@ -37,7 +37,7 @@ import org.springframework.util.Assert;
* multiple metrics repositories all point at the same instance of Redis, it may be useful
* to change the prefix to be unique (but not if you want them to contribute to the same
* metrics).
*
*
* @author Dave Syer
*/
public class RedisMetricRepository implements MetricRepository {

@ -36,7 +36,7 @@ import org.springframework.util.Assert;
* stored as zset values and the timestamps as regular values, both against a key composed
* of the group name prefixed with a constant prefix (default "spring.groups."). The group
* names are stored as a zset under "keys." + <code>[prefix]</code>.
*
*
* @author Dave Syer
*/
public class RedisMultiMetricRepository implements MultiMetricRepository {

@ -25,7 +25,7 @@ import org.springframework.data.redis.serializer.StringRedisSerializer;
/**
* General Utils for working with Redis.
*
*
* @author Luke Taylor
*/
class RedisUtils {

@ -27,7 +27,7 @@ import org.springframework.boot.actuate.metrics.writer.MetricWriter;
* set a metric value (using {@link MetricWriter#set(Metric)}) it is used to update a rich
* gauge (increment is a no-op). Gauge values can then be read out using the reader
* operations.
*
*
* @author Dave Syer
*/
public class InMemoryRichGaugeRepository implements RichGaugeRepository {

@ -27,7 +27,7 @@ import org.springframework.boot.actuate.metrics.repository.MultiMetricRepository
* {@link MultiMetricRepository} where the group name is the RichGauge name. The format
* used matches that in he RichGaugeExporter, so this reader can be used on a store that
* has been populated using that exporter.
*
*
* @author Dave Syer
* @since 1.1.0
*/

@ -26,7 +26,7 @@ import org.springframework.util.Assert;
* is set, an exponential moving average will be calculated as defined in this <a
* href="http://www.itl.nist.gov/div898/handbook/pmc/section4/pmc431.htm">NIST
* document</a>.
*
*
* @author Luke Taylor
*/
public final class RichGauge {
@ -94,7 +94,7 @@ public final class RichGauge {
/**
* Either an exponential weighted moving average or a simple mean, respectively,
* depending on whether the weight 'alpha' has been set for this gauge.
*
*
* @return The average over all the accumulated values
*/
public double getAverage() {

@ -18,7 +18,7 @@ package org.springframework.boot.actuate.metrics.rich;
/**
* A basic set of read operations for {@link RichGauge} instances.
*
*
* @author Dave Syer
*/
public interface RichGaugeReader {

@ -20,7 +20,7 @@ import org.springframework.boot.actuate.metrics.writer.MetricWriter;
/**
* Convenient combination of reader and writer concerns for {@link RichGauge} instances.
*
*
* @author Dave Syer
*/
public interface RichGaugeRepository extends RichGaugeReader, MetricWriter {

@ -26,7 +26,7 @@ import org.springframework.util.ConcurrentReferenceHashMap;
/**
* Repository utility that stores stuff in memory with period-separated String keys.
*
*
* @author Dave Syer
*/
public class SimpleInMemoryRepository<T> {

@ -32,7 +32,7 @@ import com.codahale.metrics.Timer;
/**
* A {@link MetricWriter} that send data to a Codahale {@link MetricRegistry} based on a
* naming convention:
*
*
* <ul>
* <li>Updates to {@link #increment(Delta)} with names in "meter.*" are treated as
* {@link Meter} events</li>
@ -44,7 +44,7 @@ import com.codahale.metrics.Timer;
* <li>Other metrics are treated as simple {@link Gauge} values (single valued
* measurements of type double)</li>
* </ul>
*
*
* @author Dave Syer
*/
public class CodahaleMetricWriter implements MetricWriter {

@ -24,7 +24,7 @@ import org.springframework.boot.actuate.metrics.Metric;
/**
* Composite implementation of {@link MetricWriter} that just sends its input to all of
* the delegates that have been registered.
*
*
* @author Dave Syer
*/
public class CompositeMetricWriter implements MetricWriter {

@ -20,7 +20,7 @@ import org.springframework.boot.actuate.metrics.CounterService;
/**
* Default implementation of {@link CounterService}.
*
*
* @author Dave Syer
*/
public class DefaultCounterService implements CounterService {

@ -21,7 +21,7 @@ import org.springframework.boot.actuate.metrics.Metric;
/**
* Default implementation of {@link GaugeService}.
*
*
* @author Dave Syer
*/
public class DefaultGaugeService implements GaugeService {

@ -22,7 +22,7 @@ import org.springframework.boot.actuate.metrics.Metric;
/**
* A value object representing an increment in a metric value (usually a counter).
*
*
* @author Dave Syer
*/
public class Delta<T extends Number> extends Metric<T> {

@ -24,7 +24,7 @@ import org.springframework.messaging.support.MessageBuilder;
* A {@link MetricWriter} that publishes the metric updates on a {@link MessageChannel}.
* The messages have the writer input ({@link Delta} or {@link Metric}) as payload, and
* carry an additional header "metricName" with the name of the metric in it.
*
*
* @author Dave Syer
*/
public class MessageChannelMetricWriter implements MetricWriter {

@ -20,7 +20,7 @@ import org.springframework.boot.actuate.metrics.Metric;
/**
* Basic strategy for write operations on {@link Metric} data.
*
*
* @author Dave Syer
*/
public interface MetricWriter {

@ -24,7 +24,7 @@ import org.springframework.messaging.MessagingException;
/**
* A {@link MessageHandler} that updates {@link Metric} values through a
* {@link MetricWriter}.
*
*
* @author Dave Syer
*/
public final class MetricWriterMessageHandler implements MessageHandler {

@ -23,7 +23,7 @@ import org.springframework.boot.actuate.metrics.Metric;
/**
* A writer for metrics that allows efficient storage of groups of metrics with a common
* name prefix (their group name).
*
*
* @author Dave Syer
* @since 1.1.0
*/

@ -32,7 +32,7 @@ import org.springframework.util.ClassUtils;
/**
* {@link ApplicationListener} expose Spring Security {@link AbstractAuthenticationEvent
* authentication events} as {@link AuditEvent}s.
*
*
* @author Dave Syer
*/
public class AuthenticationAuditListener implements

Some files were not shown because too many files have changed in this diff Show More

Loading…
Cancel
Save