[Hawkular-commits] [hawkular/hawkular-metrics] 83c1d7: Flag (present => "true", absent => "false") and en...

jsanda jsanda at redhat.com
Tue Jun 9 09:14:56 EDT 2015


  Branch: refs/heads/master
  Home:   https://github.com/hawkular/hawkular-metrics
  Commit: 83c1d754cdf68757c54cb89934b177c0ba785417
      https://github.com/hawkular/hawkular-metrics/commit/83c1d754cdf68757c54cb89934b177c0ba785417
  Author: Thomas Segismont <tsegismo at redhat.com>
  Date:   2015-06-05 (Fri, 05 Jun 2015)

  Changed paths:
    M api/metrics-api-jaxrs/src/main/java/org/hawkular/metrics/api/jaxrs/config/ConfigurableProducer.java
    M api/metrics-api-jaxrs/src/main/java/org/hawkular/metrics/api/jaxrs/config/ConfigurationKey.java
    R api/metrics-api-jaxrs/src/main/resources/META-INF/metrics.conf
    M api/metrics-api-jaxrs/src/test/java/org/hawkular/metrics/api/jaxrs/config/ConfigurableProducerTest.java

  Log Message:
  -----------
  Flag (present => "true", absent => "false") and environment variable support to the config package.

The metrics.conf bundled file is no longer needed as default values are now included in the ConfigurationKey annotation.

Configuration source priority is the following:
1. system property
2. environment variable
3. metrics.conf external file
4. default value


  Commit: ecf6828583b1321635eb21a98642a56d0617ba9e
      https://github.com/hawkular/hawkular-metrics/commit/ecf6828583b1321635eb21a98642a56d0617ba9e
  Author: Thomas Segismont <tsegismo at redhat.com>
  Date:   2015-06-05 (Fri, 05 Jun 2015)

  Changed paths:
    M api/metrics-api-jaxrs/src/main/java/org/hawkular/metrics/api/jaxrs/util/Eager.java

  Log Message:
  -----------
  @Eager shouldn't be a qualifier otherwise injection points without the annotation cannot be satisfied.

Note that javax.ejb.Startup is not a qualifier but a simple annotation.

By the way, I don't think other projects would be interested in using the extension as they all rely on JavaEE 7 and not just JAX-RS and Servlet.


  Commit: 937d0b89e17c5c38c22b146c5dc1281db42525d8
      https://github.com/hawkular/hawkular-metrics/commit/937d0b89e17c5c38c22b146c5dc1281db42525d8
  Author: Thomas Segismont <tsegismo at redhat.com>
  Date:   2015-06-05 (Fri, 05 Jun 2015)

  Changed paths:
    M core/metrics-core-api/src/main/java/org/hawkular/metrics/core/api/MetricsService.java
    M core/metrics-core-impl/src/main/java/org/hawkular/metrics/core/impl/MetricsServiceImpl.java

  Log Message:
  -----------
  Remove C* driver references and lifecycle methods from MetricsService

Even if we provide a C* backend only, the service interface should not expose such implementation details.


  Commit: a7dfacfbc1f4b3b770b0d6d0c3095fa678ac9908
      https://github.com/hawkular/hawkular-metrics/commit/a7dfacfbc1f4b3b770b0d6d0c3095fa678ac9908
  Author: Thomas Segismont <tsegismo at redhat.com>
  Date:   2015-06-05 (Fri, 05 Jun 2015)

  Changed paths:
    A api/metrics-api-jaxrs/src/main/java/org/hawkular/metrics/api/jaxrs/MetricsServiceLifecycle.java
    R api/metrics-api-jaxrs/src/main/java/org/hawkular/metrics/api/jaxrs/MetricsServiceProducer.java
    R core/metrics-core-impl/src/main/java/org/hawkular/metrics/core/impl/CassandraSession.java

  Log Message:
  -----------
  Manage MetricsService lifecycle in a single class.

