Skip navigation links
HDB++ Java Configurator
HDB++ configurator classes


See: Description

HDB++ configurator classes 
Package Description
org.tango.hdb_configurator.configurator  
Other Packages 
Package Description
org.tango.hdb_configurator.common  
org.tango.hdb_configurator.diagnostics  
org.tango.hdb_configurator.statistics  

HDB++ configurator classes


Getting started with java HDB++ configurator api



The quickest way of getting started is by studying this example:

/**
* Example of using the HDB++ configurator API
*/
package my_package;

import org.Tango.hdb_configurator.configurator.HdbAttribute;
import org.Tango.hdb_configurator.configurator.ManageAttributes;
import fr.esrf.TangoDs.Except;
import fr.esrf.Tango.DevFailed;

public class MyAttributeManagement {
    public static void main (String args[]) {
      try {
        // Create a hdb attributeList list
        // These attributes are pushed by the device code and they will be started later
        ArrayList<HdbAttribute> hdbAttributes = new ArrayList<HdbAttribute>();
        hdbAttributes.add(new HdbAttribute("sr/v-rga/c1-cv6000/mass12", ManageAttributes.PUSHED_BY_CODE, ManageAttributes.STOP_ARCHIVING));
        hdbAttributes.add(new HdbAttribute("sr/v-rga/c1-cv6000/mass14", ManageAttributes.PUSHED_BY_CODE, ManageAttributes.STOP_ARCHIVING));
        hdbAttributes.add(new HdbAttribute("sr/v-rga/c1-cv6000/mass15", ManageAttributes.PUSHED_BY_CODE, ManageAttributes.STOP_ARCHIVING));
        hdbAttributes.add(new HdbAttribute("sr/v-rga/c1-cv6000/mass16", ManageAttributes.PUSHED_BY_CODE, ManageAttributes.STOP_ARCHIVING));

        // Add these attributes to an archiver
        String archiver = "tango/hdb/es-2";
        ManageAttributes.addAttributes(archiver, hdbAttributes);


        // Create a attributeList name list to be started
        ArrayList<String> attributeNames = new ArrayList<String>();
        attributeNames.add("sr/v-rga/c1-cv6000/mass12");
        attributeNames.add("sr/v-rga/c1-cv6000/mass14");
        attributeNames.add("sr/v-rga/c1-cv6000/mass15");
        attributeNames.add("sr/v-rga/c1-cv6000/mass16");

        // Start archiving
        ManageAttributes.addAttributes(attributeNames);
      } catch (DevFailed e) {
        Except.print_exception(e);
      }
    }
}


HDB++ Java Configurator