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
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,8 @@ public class ApplianceArchiveReaderConstants {
public static final String OP_MEAN = "mean_";
/** Operator for the optimized post processor */
public static final String OP_OPTIMIZED = "optimized_";
/** Operator for the optimized with last sample post processor */
public static final String OP_OPTIMIZED_WITH_LAST_SAMPLE = "optimLastSample_";

/** The schema delimiter: ca://pvName or pva://pvname */
static final String SCHEMA_DELIMITER = "://";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,14 +59,18 @@
fetchData();
}

/*
* (non-Javadoc)
*
* @see org.csstudio.archive.reader.appliance.ApplianceValueIterator#fetchDataInternal(java.lang.String)
*/

Check warning on line 66 in app/trends/archive-reader/src/main/java/org/phoebus/archive/reader/appliance/ApplianceOptimizedValueIterator.java

View check run for this annotation

SonarQubeCloud / SonarCloud Code Analysis

This comment contains Javadoc or HTML tags, but isn't started with a double asterisk (/**); is it meant to be Javadoc?

See more on https://sonarcloud.io/project/issues?id=ControlSystemStudio_phoebus&issues=AaA0vH_dmR300CbmaA7Y&open=AaA0vH_dmR300CbmaA7Y&pullRequest=3915
@Override
protected void fetchDataInternal(String pvName) throws ArchiverApplianceException {
String optimized = new StringBuilder().append(ApplianceArchiveReaderConstants.OP_OPTIMIZED)
String optimizedOperator = ApplianceArchiveReaderConstants.OP_OPTIMIZED;
if (AppliancePreferences.ppOptimizedWithLastSample)
optimizedOperator = ApplianceArchiveReaderConstants.OP_OPTIMIZED_WITH_LAST_SAMPLE;

String optimized = new StringBuilder().append(optimizedOperator)
.append(requestedPoints).append('(').append(pvName).append(')').toString();
super.fetchDataInternal(optimized);
}
Expand Down Expand Up @@ -155,4 +159,4 @@
return super.extractData(message);
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ public class AppliancePreferences {
@Preference static boolean useStatisticsForOptimizedData;
@Preference static boolean useNewOptimizedOperator;
@Preference static boolean useHttps;
@Preference static boolean ppOptimizedWithLastSample;

static {
AnnotatedPreferences.initialize(AppliancePreferences.class, "/appliance_preferences.properties");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,8 @@ useNewOptimizedOperator=true

# Use 'https://..' instead of plain 'http://..'?
useHttps=false

# Query the AA using the 'Optimized With Last Sample' post processor.
# Setting to false means that the 'Optimized' post processor will be
# used.
ppOptimizedWithLastSample=false
Loading