VLab Issue #5749 - Removed try/catch for ContinuingWatch when querying database.
Change-Id: I73e4644f810c0d649a7bed61135989a9c15c1981 Former-commit-id: 75971fafd69e6a19a9cfd120d1a70f76f3c5fee1
This commit is contained in:
parent
70d2508f38
commit
3f38e3c88d
1 changed files with 11 additions and 19 deletions
|
@ -43,7 +43,8 @@ import com.raytheon.uf.viz.core.requests.ThriftClient;
|
||||||
* 08/12 #770 Q. Zhou Initial Creation.
|
* 08/12 #770 Q. Zhou Initial Creation.
|
||||||
* 09/12 #770 Q. Zhou Clean up and change selectedWatch to a collection
|
* 09/12 #770 Q. Zhou Clean up and change selectedWatch to a collection
|
||||||
* 08/13 #1028 G. Hull rm dependency on viz.rsc.wtch project
|
* 08/13 #1028 G. Hull rm dependency on viz.rsc.wtch project
|
||||||
* 12/14 ? B. Yin Remove ScriptCreator, use Thrift Client.
|
* 12/14 R5749 B. Yin Remove ScriptCreator, use Thrift Client.
|
||||||
|
* 12/14 R5749 B. Yin Removed try/catch block when querying.
|
||||||
* </pre>
|
* </pre>
|
||||||
*
|
*
|
||||||
* @author Q. Zhou
|
* @author Q. Zhou
|
||||||
|
@ -51,9 +52,6 @@ import com.raytheon.uf.viz.core.requests.ThriftClient;
|
||||||
|
|
||||||
public class ContinuingWatch {
|
public class ContinuingWatch {
|
||||||
|
|
||||||
private static final transient IUFStatusHandler statusHandler = UFStatus
|
|
||||||
.getHandler(ContinuingWatch.class);
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* WtchRscDataObj class
|
* WtchRscDataObj class
|
||||||
*/
|
*/
|
||||||
|
@ -157,7 +155,6 @@ public class ContinuingWatch {
|
||||||
DbQueryRequest request = new DbQueryRequest();
|
DbQueryRequest request = new DbQueryRequest();
|
||||||
request.setConstraints(metadataMap);
|
request.setConstraints(metadataMap);
|
||||||
|
|
||||||
try {
|
|
||||||
DbQueryResponse response = (DbQueryResponse) ThriftClient.sendRequest(request);
|
DbQueryResponse response = (DbQueryResponse) ThriftClient.sendRequest(request);
|
||||||
|
|
||||||
for (Map<String, Object> result : response.getResults()) {
|
for (Map<String, Object> result : response.getResults()) {
|
||||||
|
@ -169,11 +166,6 @@ public class ContinuingWatch {
|
||||||
contWatch.addAll( num );
|
contWatch.addAll( num );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
catch (VizException e) {
|
|
||||||
statusHandler.handle(Priority.PROBLEM, e.getLocalizedMessage(),
|
|
||||||
e);
|
|
||||||
}
|
|
||||||
|
|
||||||
//Retrieving unique items from the list
|
//Retrieving unique items from the list
|
||||||
Set<String> set = new HashSet<String>(contWatch);
|
Set<String> set = new HashSet<String>(contWatch);
|
||||||
|
|
Loading…
Add table
Reference in a new issue