// =============================================================== public void manageTangoHostProperties(TangoHost[] hosts) { try { String starters = AstorUtil.getStarterDeviceHeader() + "%"; MySqlUtil mysql = MySqlUtil.getInstance(); ArrayList<String[]> collections = mysql.getHostProperty(starters, "HostCollection"); ArrayList<String[]> host_usage = mysql.getHostProperty(starters, "HostUsage"); ArrayList<String[]> use_evt = mysql.getHostProperty(starters, "UseEvents"); for (TangoHost host : hosts) { String devname = host.get_name(); for (String[] collection : collections) if (devname.equals(collection[0])) host.collection = collection[1]; for (String[] usage : host_usage) if (devname.equals(usage[0])) host.usage = usage[1]; for (String[] use : use_evt) if (devname.equals(use[0])) host.manageNotifd = (use[1].equals("true") || use[1].equals("1")); } } catch (DevFailed e) { ErrorPane.showErrorMessage(new JFrame(), null, e); } }