C* session creation and MetricsService initialization happen here.
The service is started asynchronously and all lifecycle operations happen in a single thread to avoid synchronization issues.


  Commit: 67c38e9c1e5a5d7d15aaec51d3e4aa623b87fd14
      https://github.com/hawkular/hawkular-metrics/commit/67c38e9c1e5a5d7d15aaec51d3e4aa623b87fd14
  Author: Thomas Segismont <tsegismo at redhat.com>
  Date:   2015-06-05 (Fri, 05 Jun 2015)

  Changed paths:
    M api/metrics-api-jaxrs/src/main/java/org/hawkular/metrics/api/jaxrs/filter/MetricsServiceStateFilter.java
    M api/metrics-api-jaxrs/src/main/java/org/hawkular/metrics/api/jaxrs/handler/StatusHandler.java

  Log Message:
  -----------
  State value now comes from the MetricsServiceLifecycle bean.


  Commit: 2178ac9cb760f66fba5dd5859e5607fbcb978a49
      https://github.com/hawkular/hawkular-metrics/commit/2178ac9cb760f66fba5dd5859e5607fbcb978a49
  Author: Thomas Segismont <tsegismo at redhat.com>
  Date:   2015-06-05 (Fri, 05 Jun 2015)

  Changed paths:
    M api/metrics-api-jaxrs/src/main/java/org/hawkular/metrics/api/jaxrs/MetricsServiceLifecycle.java
    M api/metrics-api-jaxrs/src/main/java/org/hawkular/metrics/api/jaxrs/config/ConfigurationKey.java
    M clients/ptranslator/pom.xml
    M rest-tests/pom.xml
    M rest-tests/src/test/groovy/org/hawkular/metrics/rest/RESTTest.groovy

  Log Message:
  -----------
  New flag to prevent Wildfly to finish the deployment before MetricsService is started

After a minute, we let the deployment finish even if the metrics service is not started yet.
Initialization process will continue in the background, until the deployment is stopped.

rest-tests and ptrans itests setups make use of the new flag to avoid failing the build if
the metrics service takes some time to get ready.


  Commit: 7175b33b7bb034831046585c53c410a13b8b9b24
      https://github.com/hawkular/hawkular-metrics/commit/7175b33b7bb034831046585c53c410a13b8b9b24
  Author: Thomas Segismont <tsegismo at redhat.com>
  Date:   2015-06-05 (Fri, 05 Jun 2015)

  Changed paths:
    M clients/ptranslator/pom.xml
    M rest-tests/pom.xml

  Log Message:
  -----------
  Minor: resetdb is now a flag


  Commit: 022d6bfbe74ebecb8bdaeffce5d9e24ed07eaf96
      https://github.com/hawkular/hawkular-metrics/commit/022d6bfbe74ebecb8bdaeffce5d9e24ed07eaf96
  Author: Thomas Segismont <tsegismo at redhat.com>
  Date:   2015-06-05 (Fri, 05 Jun 2015)

  Changed paths:
    M clients/ptranslator/pom.xml
    M containers/hawkular-metrics-docker/src/main/docker/Dockerfile
    M rest-tests/pom.xml

  Log Message:
  -----------
  Minor: remove "hawkular-metrics.backend" where it's not needed


  Commit: 438081c6f32d301ecca29c8ef76dd434e62c9444
      https://github.com/hawkular/hawkular-metrics/commit/438081c6f32d301ecca29c8ef76dd434e62c9444
  Author: Thomas Segismont <tsegismo at redhat.com>
  Date:   2015-06-05 (Fri, 05 Jun 2015)

  Changed paths:
    M api/metrics-api-jaxrs/src/main/java/org/hawkular/metrics/api/jaxrs/MetricsServiceLifecycle.java

  Log Message:
  -----------
  Compatibility mode for "hawkular-metrics.backend=embedded_cass"


  Commit: 7ea1a4a0d33c6631ec5afc91dede2e6172c09b49
      https://github.com/hawkular/hawkular-metrics/commit/7ea1a4a0d33c6631ec5afc91dede2e6172c09b49
  Author: Thomas Segismont <tsegismo at redhat.com>
  Date:   2015-06-05 (Fri, 05 Jun 2015)

  Changed paths:
    M api/metrics-api-jaxrs/pom.xml
    M api/metrics-api-undertow/pom.xml
    M embedded-cassandra/embedded-cassandra-ear/pom.xml

  Log Message:
  -----------
  Cleanup: remove three declarations of the Wildfly plugin which have been copied/pasted but are not used.


  Commit: ea5fc370fca8b1315fb98a2d676a428c65e9e089
      https://github.com/hawkular/hawkular-metrics/commit/ea5fc370fca8b1315fb98a2d676a428c65e9e089
  Author: Thomas Segismont <tsegismo at redhat.com>
  Date:   2015-06-05 (Fri, 05 Jun 2015)

  Changed paths:
    M api/metrics-api-jaxrs/src/main/java/org/hawkular/metrics/api/jaxrs/MetricsServiceLifecycle.java
    M core/metrics-core-impl/src/main/java/org/hawkular/metrics/core/impl/MetricsServiceImpl.java

  Log Message:
  -----------
  Added a shutdown method to MetricsServiceImpl


  Commit: 27800c913e0bf63c755ad9492cdf8245f77d9ec7
      https://github.com/hawkular/hawkular-metrics/commit/27800c913e0bf63c755ad9492cdf8245f77d9ec7
  Author: Thomas Segismont <tsegismo at redhat.com>
  Date:   2015-06-05 (Fri, 05 Jun 2015)

  Changed paths:
    M api/metrics-api-jaxrs/src/main/java/org/hawkular/metrics/api/jaxrs/MetricsServiceLifecycle.java
    M schema-manager/src/main/java/org/hawkular/metrics/schema/SchemaManager.java

  Log Message:
  -----------
  Removed duplicated code: SchemaManager already has what we need


  Commit: ba1c3f5d3e350fba5e60053774a9952143505fa9
      https://github.com/hawkular/hawkular-metrics/commit/ba1c3f5d3e350fba5e60053774a9952143505fa9
  Author: Thomas Segismont <tsegismo at redhat.com>
  Date:   2015-06-09 (Tue, 09 Jun 2015)

  Changed paths:
    M api/metrics-api-jaxrs/src/main/java/org/hawkular/metrics/api/jaxrs/MetricsServiceLifecycle.java
    M core/metrics-core-impl/src/main/java/org/hawkular/metrics/core/impl/MetricsServiceImpl.java
    M core/metrics-core-impl/src/test/java/org/hawkular/metrics/core/impl/MetricsServiceITest.java

  Log Message:
  -----------
  Move schema init to MetricsServiceImpl


  Commit: 44002ca0e6e19b462394a70644847792b2e6a596
      https://github.com/hawkular/hawkular-metrics/commit/44002ca0e6e19b462394a70644847792b2e6a596
  Author: Thomas Segismont <tsegismo at redhat.com>
  Date:   2015-06-09 (Tue, 09 Jun 2015)

  Changed paths:
    M core/metrics-core-impl/src/main/java/org/hawkular/metrics/core/impl/MetricsServiceImpl.java

  Log Message:
  -----------
  Remove last config switch still present in MetricsServiceImpl


  Commit: 77705777d5ddba826403cd6838afd68d984a3a43
      https://github.com/hawkular/hawkular-metrics/commit/77705777d5ddba826403cd6838afd68d984a3a43
  Author: jsanda <jsanda at redhat.com>
  Date:   2015-06-09 (Tue, 09 Jun 2015)

  Changed paths:
    M api/metrics-api-jaxrs/pom.xml
    A api/metrics-api-jaxrs/src/main/java/org/hawkular/metrics/api/jaxrs/MetricsServiceLifecycle.java
    R api/metrics-api-jaxrs/src/main/java/org/hawkular/metrics/api/jaxrs/MetricsServiceProducer.java
    M api/metrics-api-jaxrs/src/main/java/org/hawkular/metrics/api/jaxrs/config/ConfigurableProducer.java
    M api/metrics-api-jaxrs/src/main/java/org/hawkular/metrics/api/jaxrs/config/ConfigurationKey.java
    M api/metrics-api-jaxrs/src/main/java/org/hawkular/metrics/api/jaxrs/filter/MetricsServiceStateFilter.java
    M api/metrics-api-jaxrs/src/main/java/org/hawkular/metrics/api/jaxrs/handler/StatusHandler.java
    M api/metrics-api-jaxrs/src/main/java/org/hawkular/metrics/api/jaxrs/util/Eager.java
    R api/metrics-api-jaxrs/src/main/resources/META-INF/metrics.conf
    M api/metrics-api-jaxrs/src/test/java/org/hawkular/metrics/api/jaxrs/config/ConfigurableProducerTest.java
    M api/metrics-api-undertow/pom.xml
    M clients/ptranslator/pom.xml
    M containers/hawkular-metrics-docker/src/main/docker/Dockerfile
    M core/metrics-core-api/src/main/java/org/hawkular/metrics/core/api/MetricsService.java
    R core/metrics-core-impl/src/main/java/org/hawkular/metrics/core/impl/CassandraSession.java
    M core/metrics-core-impl/src/main/java/org/hawkular/metrics/core/impl/MetricsServiceImpl.java
    M core/metrics-core-impl/src/test/java/org/hawkular/metrics/core/impl/MetricsServiceITest.java
    M embedded-cassandra/embedded-cassandra-ear/pom.xml
    M rest-tests/pom.xml
    M rest-tests/src/test/groovy/org/hawkular/metrics/rest/RESTTest.groovy
    M schema-manager/src/main/java/org/hawkular/metrics/schema/SchemaManager.java

  Log Message:
  -----------
  Merge pull request #243 from tsegismont/jira/HWKMETRICS-119

HWKMETRICS-119 Refactor configuration and session initialization code


Compare: https://github.com/hawkular/hawkular-metrics/compare/b606d960fd2e...77705777d5dd


More information about the hawkular-commits mailing list