Package fr.soleil.globalscreen.core

Examples of fr.soleil.globalscreen.core.DevicePolledList


            }

        }

        Enumeration<DevicePolledList> tmpDevElement = m_deviceListTable.elements();
        DevicePolledList tmpPolledList = null;
        while (tmpDevElement.hasMoreElements()) {
            tmpPolledList = tmpDevElement.nextElement();
            if (tmpPolledList != null && !tmpPolledList.isRefreshing() && !tmpPolledList.isEmpty()) {
                tmpPolledList.startRefreshing();
            }
        }

        DeviceFactory.getInstance().stopRefresher();
    }
View Full Code Here


                tmpAttributePolledList.stopRefresher();
            }
        }

        Enumeration<DevicePolledList> tmpDevElement = m_deviceListTable.elements();
        DevicePolledList tmpPolledList = null;
        while (tmpDevElement.hasMoreElements()) {
            tmpPolledList = tmpDevElement.nextElement();
            if (tmpPolledList != null && tmpPolledList.isRefreshing() && tmpPolledList.isEmpty()) {
                tmpPolledList.stopRefreshing();
            }
        }

        // DeviceFactory.getInstance().stopRefresher();
View Full Code Here

                m_DeviceList.put(tmpDeviceName, aDevice);
            }
        }

        try {
            DevicePolledList tmpPolledList = null;
            if (!m_deviceListRef.containsKey(tmpDeviceName)) {
                if (m_deviceListTable.isEmpty()) {
                    tmpPolledList = new DevicePolledList();
                    String tmpHashCode = String.valueOf(tmpPolledList.hashCode());
                    m_deviceListRef.put(tmpDeviceName, tmpHashCode);
                    m_deviceListTable.put(tmpHashCode, tmpPolledList);
                }
                else {
                    Enumeration<DevicePolledList> tmpEnumeration = m_deviceListTable.elements();
                    while (tmpEnumeration.hasMoreElements()) {
                        tmpPolledList = tmpEnumeration.nextElement();
                        if (tmpPolledList.size() < BindingTango.NB_DEVICE_MAX) {
                            break;
                        }
                    }
                    if (tmpPolledList.size() == BindingTango.NB_ATTR_MAX) {
                        tmpPolledList = new DevicePolledList();
                        String tmpHashCode = String.valueOf(tmpPolledList.hashCode());
                        synchronized (m_deviceListRef) {
                            m_deviceListRef.put(tmpDeviceName, tmpHashCode);
                        }
                        synchronized (m_deviceListTable) {
                            m_deviceListTable.put(tmpHashCode, tmpPolledList);
                        }
                    }
                }
                if (tmpPolledList != null) {
                    tmpPolledList.addDevice(aDevice);
                }
            }
        }
        catch (Exception e) {
        }
View Full Code Here

            if (m_deviceListRef.containsKey(aDeviceName.toLowerCase())) {
                String tmpKey = m_deviceListRef.get(aDeviceName.toLowerCase());
                m_deviceListRef.remove(aDeviceName.toLowerCase());
                if (m_deviceListTable.containsKey(tmpKey)) {
                    DevicePolledList tmpPolledList = m_deviceListTable.get(tmpKey);
                    if (tmpPolledList != null && tmpPolledList.contains(aDeviceName.toLowerCase())) {
                        tmpPolledList.removeDevice(aDeviceName.toLowerCase());
                    }
                    if (tmpPolledList.isEmpty()) {
                        tmpPolledList.stopRefreshing();
                        m_deviceListTable.remove(tmpKey);
                        tmpPolledList = null;
                    }
                }
            }
View Full Code Here

TOP

Related Classes of fr.soleil.globalscreen.core.DevicePolledList

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.