Package org.apache.stratos.throttling.manager.dataproviders

Examples of org.apache.stratos.throttling.manager.dataproviders.DataProvider


    }

    public void prepareData(ThrottlingDataContext dataContext) throws ThrottlingException {
        dataProviderIterator.reset();
        while (dataProviderIterator.hasNext()) {
            final DataProvider dataProvider = (DataProvider) dataProviderIterator.next();
            if (dataProvider == null) {
                String msg =
                        "Error in invoking the data provider. " + "dataProviderConfigs is null or "
                                + "data provider is not yet loaded";
                log.error(msg);
                throw new ThrottlingException(msg);
            }
            dataProvider.invoke(dataContext);
            if (dataContext.isProcessingComplete()) {
                break;
            }
        }
    }
View Full Code Here

TOP

Related Classes of org.apache.stratos.throttling.manager.dataproviders.DataProvider

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.