Class InfluxModelAccess

java.lang.Object
de.iip_ecosphere.platform.connectors.model.AbstractModelAccess
de.iip_ecosphere.platform.connectors.model.AbstractTypeMappingModelAccess
de.iip_ecosphere.platform.connectors.influxv3.InfluxModelAccess
All Implemented Interfaces:
de.iip_ecosphere.platform.connectors.model.ModelAccess

public class InfluxModelAccess extends de.iip_ecosphere.platform.connectors.model.AbstractTypeMappingModelAccess
Model access for the INFLUX connector.
Author:
Holger Eichelberger, SSE
  • Field Details

  • Constructor Details

    • InfluxModelAccess

      InfluxModelAccess(InfluxConnector<?,?> connector)
      Creates an instance.
      Parameters:
      connector - the instance
  • Method Details

    • getInputConverter

      public de.iip_ecosphere.platform.connectors.model.ModelInputConverter getInputConverter()
      Returns the input converter instance.
      Returns:
      the input converter
    • getOutputConverter

      public de.iip_ecosphere.platform.connectors.model.ModelOutputConverter getOutputConverter()
      Returns the output converter instance.
      Returns:
      the output converter
    • initPoint

      private void initPoint()
      Lazily initializes a point to write.
    • clearPoint

      private void clearPoint()
      Clears the point to write.
    • setInt

      public void setInt(String qName, int value) throws IOException
      Specified by:
      setInt in interface de.iip_ecosphere.platform.connectors.model.ModelAccess
      Specified by:
      setInt in class de.iip_ecosphere.platform.connectors.model.AbstractTypeMappingModelAccess
      Throws:
      IOException
    • setLong

      public void setLong(String qName, long value) throws IOException
      Specified by:
      setLong in interface de.iip_ecosphere.platform.connectors.model.ModelAccess
      Specified by:
      setLong in class de.iip_ecosphere.platform.connectors.model.AbstractTypeMappingModelAccess
      Throws:
      IOException
    • setLongIndex

      public void setLongIndex(String qName, long value) throws IOException
      Throws:
      IOException
    • setFloatIndex

      public void setFloatIndex(String qName, float value) throws IOException
      Throws:
      IOException
    • setByte

      public void setByte(String qName, byte value) throws IOException
      Specified by:
      setByte in interface de.iip_ecosphere.platform.connectors.model.ModelAccess
      Specified by:
      setByte in class de.iip_ecosphere.platform.connectors.model.AbstractTypeMappingModelAccess
      Throws:
      IOException
    • setShort

      public void setShort(String qName, short value) throws IOException
      Specified by:
      setShort in interface de.iip_ecosphere.platform.connectors.model.ModelAccess
      Specified by:
      setShort in class de.iip_ecosphere.platform.connectors.model.AbstractTypeMappingModelAccess
      Throws:
      IOException
    • setBoolean

      public void setBoolean(String qName, boolean value) throws IOException
      Specified by:
      setBoolean in interface de.iip_ecosphere.platform.connectors.model.ModelAccess
      Specified by:
      setBoolean in class de.iip_ecosphere.platform.connectors.model.AbstractTypeMappingModelAccess
      Throws:
      IOException
    • setDouble

      public void setDouble(String qName, double value) throws IOException
      Specified by:
      setDouble in interface de.iip_ecosphere.platform.connectors.model.ModelAccess
      Specified by:
      setDouble in class de.iip_ecosphere.platform.connectors.model.AbstractTypeMappingModelAccess
      Throws:
      IOException
    • setFloat

      public void setFloat(String qName, float value) throws IOException
      Specified by:
      setFloat in interface de.iip_ecosphere.platform.connectors.model.ModelAccess
      Specified by:
      setFloat in class de.iip_ecosphere.platform.connectors.model.AbstractTypeMappingModelAccess
      Throws:
      IOException
    • setString

      public void setString(String qName, String value) throws IOException
      Specified by:
      setString in interface de.iip_ecosphere.platform.connectors.model.ModelAccess
      Specified by:
      setString in class de.iip_ecosphere.platform.connectors.model.AbstractTypeMappingModelAccess
      Throws:
      IOException
    • get

      public Object get(String qName) throws IOException
      Throws:
      IOException
    • getLongIndex

      public long getLongIndex(String qName) throws IOException
      Throws:
      IOException
    • getFloatIndex

      public float getFloatIndex(String qName) throws IOException
      Throws:
      IOException
    • writeCompleted

      void writeCompleted()
      Called by connector when writing of the current object is completed.
    • setReadData

      void setReadData(Map<String,Object> values)
      Connector sets the data to read from.
      Parameters:
      values - the values as map (field name; value)
    • readCompleted

      void readCompleted()
      Connector indicates end reading, record can be disposed.
    • dispose

      public void dispose()
    • call

      public Object call(String qName, Object... arg1) throws IOException
      Throws:
      IOException
    • getQSeparator

      public String getQSeparator()
    • getStruct

      public <T> T getStruct(String arg0, Class<T> arg1) throws IOException
      Throws:
      IOException
    • monitor

      public void monitor(String... qName) throws IOException
      Specified by:
      monitor in interface de.iip_ecosphere.platform.connectors.model.ModelAccess
      Overrides:
      monitor in class de.iip_ecosphere.platform.connectors.model.AbstractModelAccess
      Throws:
      IOException
    • registerCustomType

      public void registerCustomType(Class<?> cls) throws IOException
      Throws:
      IOException
    • setStruct

      public void setStruct(String arg0, Object arg1) throws IOException
      Throws:
      IOException
    • topInstancesQName

      public String topInstancesQName()
    • monitor

      public void monitor(int notificationInterval, String... qNames) throws IOException
      Throws:
      IOException
    • monitorModelChanges

      public void monitorModelChanges(int notificationInterval) throws IOException
      Throws:
      IOException
    • stepInto

      public de.iip_ecosphere.platform.connectors.model.ModelAccess stepInto(String name) throws IOException
      Throws:
      IOException
    • stepOut

      public de.iip_ecosphere.platform.connectors.model.ModelAccess stepOut()
    • getConnectorParameter

      public de.iip_ecosphere.platform.connectors.ConnectorParameter getConnectorParameter()
      Specified by:
      getConnectorParameter in class de.iip_ecosphere.platform.connectors.model.AbstractModelAccess