Skip to content

Commit

Permalink
Merge branch 'develop' of github.com:usdot-jpo-ode/jpo-conflictvisual…
Browse files Browse the repository at this point in the history
…izer into spat-timestamp-fix
  • Loading branch information
John-Wiens committed May 31, 2024
2 parents 3aadf58 + 0b9e000 commit a16d281
Show file tree
Hide file tree
Showing 36 changed files with 38 additions and 6 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ WORKDIR /home

COPY --from=builder /home/jpo-conflictvisualizer-api/src/main/resources/application.yaml /home
COPY --from=builder /home/jpo-conflictvisualizer-api/src/main/resources/logback.xml /home
COPY --from=builder /home/jpo-conflictvisualizer-api/target/jpo-conflictvisualizer-api-0.0.1-SNAPSHOT.jar /home
COPY --from=builder /home/jpo-conflictvisualizer-api/target/jpo-conflictvisualizer-api-1.3.0-SNAPSHOT.jar /home

#COPY cert.crt /home/cert.crt
#RUN keytool -import -trustcacerts -keystore /opt/java/openjdk/lib/security/cacerts -storepass changeit -noprompt -alias mycert -file cert.crt
Expand Down
2 changes: 1 addition & 1 deletion jpo-conflictmonitor
Submodule jpo-conflictmonitor updated from b0c3bb to 61d147
6 changes: 3 additions & 3 deletions jpo-conflictvisualizer-api/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
</parent>
<groupId>usdot.jpo.ode</groupId>
<artifactId>jpo-conflictvisualizer-api</artifactId>
<version>0.0.1-SNAPSHOT</version>
<version>1.3.0-SNAPSHOT</version>
<name>jpo-conflictvisualizer-api</name>
<description>Conflict Visualizer</description>
<properties>
Expand Down Expand Up @@ -108,13 +108,13 @@
<dependency>
<groupId>usdot.jpo.ode</groupId>
<artifactId>jpo-geojsonconverter</artifactId>
<version>1.2.0-SNAPSHOT</version>
<version>1.3.0-SNAPSHOT</version>
<classifier>jpo-geojsonconverter</classifier>
</dependency>
<dependency>
<groupId>usdot.jpo.ode</groupId>
<artifactId>jpo-conflictmonitor</artifactId>
<version>1.2.0-SNAPSHOT</version>
<version>1.3.0-SNAPSHOT</version>
<classifier>jpo-conflictmonitor</classifier>
</dependency>
<dependency>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ public Query getQuery(Integer intersectionID, Long startTime, Long endTime, bool
}

