Issue #2745 - Don't display fulfilled or cancelled allocations
Former-commit-id:9c70fb3261
[formerly4d529f5051
] [formerlyf81772f4be
] [formerly9c70fb3261
[formerly4d529f5051
] [formerlyf81772f4be
] [formerlyc9b98868d2
[formerlyf81772f4be
[formerly 7b7f294622e886d7457d7abe0451d3e819568677]]]] Former-commit-id:c9b98868d2
Former-commit-id:c9aa63c3c8
[formerly8b3b5a688f
] [formerly 444d2596405cc6142a1dc0b4b806d00c570225c6 [formerly4a07f6fb4c
]] Former-commit-id: f563b418bf49a1b36f27d31b1c9de60b6b56ab31 [formerly1065c56bde
] Former-commit-id:a33c96d8fc
This commit is contained in:
parent
b016112b8f
commit
f7f6516da2
1 changed files with 11 additions and 5 deletions
|
@ -44,6 +44,7 @@ import com.raytheon.uf.edex.datadelivery.bandwidth.dao.BandwidthSubscription;
|
|||
import com.raytheon.uf.edex.datadelivery.bandwidth.dao.SubscriptionRetrieval;
|
||||
import com.raytheon.uf.edex.datadelivery.bandwidth.retrieval.RetrievalManager;
|
||||
import com.raytheon.uf.edex.datadelivery.bandwidth.retrieval.RetrievalPlan;
|
||||
import com.raytheon.uf.edex.datadelivery.bandwidth.retrieval.RetrievalStatus;
|
||||
|
||||
/**
|
||||
* Adapts the {@link BandwidthManager} formatted data into a GUI usable graphing
|
||||
|
@ -64,6 +65,7 @@ import com.raytheon.uf.edex.datadelivery.bandwidth.retrieval.RetrievalPlan;
|
|||
* Dec 11, 2013 2566 bgonzale handle case when there are no reservations.
|
||||
* Dec 17, 2013 2636 bgonzale Refactored bucket fill in edex.
|
||||
* Jan 23, 2014 2636 mpduff Changed download window generation.
|
||||
* Feb 03, 2014 2745 mpduff Don't display fulfilled or cancelled allocations.
|
||||
*
|
||||
* </pre>
|
||||
*
|
||||
|
@ -125,11 +127,15 @@ class BandwidthGraphDataAdapter {
|
|||
|
||||
for (BandwidthAllocation allocation : allocationList) {
|
||||
if (allocation instanceof SubscriptionRetrieval) {
|
||||
final SubscriptionRetrieval subRetrieval = (SubscriptionRetrieval) allocation;
|
||||
String subName = subRetrieval.getBandwidthSubscription()
|
||||
.getName();
|
||||
subAllocationMapping.addAllocationForSubscription(subName,
|
||||
allocation);
|
||||
// Don't display fulfilled or cancelled allocations
|
||||
if (allocation.getStatus() != RetrievalStatus.FULFILLED
|
||||
&& allocation.getStatus() != RetrievalStatus.CANCELLED) {
|
||||
final SubscriptionRetrieval subRetrieval = (SubscriptionRetrieval) allocation;
|
||||
String subName = subRetrieval
|
||||
.getBandwidthSubscription().getName();
|
||||
subAllocationMapping.addAllocationForSubscription(
|
||||
subName, allocation);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue