Package fr.esrf.TangoApi

Examples of fr.esrf.TangoApi.Database


        String tempAuthModel = null;
        String tempTechModel = null;

        try {
            Database database = TangoDeviceHelper.getDatabase();
            DbDatum dbDatum = database.get_device_property(getModel(), AUTH_DEVICE);
            tempAuthModel = dbDatum.extractString();

            DeviceProxy proxy = TangoDeviceHelper.getDeviceProxy(getModel());
            if (proxy != null) {
                DeviceAttribute deviceAttribute = proxy.read_attribute(TECH_DEVICE);
View Full Code Here


        long endTime = System.currentTimeMillis();
        System.out.println("RECORDED - duration = " + (endTime - beginTime));
    }

    private static void fillRecordedDevicesTreeMap() {
        Database database = TangoDeviceHelper.getDatabase();

        List<String> devicesList = new LinkedList<String>();
        try {
            // get all devices
            String[] exportedDevices = database.get_device_list(JOKER);
            for (String device : exportedDevices) {
                devicesList.add(device);
            }
        } catch (DevFailed e) {
            e.printStackTrace();
View Full Code Here

        String tempAuthModel = null;
        String tempTechModel = null;

        try {
            Database database = TangoDeviceHelper.getDatabase();
            DbDatum dbDatum = database.get_device_property(getModel(), AUTH_DEVICE);
            tempAuthModel = dbDatum.extractString();

            dbDatum = database.get_device_property(getModel(), TECH_DEVICE);
            tempTechModel = dbDatum.extractString();

            if ((tempAuthModel != null) && (!tempAuthModel.trim().isEmpty())
                    && (!ObjectUtils.sameObject(getAuthModel(), tempAuthModel))) {
                authModel = tempAuthModel;
View Full Code Here

                                    nexusFileName = attribute.extractString();
                                }
                            }
                            nexusFileNameMap.put(scanServerName.toLowerCase(), nexusFileName);
                            String dataRecorderDeviceName = "storage/recorder/datarecorder.1";
                            Database database = TangoDeviceHelper.getDatabase();
                            if (database != null) {
                                DbDatum dbDatum = database.get_device_property(scanServerName,
                                        "DataRecorder");
                                if (dbDatum != null) {
                                    dataRecorderDeviceName = dbDatum.extractString();
                                }
View Full Code Here

                                    nexusFileName = attribute.extractString();
                                }
                            }
                            nexusFileNameMap.put(scanServerName.toLowerCase(), nexusFileName);
                            String dataRecorderDeviceName = DEFAULT_RECORDER;
                            Database database = TangoDeviceHelper.getDatabase();
                            if (database != null) {
                                DbDatum dbDatum = database.get_device_property(scanServerName, DATA_RECORDER);
                                if (dbDatum != null) {
                                    dataRecorderDeviceName = dbDatum.extractString();
                                }

                                if (TangoDeviceHelper.isDeviceRunning(dataRecorderDeviceName)) {
View Full Code Here

            if (scanProxy != null) {
                try {
                    DeviceAttribute attribute = scanProxy.read_attribute("dataRecorded");
                    if (attribute.extractBoolean()) {
                        String dataRecorderDeviceName = "storage/recorder/datarecorder.1";
                        Database database = TangoDeviceHelper.getDatabase();
                        if (database != null) {
                            DbDatum dbDatum = database.get_device_property(scanServerName,
                                    "DataRecorder");
                            if (dbDatum != null) {
                                dataRecorderDeviceName = dbDatum.extractString();
                            }
View Full Code Here

            if (scanProxy != null) {
                try {
                    DeviceAttribute attribute = scanProxy.read_attribute("dataRecorded");
                    if (attribute.extractBoolean()) {
                        String dataRecorderDeviceName = "storage/recorder/datarecorder.1";
                        Database database = TangoDeviceHelper.getDatabase();
                        if (database != null) {
                            DbDatum dbDatum = database.get_device_property(scanServerName,
                                    "DataRecorder");
                            if (dbDatum != null) {
                                dataRecorderDeviceName = dbDatum.extractString();
                            }
View Full Code Here

                                    nexusFileName = attribute.extractString();
                                }
                            }
                            nexusFileNameMap.put(scanServerName.toLowerCase(), nexusFileName);
                            String dataRecorderDeviceName = DEFAULT_RECORDER;
                            Database database = TangoDeviceHelper.getDatabase();
                            if (database != null) {
                                DbDatum dbDatum = database.get_device_property(scanServerName, DATA_RECORDER);
                                if (dbDatum != null) {
                                    dataRecorderDeviceName = dbDatum.extractString();
                                }

                                if (TangoDeviceHelper.isDeviceRunning(dataRecorderDeviceName)) {
View Full Code Here

            if (scanProxy != null) {
                try {
                    DeviceAttribute attribute = scanProxy.read_attribute("dataRecorded");
                    if (attribute.extractBoolean()) {
                        String dataRecorderDeviceName = "storage/recorder/datarecorder.1";
                        Database database = TangoDeviceHelper.getDatabase();
                        if (database != null) {
                            DbDatum dbDatum = database.get_device_property(scanServerName,
                                    "DataRecorder");
                            if (dbDatum != null) {
                                dataRecorderDeviceName = dbDatum.extractString();
                            }
View Full Code Here

            if (scanProxy != null) {
                try {
                    DeviceAttribute attribute = scanProxy.read_attribute("dataRecorded");
                    if (attribute.extractBoolean()) {
                        String dataRecorderDeviceName = "storage/recorder/datarecorder.1";
                        Database database = TangoDeviceHelper.getDatabase();
                        if (database != null) {
                            DbDatum dbDatum = database.get_device_property(scanServerName,
                                    "DataRecorder");
                            if (dbDatum != null) {
                                dataRecorderDeviceName = dbDatum.extractString();
                            }
View Full Code Here

TOP

Related Classes of fr.esrf.TangoApi.Database

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.