perfsonar-dev - perfsonar: r2254 - trunk/perfsonar/src/org/perfsonar/service/measurementArchive/sqlType/fetch
Subject: perfsonar development work
List archive
perfsonar: r2254 - trunk/perfsonar/src/org/perfsonar/service/measurementArchive/sqlType/fetch
Chronological Thread
- From:
- To:
- Subject: perfsonar: r2254 - trunk/perfsonar/src/org/perfsonar/service/measurementArchive/sqlType/fetch
- Date: Tue, 20 Mar 2007 07:17:22 -0400
Author: roman
Date: 2007-03-20 07:17:21 -0400 (Tue, 20 Mar 2007)
New Revision: 2254
Modified:
trunk/perfsonar/src/org/perfsonar/service/measurementArchive/sqlType/fetch/L2PathStatusResponseGenerator.java
Log:
If there is no data in the database then the response from the service
contains empty data element.
Modified:
trunk/perfsonar/src/org/perfsonar/service/measurementArchive/sqlType/fetch/L2PathStatusResponseGenerator.java
===================================================================
---
trunk/perfsonar/src/org/perfsonar/service/measurementArchive/sqlType/fetch/L2PathStatusResponseGenerator.java
2007-03-19 12:40:40 UTC (rev 2253)
+++
trunk/perfsonar/src/org/perfsonar/service/measurementArchive/sqlType/fetch/L2PathStatusResponseGenerator.java
2007-03-20 11:17:21 UTC (rev 2254)
@@ -50,7 +50,6 @@
Data data = new Data();
- // if there is data in the database
for (int i = 0; i < resultList.size(); i++) {
Datum datum = new Datum();
@@ -104,7 +103,7 @@
}
//logger.debug("SQLStorageManager.fetch: "
- // + "column: " + column + ", value: " + strValue );
+ // + "column: " + column + ", value: " + strValue);
}
@@ -115,24 +114,6 @@
}
- // when there is no data in the database
- if (resultList.size() == 0) {
-
- Datum datum = new Datum();
-
- StateOper stateOper = new StateOper();
- stateOper.setStateOper("UNKNOWN");
- datum.addChild(stateOper);
-
- StateAdmin stateAdmin = new StateAdmin();
- stateAdmin.setStateAdmin("UNKNOWN");
- datum.addChild(stateAdmin);
-
- data.addChild(datum);
-
- }
-
-
return data;
}
- perfsonar: r2254 - trunk/perfsonar/src/org/perfsonar/service/measurementArchive/sqlType/fetch, svnlog, 03/20/2007
Archive powered by MHonArc 2.6.16.