Package fr.soleil.data.service

Examples of fr.soleil.data.service.IDataSourceProducer


        if (scanServerName != null && !scanServerName.isEmpty() && attributeName != null
                && !attributeName.isEmpty()) {

            TangoKey tangoKey = new TangoKey();
            TangoKeyTool.registerAttribute(tangoKey, scanServerName, attributeName);
            IDataSourceProducer producer = getProducer();
            try {
                AbstractDataSource<?> src = producer.createDataSource(tangoKey);
                if ((src != null) && Number.class.equals(src.getDataType().getConcernedClass())) {
                    matrixNumberSource = (AbstractDataSource<AbstractMatrix<Number>>) src;
                }
            }
            catch (UnhandledDataTypeException e1) {
View Full Code Here


        // DO NOT POLLED TO FAST => TIME OUT ERROR BUG 23612
        if (refreshingPeriod < 1000) {
            refreshingPeriod = 1000;
        }
        if (refreshingPeriod != TangoDataSourceFactory.DEFAULT_SLEEPING_PERIOD) {
            IDataSourceProducer producer = DataSourceProducerProvider
                    .getProducer(TangoDataSourceFactory.SOURCE_PRODUCER_ID);
            if ((producer instanceof AbstractRefreshingManager<?>) && (key != null)) {
                ((AbstractRefreshingManager<?>) producer).setRefreshingStrategy(key,
                        new PolledRefreshingStrategy(refreshingPeriod));
            }
View Full Code Here

        // DO NOT POLLED TO FAST => TIME OUT ERROR BUG 23612
        if (refreshingPeriod < 1000) {
            refreshingPeriod = 1000;
        }
        if (refreshingPeriod != TangoDataSourceFactory.DEFAULT_SLEEPING_PERIOD) {
            IDataSourceProducer producer = DataSourceProducerProvider
                    .getProducer(TangoDataSourceFactory.SOURCE_PRODUCER_ID);
            if ((producer instanceof AbstractRefreshingManager<?>) && (key != null)) {
                ((AbstractRefreshingManager<?>) producer).setRefreshingStrategy(key,
                        new PolledRefreshingStrategy(refreshingPeriod));
            }
View Full Code Here

        // DO NOT POLLED TO FAST => TIME OUT ERROR BUG 23612
        if (refreshingPeriod < 1000) {
            refreshingPeriod = 1000;
        }
        if (refreshingPeriod != TangoDataSourceFactory.DEFAULT_SLEEPING_PERIOD) {
            IDataSourceProducer producer = DataSourceProducerProvider
                    .getProducer(TangoDataSourceFactory.SOURCE_PRODUCER_ID);
            if ((producer instanceof AbstractRefreshingManager<?>) && (key != null)) {
                ((AbstractRefreshingManager<?>) producer).setRefreshingStrategy(key, new PolledRefreshingStrategy(
                        refreshingPeriod));
            }
View Full Code Here

    }

    private void setRefreshingPeriod(IKey key) {
        int refreshingPeriod = CurrentScanDataModel.getIntegrationTime(scanServerDeviceName);
        if (refreshingPeriod != TangoDataSourceFactory.DEFAULT_SLEEPING_PERIOD) {
            IDataSourceProducer producer = DataSourceProducerProvider
                    .getProducer(TangoDataSourceFactory.SOURCE_PRODUCER_ID);
            if ((producer instanceof AbstractRefreshingManager<?>) && (key != null)) {
                ((AbstractRefreshingManager<?>) producer).setRefreshingStrategy(key,
                        new PolledRefreshingStrategy(refreshingPeriod));
            }
View Full Code Here

        // DO NOT POLLED TO FAST => TIME OUT ERROR BUG 23612
        if (refreshingPeriod < 1000) {
            refreshingPeriod = 1000;
        }
        if (refreshingPeriod != TangoDataSourceFactory.DEFAULT_SLEEPING_PERIOD) {
            IDataSourceProducer producer = DataSourceProducerProvider
                    .getProducer(TangoDataSourceFactory.SOURCE_PRODUCER_ID);
            if ((producer instanceof AbstractRefreshingManager<?>) && (key != null)) {
                ((AbstractRefreshingManager<?>) producer).setRefreshingStrategy(key, new PolledRefreshingStrategy(
                        refreshingPeriod));
            }
View Full Code Here

        // DO NOT POLLED TO FAST => TIME OUT ERROR BUG 23612
        if (refreshingPeriod < 1000) {
            refreshingPeriod = 1000;
        }
        if (refreshingPeriod != TangoDataSourceFactory.DEFAULT_SLEEPING_PERIOD) {
            IDataSourceProducer producer = DataSourceProducerProvider
                    .getProducer(TangoDataSourceFactory.SOURCE_PRODUCER_ID);
            if ((producer instanceof AbstractRefreshingManager<?>) && (key != null)) {
                ((AbstractRefreshingManager<?>) producer).setRefreshingStrategy(key,
                        new PolledRefreshingStrategy(refreshingPeriod));
            }
View Full Code Here

        // DO NOT POLLED TO FAST => TIME OUT ERROR BUG 23612
        if (refreshingPeriod < 1000) {
            refreshingPeriod = 1000;
        }
        if (refreshingPeriod != TangoDataSourceFactory.DEFAULT_SLEEPING_PERIOD) {
            IDataSourceProducer producer = DataSourceProducerProvider
                    .getProducer(TangoDataSourceFactory.SOURCE_PRODUCER_ID);
            if ((producer instanceof AbstractRefreshingManager<?>) && (key != null)) {
                ((AbstractRefreshingManager<?>) producer).setRefreshingStrategy(key,
                        new PolledRefreshingStrategy(refreshingPeriod));
            }
View Full Code Here

        // DO NOT POLLED TO FAST => TIME OUT ERROR BUG 23612
        if (refreshingPeriod < 1000) {
            refreshingPeriod = 1000;
        }
        if (refreshingPeriod != TangoDataSourceFactory.DEFAULT_SLEEPING_PERIOD) {
            IDataSourceProducer producer = DataSourceProducerProvider
                    .getProducer(TangoDataSourceFactory.SOURCE_PRODUCER_ID);
            if ((producer instanceof AbstractRefreshingManager<?>) && (key != null)) {
                ((AbstractRefreshingManager<?>) producer).setRefreshingStrategy(key, new PolledRefreshingStrategy(
                        refreshingPeriod));
            }
View Full Code Here

    }

    private void setRefreshingPeriod(IKey key) {
        int refreshingPeriod = CurrentScanDataModel.getIntegrationTime(scanServerDeviceName);
        if (refreshingPeriod != TangoDataSourceFactory.DEFAULT_SLEEPING_PERIOD) {
            IDataSourceProducer producer = DataSourceProducerProvider
                    .getProducer(TangoDataSourceFactory.SOURCE_PRODUCER_ID);
            if ((producer instanceof AbstractRefreshingManager<?>) && (key != null)) {
                ((AbstractRefreshingManager<?>) producer).setRefreshingStrategy(key,
                        new PolledRefreshingStrategy(refreshingPeriod));
            }
View Full Code Here

TOP

Related Classes of fr.soleil.data.service.IDataSourceProducer

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.