perfsonar-dev - perfsonar: r2253 - branches/JAVA-RRD-MA-STABLE/src/org/perfsonar/service/measurementArchive/sqlType/fetch
Subject: perfsonar development work
List archive
perfsonar: r2253 - branches/JAVA-RRD-MA-STABLE/src/org/perfsonar/service/measurementArchive/sqlType/fetch
Chronological Thread
- From:
- To:
- Subject: perfsonar: r2253 - branches/JAVA-RRD-MA-STABLE/src/org/perfsonar/service/measurementArchive/sqlType/fetch
- Date: Mon, 19 Mar 2007 08:40:41 -0400
Author: roman
Date: 2007-03-19 08:40:40 -0400 (Mon, 19 Mar 2007)
New Revision: 2253
Modified:
branches/JAVA-RRD-MA-STABLE/src/org/perfsonar/service/measurementArchive/sqlType/fetch/L2PathStatusResponseGenerator.java
Log:
merged with the trunk (but only measurementArchive directory)
svn merge -r 2239:2252
https://svn.perfsonar.net/svn/perfsonar/trunk/perfsonar/src/org/perfsonar/service/measurementArchive
Modified:
branches/JAVA-RRD-MA-STABLE/src/org/perfsonar/service/measurementArchive/sqlType/fetch/L2PathStatusResponseGenerator.java
===================================================================
---
branches/JAVA-RRD-MA-STABLE/src/org/perfsonar/service/measurementArchive/sqlType/fetch/L2PathStatusResponseGenerator.java
2007-03-19 12:34:04 UTC (rev 2252)
+++
branches/JAVA-RRD-MA-STABLE/src/org/perfsonar/service/measurementArchive/sqlType/fetch/L2PathStatusResponseGenerator.java
2007-03-19 12:40:40 UTC (rev 2253)
@@ -50,6 +50,7 @@
Data data = new Data();
+ // if there is data in the database
for (int i = 0; i < resultList.size(); i++) {
Datum datum = new Datum();
@@ -113,6 +114,25 @@
}
+
+ // 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: r2253 - branches/JAVA-RRD-MA-STABLE/src/org/perfsonar/service/measurementArchive/sqlType/fetch, svnlog, 03/19/2007
Archive powered by MHonArc 2.6.16.