1. 04 Sep, 2014 4 commits
  2. 03 Sep, 2014 10 commits
  3. 02 Sep, 2014 9 commits
  4. 01 Sep, 2014 11 commits
  5. 29 Aug, 2014 6 commits
    • Stephane Nicoll's avatar
      Reuse data source validation query in health endpoint · 53c4859a
      Stephane Nicoll authored
      This commit improves DataSourceMetadata to expose the validation
      query. This can be used by DataSourceHealthIndicator as the query
      to use instead of "guessing" which query could be applied according
      to the database type.
      
      Fixes gh-1282
      53c4859a
    • Stephane Nicoll's avatar
      Fix DataSourceMetadata location · 2694941b
      Stephane Nicoll authored
      This commit complements 3dc932db and fix the package location of
      DataSourceMetadata.
      
      Fixes gh-1013
      2694941b
    • Stephane Nicoll's avatar
      DataSource metrics · 3dc932db
      Stephane Nicoll authored
      This commit adds an abstraction that provides a standard manner to
      retrieve various metadata that are shared by most data sources.
      
      DataSourceMetadata is implemented by the three data source
      implementations that boot supports out-of-the-box: Tomcat, Hikari and
      Commons dbcp.
      
      This abstraction is used to provide two additional metrics per data
      source defined in the application: the number of allocated
      connection(s) (.active) and the current usage of the connection pool
      (.usage).
      
      All such metrics share the 'datasource.' prefix. The prefix is further
      qualified for each data source:
      
      * If the data source is the primary data source (that is either the
        only available data source or the one flagged @Primary amongst the
        existing ones), the prefix is "datasource.primary"
      * If the data source bean name ends with "dataSource", the prefix is
        the name of the bean without it (i.e. batchDataSource becomes batch)
      * In all other cases, the name of the bean is used
      
      It is possible to override part or all of those defaults by
      registering a bean with a customized version of
      DataSourcePublicMetrics.
      
      Additional DataSourceMetadata implementations for other data source
      types can be added very easily, check
      DataourceMetadataProvidersConfiguration for more details.
      
      Fixes gh-1013
      3dc932db
    • Stephane Nicoll's avatar
      Avoid duplicate script · 85c95744
      Stephane Nicoll authored
      This commit avoids a script duplication: the integration test runs the
      sample instead of a copy of it in the repro directory.
      
      Also switched the sample from ActiveMQ to HornetQ as #323 revealed
      some locking on CI. Hopefully that should fix it as HornetQ is non
      persistent and can be embedded several times in the same VM.
      
      Fixes gh-1456
      85c95744
    • Phillip Webb's avatar
      1.Z -> 1.2 · 0dc389f5
      Phillip Webb authored
      0dc389f5
    • Phillip Webb's avatar
      505795d6