Package fr.soleil.data.service

Examples of fr.soleil.data.service.IDataSourceProducer


        // 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

        // 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

    @SuppressWarnings("unchecked")
    private String getDeviceNameClass() {
        String className = null;
        TangoKey classKey = new TangoKey();
        TangoKeyTool.registerDeviceClass(classKey, model);
        IDataSourceProducer producer = getProducer();

        if (producer != null) {
            AbstractDataSource<?> src = null;
            try {
                src = producer.createDataSource(classKey);
            }
            catch (UnhandledDataTypeException e1) {
                e1.printStackTrace();
            }
            AbstractDataSource<String> dataSource = null;
View Full Code Here

    @SuppressWarnings("unchecked")
    private int getAttributeType() {
        TangoKey attributeKey = generateAttributeKey(attributeName);
        int type = TangoConstHelper.UNKNOW_TYPE;
        IDataSourceProducer producer = getProducer();
        if (producer != null) {
            AbstractDataSource<?> src = null;
            try {
                src = producer.createDataSource(attributeKey);
            }
            catch (UnhandledDataTypeException e1) {
                e1.printStackTrace();
            }
            Class<?> classType = null;
View Full Code Here

    }

    private void setScalarWidgetModel(IKey attributeKey) {
        setWidgetModel(readNumberField, stringBox, attributeKey);

        IDataSourceProducer producer = getProducer();
        if (producer != null) {
            boolean isSettable = producer.isSourceSettable(attributeKey);
            wheelswitch.setVisible(isSettable);
            if (isSettable) {
                attributeKey = generateWriteAttributeKey(attributeName);
                setWidgetModel(wheelswitch, numberScalarBox, attributeKey);
            }
View Full Code Here

        }
    }

    private void setChartWidgetModel(IKey attributeKey) {
        setWidgetModel(chartViewer, chartBox, attributeKey);
        IDataSourceProducer producer = getProducer();
        if (producer != null) {
            boolean isSettable = producer.isSourceSettable(attributeKey);
            wheelswitch.setVisible(false);
            if (isSettable) {
                attributeKey = generateWriteAttributeKey(attributeName);
                setWidgetModel(chartViewer, chartBox, attributeKey);
            }
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.