org.tango.server.properties
Class AttributePropertiesManager

java.lang.Object
  extended by org.tango.server.properties.AttributePropertiesManager

public final class AttributePropertiesManager
extends java.lang.Object

Manage attribute properties persistancy in tango db.

Author:
ABEILLE

Constructor Summary
AttributePropertiesManager(java.lang.String deviceName)
           
 
Method Summary
 java.util.Map<java.lang.String,java.lang.String> getAttributePropertiesFromDB(java.lang.String attributeName)
          Get an attribute's properties from tango db
 java.lang.String getAttributePropertyFromDB(java.lang.String attributeName, java.lang.String propertyName)
          Get an attribute property from tango db
 void removeAttributeProperties(java.lang.String... attributeNames)
           
 void setAttributePropertiesInDB(java.lang.String attributeName, java.util.Map<java.lang.String,java.lang.String> properties)
          Set attribute properties in tango db
 void setAttributePropertyInDB(java.lang.String attributeName, java.lang.String propertyName, java.lang.String value)
          Set attribute property in tango db
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AttributePropertiesManager

public AttributePropertiesManager(java.lang.String deviceName)
Method Detail

getAttributePropertiesFromDB

public java.util.Map<java.lang.String,java.lang.String> getAttributePropertiesFromDB(java.lang.String attributeName)
                                                                              throws fr.esrf.Tango.DevFailed
Get an attribute's properties from tango db

Parameters:
attributeName -
Returns:
The properties
Throws:
fr.esrf.Tango.DevFailed

removeAttributeProperties

public void removeAttributeProperties(java.lang.String... attributeNames)
                               throws fr.esrf.Tango.DevFailed
Throws:
fr.esrf.Tango.DevFailed

getAttributePropertyFromDB

public java.lang.String getAttributePropertyFromDB(java.lang.String attributeName,
                                                   java.lang.String propertyName)
                                            throws fr.esrf.Tango.DevFailed
Get an attribute property from tango db

Parameters:
attributeName -
propertyName -
Returns:
The property
Throws:
fr.esrf.Tango.DevFailed

setAttributePropertyInDB

public void setAttributePropertyInDB(java.lang.String attributeName,
                                     java.lang.String propertyName,
                                     java.lang.String value)
                              throws fr.esrf.Tango.DevFailed
Set attribute property in tango db

Parameters:
attributeName -
propertyName -
value -
Throws:
fr.esrf.Tango.DevFailed

setAttributePropertiesInDB

public void setAttributePropertiesInDB(java.lang.String attributeName,
                                       java.util.Map<java.lang.String,java.lang.String> properties)
                                throws fr.esrf.Tango.DevFailed
Set attribute properties in tango db

Parameters:
attributeName -
properties -
Throws:
fr.esrf.Tango.DevFailed


Copyright © 2012-2015. All Rights Reserved.