perfsonar-dev - perfsonar: r4166 - trunk/ps-mdm-flowsa-ma/src/main/java/org/perfsonar/service/measurementArchive/flowsa
Subject: perfsonar development work
List archive
perfsonar: r4166 - trunk/ps-mdm-flowsa-ma/src/main/java/org/perfsonar/service/measurementArchive/flowsa
Chronological Thread
- From:
- To:
- Subject: perfsonar: r4166 - trunk/ps-mdm-flowsa-ma/src/main/java/org/perfsonar/service/measurementArchive/flowsa
- Date: Fri, 11 Jul 2008 16:24:11 -0400
Author: michael.bischoff
Date: 2008-07-11 16:24:11 -0400 (Fri, 11 Jul 2008)
New Revision: 4166
Modified:
trunk/ps-mdm-flowsa-ma/src/main/java/org/perfsonar/service/measurementArchive/flowsa/FlowsaMAServiceEngine.java
Log:
Added check of startTime not being before endtime.
Modified:
trunk/ps-mdm-flowsa-ma/src/main/java/org/perfsonar/service/measurementArchive/flowsa/FlowsaMAServiceEngine.java
===================================================================
---
trunk/ps-mdm-flowsa-ma/src/main/java/org/perfsonar/service/measurementArchive/flowsa/FlowsaMAServiceEngine.java
2008-07-11 19:04:17 UTC (rev 4165)
+++
trunk/ps-mdm-flowsa-ma/src/main/java/org/perfsonar/service/measurementArchive/flowsa/FlowsaMAServiceEngine.java
2008-07-11 20:24:11 UTC (rev 4166)
@@ -381,6 +381,7 @@
Date startTime = request.getStartTime();
Date endTime = request.getEndTime();
if(startTime==null || endTime==null) throw new
PerfSONARException("error.ma.fetching","Time range not specified correctly
startTime or EndTime is absent.");
+ if(!startTime.before(endTime)) throw new
PerfSONARException("error.ma.fetching","Specified StartTime isn't before
EndTime");
FileData fileData;
try {
fileData = nfcapd.getFileData(hostNames, startTime,
endTime);
- perfsonar: r4166 - trunk/ps-mdm-flowsa-ma/src/main/java/org/perfsonar/service/measurementArchive/flowsa, svnlog, 07/11/2008
Archive powered by MHonArc 2.6.16.