Skip to content

Commit

Permalink
updating dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
kennedyoliveira committed Jun 2, 2016
1 parent 9e9c2e1 commit ec0e5da
Show file tree
Hide file tree
Showing 5 changed files with 35 additions and 50 deletions.
14 changes: 9 additions & 5 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
buildscript {
repositories { jcenter() }
dependencies {
classpath 'com.netflix.nebula:nebula-publishing-plugin:4.4.4'
classpath 'com.netflix.nebula:nebula-publishing-plugin:4.7.0'
}
}

plugins {
id 'nebula.dependency-recommender' version '3.1.0'
id 'nebula.dependency-lock' version '4.2.0'
id 'nebula.dependency-recommender' version '3.3.0'
id 'nebula.dependency-lock' version '4.3.0'
id 'nebula.nebula-release' version '4.0.1'
id 'nebula.contacts' version '3.0.1'
id 'nebula.info' version '3.0.3'
id 'nebula.nebula-bintray' version '3.3.4'
id 'nebula.info' version '3.1.0'
id 'nebula.nebula-bintray' version '3.4.0'
id "org.standardout.versioneye" version '1.4.0'
}

Expand All @@ -30,6 +30,10 @@ apply plugin: 'build-dashboard'
group 'com.github.kennedyoliveira'
description = 'Implementation of a Metrics Event Stream using Vert.x'

pmd {
toolVersion = '5.4.2'
}

def recomendationsFile = rootProject.file('dependencies-version.properties')

dependencyRecommendations {
Expand Down
4 changes: 2 additions & 2 deletions dependencies-version.properties
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ VERTX_VERSION=3.2.+
com.netflix.hystrix:hystrix-core=$HYSTRIX_VERSION

# Json Deps
org.codehaus.jackson:jackson-core-asl=1.9.+
org.codehaus.jackson:jackson-mapper-asl=1.9.+
org.codehaus.jackson:jackson-core-asl= 1.9.13
org.codehaus.jackson:jackson-mapper-asl= 1.9.13

# Vert.x
io.vertx:vertx-core=$VERTX_VERSION
Expand Down
38 changes: 19 additions & 19 deletions dependencies.lock
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@
"locked": "3.2.1"
},
"org.codehaus.jackson:jackson-core-asl": {
"locked": "1.9.11"
"locked": "1.9.13"
},
"org.codehaus.jackson:jackson-mapper-asl": {
"locked": "1.9.11"
"locked": "1.9.13"
}
},
"compileClasspath": {
Expand All @@ -27,10 +27,10 @@
"locked": "3.2.1"
},
"org.codehaus.jackson:jackson-core-asl": {
"locked": "1.9.11"
"locked": "1.9.13"
},
"org.codehaus.jackson:jackson-mapper-asl": {
"locked": "1.9.11"
"locked": "1.9.13"
}
},
"compileOnly": {
Expand All @@ -44,10 +44,10 @@
"locked": "3.2.1"
},
"org.codehaus.jackson:jackson-core-asl": {
"locked": "1.9.11"
"locked": "1.9.13"
},
"org.codehaus.jackson:jackson-mapper-asl": {
"locked": "1.9.11"
"locked": "1.9.13"
}
},
"default": {
Expand All @@ -61,10 +61,10 @@
"locked": "3.2.1"
},
"org.codehaus.jackson:jackson-core-asl": {
"locked": "1.9.11"
"locked": "1.9.13"
},
"org.codehaus.jackson:jackson-mapper-asl": {
"locked": "1.9.11"
"locked": "1.9.13"
}
},
"findbugs": {
Expand All @@ -74,7 +74,7 @@
},
"pmd": {
"net.sourceforge.pmd:pmd-java": {
"locked": "5.2.3"
"locked": "5.4.2"
}
},
"runtime": {
Expand All @@ -88,10 +88,10 @@
"locked": "3.2.1"
},
"org.codehaus.jackson:jackson-core-asl": {
"locked": "1.9.11"
"locked": "1.9.13"
},
"org.codehaus.jackson:jackson-mapper-asl": {
"locked": "1.9.11"
"locked": "1.9.13"
}
},
"testCompile": {
Expand All @@ -111,10 +111,10 @@
"locked": "4.12"
},
"org.codehaus.jackson:jackson-core-asl": {
"locked": "1.9.11"
"locked": "1.9.13"
},
"org.codehaus.jackson:jackson-mapper-asl": {
"locked": "1.9.11"
"locked": "1.9.13"
}
},
"testCompileClasspath": {
Expand All @@ -134,10 +134,10 @@
"locked": "4.12"
},
"org.codehaus.jackson:jackson-core-asl": {
"locked": "1.9.11"
"locked": "1.9.13"
},
"org.codehaus.jackson:jackson-mapper-asl": {
"locked": "1.9.11"
"locked": "1.9.13"
}
},
"testCompileOnly": {
Expand All @@ -157,10 +157,10 @@
"locked": "4.12"
},
"org.codehaus.jackson:jackson-core-asl": {
"locked": "1.9.11"
"locked": "1.9.13"
},
"org.codehaus.jackson:jackson-mapper-asl": {
"locked": "1.9.11"
"locked": "1.9.13"
}
},
"testRuntime": {
Expand All @@ -180,10 +180,10 @@
"locked": "4.12"
},
"org.codehaus.jackson:jackson-core-asl": {
"locked": "1.9.11"
"locked": "1.9.13"
},
"org.codehaus.jackson:jackson-mapper-asl": {
"locked": "1.9.11"
"locked": "1.9.13"
}
}
}
1 change: 1 addition & 0 deletions gradle.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
versioneye.projectid=56f0d26335630e0029daff48
Original file line number Diff line number Diff line change
Expand Up @@ -174,12 +174,7 @@ static String toJson(final HystrixThreadPoolMetrics threadPoolMetrics) throws IO
json.writeNumberField("currentTaskCount", threadPoolMetrics.getCurrentTaskCount().longValue());
json.writeNumberField("rollingCountThreadsExecuted", threadPoolMetrics.getRollingCountThreadsExecuted());
json.writeNumberField("rollingMaxActiveThreads", threadPoolMetrics.getRollingMaxActiveThreads());
safelyWriteNumberField(json, "rollingCountCommandsRejected", new Func0<Long>() {
@Override
public Long call() {
return threadPoolMetrics.getRollingCount(HystrixRollingNumberEvent.THREAD_POOL_REJECTED);
}
});
safelyWriteNumberField(json, "rollingCountCommandsRejected", () -> threadPoolMetrics.getRollingCount(HystrixRollingNumberEvent.THREAD_POOL_REJECTED));
json.writeNumberField("propertyValue_queueSizeRejectionThreshold", threadPoolMetrics.getProperties().queueSizeRejectionThreshold().get());
json.writeNumberField("propertyValue_metricsRollingStatisticalWindowInMilliseconds", threadPoolMetrics.getProperties().metricsRollingStatisticalWindowInMilliseconds().get());