public long getQueryResultCount(Query query) {
query.limit(-1);
return mongoTemplate.count(query, ConnectionOfTravelAssessment.class, collectionName);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ public Query getQuery(Integer intersectionID, Long startTime, Long endTime, bool
}

public long getQueryResultCount(Query query) {
query.limit(-1);
return mongoTemplate.count(query, LaneDirectionOfTravelAssessment.class, collectionName);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ public Query getQuery(Integer intersectionID, Long startTime, Long endTime, bool
}

public long getQueryResultCount(Query query) {
query.limit(-1);
return mongoTemplate.count(query, StopLineStopAssessment.class, collectionName);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ public Query getQuery(Integer intersectionID, Long startTime, Long endTime, bool
}

public long getQueryResultCount(Query query) {
query.limit(-1);
return mongoTemplate.count(query, StopLinePassageAssessment.class, collectionName);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -113,9 +113,9 @@ public long countOdeBsmDataGeo(String originIp, String vehicleId, Long startTime
if(endTime != null){
endTimeString = Instant.ofEpochMilli(endTime).toString();
}
query.limit(props.getMaximumResponseSize());
query.addCriteria(Criteria.where("metadata.odeReceivedAt").gte(startTimeString).lte(endTimeString));
query.fields().exclude("recordGeneratedAt");
query.limit(-1);

if (longitude!=null && latitude!=null && distance!=null){
Double[] latitudes = calculateLatitudes(latitude, distance);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ public Query getQuery(Integer intersectionID, Long startTime, Long endTime, bool
}

public long getQueryResultCount(Query query) {
query.limit(-1);
return mongoTemplate.count(query, BsmEvent.class, collectionName);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ public Query getQuery(Integer intersectionID, Long startTime, Long endTime, bool
}

public long getQueryResultCount(Query query) {
query.limit(-1);
return mongoTemplate.count(query, ConnectionOfTravelEvent.class, collectionName);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ public Query getQuery(Integer intersectionID, Long startTime, Long endTime, bool
}

public long getQueryResultCount(Query query) {
query.limit(-1);
return mongoTemplate.count(query, IntersectionReferenceAlignmentEvent.class,
collectionName);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ public Query getQuery(Integer intersectionID, Long startTime, Long endTime, bool
}

public long getQueryResultCount(Query query) {
query.limit(-1);
return mongoTemplate.count(query, LaneDirectionOfTravelEvent.class, collectionName);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ public Query getQuery(Integer intersectionID, Long startTime, Long endTime, bool
}

public long getQueryResultCount(Query query) {
query.limit(-1);
return mongoTemplate.count(query, MapBroadcastRateEvent.class, collectionName);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ public Query getQuery(Integer intersectionID, Long startTime, Long endTime, bool
}

public long getQueryResultCount(Query query) {
query.limit(-1);
return mongoTemplate.count(query, MapMinimumDataEvent.class, collectionName);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ public Query getQuery(Integer intersectionID, Long startTime, Long endTime, bool
}

public long getQueryResultCount(Query query) {
query.limit(-1);
return mongoTemplate.count(query, SignalGroupAlignmentEvent.class, "CmSignalGroupAlignmentEvents");
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ public Query getQuery(Integer intersectionID, Long startTime, Long endTime, bool
}

public long getQueryResultCount(Query query) {
query.limit(-1);
return mongoTemplate.count(query, SignalStateConflictEvent.class, collectionName);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ public Query getQuery(Integer intersectionID, Long startTime, Long endTime, bool
}

public long getQueryResultCount(Query query) {
query.limit(-1);
return mongoTemplate.count(query, StopLinePassageEvent.class, collectionName);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ public Query getQuery(Integer intersectionID, Long startTime, Long endTime, bool
}

public long getQueryResultCount(Query query) {
query.limit(-1);
return mongoTemplate.count(query, StopLineStopEvent.class, collectionName);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ public Query getQuery(Integer intersectionID, Long startTime, Long endTime, bool
}

public long getQueryResultCount(Query query) {
query.limit(-1);
return mongoTemplate.count(query, SpatBroadcastRateEvent.class, collectionName);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ public Query getQuery(Integer intersectionID, Long startTime, Long endTime, bool
}

public long getQueryResultCount(Query query) {
query.limit(-1);
return mongoTemplate.count(query, SpatMinimumDataEvent.class, collectionName);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ public Query getQuery(Integer intersectionID, Long startTime, Long endTime, bool
}

public long getQueryResultCount(Query query) {
query.limit(-1);
return mongoTemplate.count(query, TimeChangeDetailsEvent.class, collectionName);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ public Query getQuery(Integer intersectionID, Long startTime, Long endTime, bool
}

public long getQueryResultCount(Query query) {
query.limit(-1);
return mongoTemplate.count(query, OdeMapData.class, collectionName);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ public Query getQuery(Integer intersectionID, Long startTime, Long endTime, bool
}

public long getQueryResultCount(Query query) {
query.limit(-1);
return mongoTemplate.count(query, ProcessedMap.class, collectionName);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ public Query getQuery(Integer intersectionID, Integer roadRegulatorID, String no
}

public long getQueryResultCount(Query query){
query.limit(-1);
return mongoTemplate.count(query, Notification.class, "CmNotification");
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ public Query getQuery(Integer intersectionID, Long startTime, Long endTime, bool
}

public long getQueryResultCount(Query query){
query.limit(-1);
return mongoTemplate.count(query, ConnectionOfTravelNotification.class, collectionName);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ public Query getQuery(Integer intersectionID, Long startTime, Long endTime, bool
}

public long getQueryResultCount(Query query){
query.limit(-1);
return mongoTemplate.count(query, IntersectionReferenceAlignmentNotification.class, collectionName);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ public Query getQuery(Integer intersectionID, Long startTime, Long endTime, bool
}

public long getQueryResultCount(Query query){
query.limit(-1);
return mongoTemplate.count(query, LaneDirectionOfTravelNotification.class, collectionName);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ public Query getQuery(Integer intersectionID, Long startTime, Long endTime, bool
}

public long getQueryResultCount(Query query){
query.limit(-1);
return mongoTemplate.count(query, MapBroadcastRateNotification.class, collectionName);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ public Query getQuery(Integer intersectionID, Long startTime, Long endTime, bool
}

public long getQueryResultCount(Query query) {
query.limit(-1);
return mongoTemplate.count(query, SignalGroupAlignmentNotification.class, collectionName);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ public Query getQuery(Integer intersectionID, Long startTime, Long endTime, bool
}

public long getQueryResultCount(Query query){
query.limit(-1);
return mongoTemplate.count(query, SignalStateConflictNotification.class, collectionName);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ public Query getQuery(Integer intersectionID, Long startTime, Long endTime, bool
}

public long getQueryResultCount(Query query) {
query.limit(-1);
return mongoTemplate.count(query, SpatBroadcastRateNotification.class, collectionName);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ public Query getQuery(Integer intersectionID, Long startTime, Long endTime, bool
}

public long getQueryResultCount(Query query){
query.limit(-1);
return mongoTemplate.count(query, StopLinePassageNotification.class, collectionName);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ public Query getQuery(Integer intersectionID, Long startTime, Long endTime, bool
}

public long getQueryResultCount(Query query){
query.limit(-1);
return mongoTemplate.count(query, StopLineStopNotification.class, collectionName);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ public Query getQuery(Integer intersectionID, Long startTime, Long endTime, bool
}

public long getQueryResultCount(Query query){
query.limit(-1);
return mongoTemplate.count(query, TimeChangeDetailsNotification.class, collectionName);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ public Query getQuery(Integer intersectionID, Long startTime, Long endTime, bool
}

public long getQueryResultCount(Query query) {
query.limit(-1);
return mongoTemplate.count(query, OdeSpatData.class, collectionName);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ public Query getQuery(Integer intersectionID, Long startTime, Long endTime, bool
}

public long getQueryResultCount(Query query) {
query.limit(-1); // remove any count limits
return mongoTemplate.count(query, ProcessedSpat.class, collectionName);
}

Expand Down

0 comments on commit a16d281

Please sign in to comment.