Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 29 additions & 0 deletions cwms-data-api/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -291,6 +291,35 @@ task integrationTests(type: Test) {
jvmArgs += "-Dcatalina.base=$buildDir/tomcat"
}

task timeseriesReadBenchmark(type: JavaExec) {
group "verification"
description = "Run the local time-series read benchmark harness"
dependsOn generateConfig
dependsOn war
dependsOn testClasses

workingDir = projectDir
classpath = sourceSets.test.runtimeClasspath
classpath += configurations.baseLibs
classpath += configurations.tomcatLibs

mainClass = "helpers.TimeSeriesReadBenchmark"

systemProperties += project.properties.findAll { k, v -> k.startsWith("RADAR") && !k.startsWith("RADAR_JDBC") }
systemProperties += project.properties.findAll { k, v -> k.startsWith("CDA") && !k.startsWith("CDA_JDBC") }
systemProperties += project.properties.findAll { k, v -> k.startsWith("testcontainer") }
systemProperties += project.properties.findAll { k, v -> k.startsWith("benchmark.") }

jvmArgs += "-DwarFile=$buildDir/libs/${project.name}-${project.version}.war"
jvmArgs += "-DwarContext=/cwms-data"
jvmArgs += "-Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager"
jvmArgs += "-Djava.util.logging.config.file=$projectDir/logging.properties"
jvmArgs += "-Dorg.apache.tomcat.util.digester.PROPERTY_SOURCE=org.apache.tomcat.util.digester.EnvironmentPropertySource"
jvmArgs += "-Dcwms.dataapi.access.provider=MultipleAccessManager"
jvmArgs += "-Dcwms.dataapi.access.providers=KeyAccessManager,CwmsAccessManager"
jvmArgs += "-Dcatalina.base=$buildDir/tomcat"
}

task prepareDockerBuild(type: Copy, dependsOn: war) {
doFirst {
project.mkdir("$buildDir/docker")
Expand Down
612 changes: 610 additions & 2 deletions cwms-data-api/src/main/java/cwms/cda/data/dao/TimeSeriesDaoImpl.java

Large diffs are not rendered by default.

Loading
Loading