Issue #1601 fix error
Change-Id: Ia9749ff77222ea5f136fff7b5bf575b42c29906b Former-commit-id:a34a9941c7
[formerly a893b0ea01e31e1c5c8b5048f536b59cc36ca810] Former-commit-id:e6b7bd9034
This commit is contained in:
parent
861983a573
commit
5315c1d40a
2 changed files with 6 additions and 4 deletions
|
@ -26,7 +26,8 @@ import java.util.HashSet;
|
|||
import java.util.List;
|
||||
import java.util.Map;
|
||||
import java.util.Set;
|
||||
import java.util.concurrent.ArrayBlockingQueue;
|
||||
import java.util.concurrent.BlockingQueue;
|
||||
import java.util.concurrent.LinkedBlockingQueue;
|
||||
|
||||
import javax.measure.unit.Unit;
|
||||
import javax.xml.bind.JAXBException;
|
||||
|
@ -155,7 +156,7 @@ public class DerivedParameterGenerator implements ILocalizationFileObserver {
|
|||
|
||||
private Map<String, DerivParamDesc> derParLibrary;
|
||||
|
||||
private ArrayBlockingQueue<DerivedParameterRequest> toDoList;
|
||||
private BlockingQueue<DerivedParameterRequest> toDoList;
|
||||
|
||||
private static int numJobs = 2;
|
||||
|
||||
|
@ -233,7 +234,7 @@ public class DerivedParameterGenerator implements ILocalizationFileObserver {
|
|||
}
|
||||
}
|
||||
|
||||
toDoList = new ArrayBlockingQueue<DerivedParameterRequest>(50);
|
||||
toDoList = new LinkedBlockingQueue<DerivedParameterRequest>();
|
||||
LocalizationFile dir = PathManagerFactory.getPathManager()
|
||||
.getStaticLocalizationFile(DERIV_PARAM_DIR);
|
||||
if (dir != null) {
|
||||
|
|
|
@ -81,7 +81,8 @@ public abstract class AbstractDbPlotInfoRetriever extends
|
|||
HashMap<String, RequestConstraint> metadataMap) throws VizException {
|
||||
DbQuery dq = getQueryObject(metadataMap);
|
||||
List<PlotInfo> info = runStationQuery(dq);
|
||||
listener.resourceChanged(ChangeType.DATA_UPDATE, info.toArray());
|
||||
listener.resourceChanged(ChangeType.DATA_UPDATE,
|
||||
info.toArray(new PlotInfo[0]));
|
||||
}
|
||||
|
||||
protected List<PlotInfo> runStationQuery(DbQuery dq) throws VizException {
|
||||
|
|
Loading…
Add table
Reference in a new issue