Change-Id: Iaef7dc76442d1e101cf9865a542a777afe1722ca Former-commit-id:a14cb8c45f
[formerlye2a4bb6755
] [formerlyc352643c79
] [formerlya14cb8c45f
[formerlye2a4bb6755
] [formerlyc352643c79
] [formerly3b00ae03cc
[formerlyc352643c79
[formerly a34955102d1316135c4151210daba0e5807ff6c9]]]] Former-commit-id:3b00ae03cc
Former-commit-id:5fc17cf3b8
[formerlyea791b5ca5
] [formerly 271120a82cffba35438f0b9830c3a47c736fcb73 [formerlybf42c8d740
]] Former-commit-id: 966b34bc10a6cb76f151b577b0acae7fb953d804 [formerly5b11e45636
] Former-commit-id:a06db5a4e7
99 lines
4.2 KiB
Java
99 lines
4.2 KiB
Java
/**
|
|
* This software was developed and / or modified by Raytheon Company,
|
|
* pursuant to Contract DG133W-05-CQ-1067 with the US Government.
|
|
*
|
|
* U.S. EXPORT CONTROLLED TECHNICAL DATA
|
|
* This software product contains export-restricted data whose
|
|
* export/transfer/disclosure is restricted by U.S. law. Dissemination
|
|
* to non-U.S. persons whether in the United States or abroad requires
|
|
* an export license or other authorization.
|
|
*
|
|
* Contractor Name: Raytheon Company
|
|
* Contractor Address: 6825 Pine Street, Suite 340
|
|
* Mail Stop B8
|
|
* Omaha, NE 68106
|
|
* 402.291.0100
|
|
*
|
|
* See the AWIPS II Master Rights File ("Master Rights File.pdf") for
|
|
* further licensing information.
|
|
**/
|
|
package com.raytheon.uf.edex.datadelivery.bandwidth;
|
|
|
|
import com.raytheon.uf.common.datadelivery.registry.handlers.IAdhocSubscriptionHandler;
|
|
import com.raytheon.uf.common.datadelivery.registry.handlers.IDataSetMetaDataHandler;
|
|
import com.raytheon.uf.common.datadelivery.registry.handlers.ISubscriptionHandler;
|
|
import com.raytheon.uf.common.datadelivery.service.ISubscriptionNotificationService;
|
|
import com.raytheon.uf.common.util.JarUtil;
|
|
import com.raytheon.uf.common.util.SpringFiles;
|
|
import com.raytheon.uf.edex.datadelivery.bandwidth.WfoBandwidthManagerCreator.WfoBandwidthManager;
|
|
import com.raytheon.uf.edex.datadelivery.bandwidth.dao.IBandwidthDao;
|
|
import com.raytheon.uf.edex.datadelivery.bandwidth.dao.IBandwidthDbInit;
|
|
import com.raytheon.uf.edex.datadelivery.bandwidth.hibernate.IFindSubscriptionsForScheduling;
|
|
import com.raytheon.uf.edex.datadelivery.bandwidth.retrieval.RetrievalManager;
|
|
import com.raytheon.uf.edex.datadelivery.bandwidth.util.BandwidthDaoUtil;
|
|
import com.raytheon.uf.edex.datadelivery.util.DataDeliveryIdUtil;
|
|
|
|
/**
|
|
* A WFO {@link IBandwidthManager} that runs as an integration test, outside of
|
|
* the EDEX container.
|
|
*
|
|
* <pre>
|
|
*
|
|
* SOFTWARE HISTORY
|
|
*
|
|
* Date Ticket# Engineer Description
|
|
* ------------ ---------- ----------- --------------------------
|
|
* Oct 30, 2012 1286 djohnson Initial creation
|
|
* Feb 27, 2013 1644 djohnson Extends WFO bandwidth manager.
|
|
* May 15, 2013 2000 djohnson Include daos.
|
|
* Jul 10, 2013 2106 djohnson Dependency inject registry handlers.
|
|
* Nov 08, 2013 2506 bgonzale Added notification service to bandwidth manager.
|
|
* Jan 14, 2014 2692 dhladky AdhocSubscription handler
|
|
* Jan 30, 2014 2636 mpduff Scheduling refactor.
|
|
*
|
|
* </pre>
|
|
*
|
|
* @author djohnson
|
|
* @version 1.0
|
|
*/
|
|
|
|
public class IntegrationTestWfoBandwidthManager extends WfoBandwidthManager {
|
|
|
|
static final String[] INTEGRATION_TEST_SPRING_FILES = new String[] {
|
|
"/bandwidth/bandwidth-datadelivery-integrationtest-impl.xml",
|
|
JarUtil.getResResourcePath(SpringFiles.BANDWIDTH_DATADELIVERY_DAOS_XML),
|
|
JarUtil.getResResourcePath(SpringFiles.BANDWIDTH_DATADELIVERY_XML),
|
|
JarUtil.getResResourcePath(SpringFiles.BANDWIDTH_DATADELIVERY_EVENTBUS_XML),
|
|
JarUtil.getResResourcePath(SpringFiles.BANDWIDTH_DATADELIVERY_WFO_XML) };
|
|
|
|
/**
|
|
* Constructor.
|
|
*
|
|
* @param dbInit
|
|
* @param bandwidthDao
|
|
* @param retrievalManager
|
|
* @param bandwidthDaoUtil
|
|
*/
|
|
public IntegrationTestWfoBandwidthManager(IBandwidthDbInit dbInit,
|
|
IBandwidthDao bandwidthDao, RetrievalManager retrievalManager,
|
|
BandwidthDaoUtil bandwidthDaoUtil,
|
|
DataDeliveryIdUtil idUtil,
|
|
IDataSetMetaDataHandler dataSetMetaDataHandler,
|
|
ISubscriptionHandler subscriptionHandler,
|
|
IAdhocSubscriptionHandler adhocSubscriptionHandler,
|
|
ISubscriptionNotificationService subscriptionNotificationService,
|
|
IFindSubscriptionsForScheduling findSubscriptionStrategy) {
|
|
super(dbInit, bandwidthDao, retrievalManager, bandwidthDaoUtil, idUtil,
|
|
dataSetMetaDataHandler, subscriptionHandler,
|
|
adhocSubscriptionHandler, subscriptionNotificationService,
|
|
findSubscriptionStrategy);
|
|
}
|
|
|
|
/**
|
|
* {@inheritDoc}
|
|
*/
|
|
@Override
|
|
protected String[] getSpringFilesForNewInstance() {
|
|
return INTEGRATION_TEST_SPRING_FILES;
|
|
}
|
|
}
|