Expand All @@ -201,24 +196,9 @@ static String toJson(final HystrixCollapserMetrics collapserMetrics) throws IOEx
json.writeStringField("name", key.name());
json.writeNumberField("currentTime", System.currentTimeMillis());

safelyWriteNumberField(json, "rollingCountRequestsBatched", new Func0<Long>() {
@Override
public Long call() {
return collapserMetrics.getRollingCount(HystrixRollingNumberEvent.COLLAPSER_REQUEST_BATCHED);
}
});
safelyWriteNumberField(json, "rollingCountBatches", new Func0<Long>() {
@Override
public Long call() {
return collapserMetrics.getRollingCount(HystrixRollingNumberEvent.COLLAPSER_BATCH);
}
});
safelyWriteNumberField(json, "rollingCountResponsesFromCache", new Func0<Long>() {
@Override
public Long call() {
return collapserMetrics.getRollingCount(HystrixRollingNumberEvent.RESPONSE_FROM_CACHE);
}
});
safelyWriteNumberField(json, "rollingCountRequestsBatched", () -> collapserMetrics.getRollingCount(HystrixRollingNumberEvent.COLLAPSER_REQUEST_BATCHED));
safelyWriteNumberField(json, "rollingCountBatches", () -> collapserMetrics.getRollingCount(HystrixRollingNumberEvent.COLLAPSER_BATCH));
safelyWriteNumberField(json, "rollingCountResponsesFromCache", () -> collapserMetrics.getRollingCount(HystrixRollingNumberEvent.RESPONSE_FROM_CACHE));

// batch size percentiles
json.writeNumberField("batchSize_mean", collapserMetrics.getBatchSizeMean());
Expand Down

0 comments on commit ec0e5da

Please sign in to comment.