Class InfluxModelAccess
java.lang.Object
de.iip_ecosphere.platform.connectors.model.AbstractModelAccess
de.iip_ecosphere.platform.connectors.model.AbstractTypeMappingModelAccess
de.iip_ecosphere.platform.connectors.influx.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
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionclassData input converter.classData output converter.Nested classes/interfaces inherited from class de.iip_ecosphere.platform.connectors.model.AbstractModelAccess
de.iip_ecosphere.platform.connectors.model.AbstractModelAccess.NotificationChangedListener -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate voidClears the point to write.voiddispose()de.iip_ecosphere.platform.connectors.ConnectorParameterfloatgetFloatIndex(String qName) de.iip_ecosphere.platform.connectors.model.ModelInputConverterReturns the input converter instance.longgetLongIndex(String qName) de.iip_ecosphere.platform.connectors.model.ModelOutputConverterReturns the output converter instance.<T> Tprivate voidLazily initializes a point to write.voidvoidvoidmonitorModelChanges(int notificationInterval) (package private) voidConnector indicates end reading, record can be disposed.voidregisterCustomType(Class<?> cls) voidsetBoolean(String qName, boolean value) voidvoidvoidvoidsetFloatIndex(String qName, float value) voidvoidvoidsetLongIndex(String qName, long value) (package private) voidsetReadData(Map<String, Object> values) Connector sets the data to read from.voidvoidvoidde.iip_ecosphere.platform.connectors.model.ModelAccessde.iip_ecosphere.platform.connectors.model.ModelAccessstepOut()(package private) voidCalled by connector when writing of the current object is completed.Methods inherited from class de.iip_ecosphere.platform.connectors.model.AbstractTypeMappingModelAccess
setMethods inherited from class de.iip_ecosphere.platform.connectors.model.AbstractModelAccess
iqName, isDetailNotifiedItemEnabled, monitorModelChanges, qName, setDetailNotifiedItem, useNotifications, useNotificationsMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface de.iip_ecosphere.platform.connectors.model.ModelAccess
get, getBigDecimal, getBigDecimal, getBigInteger, getBigInteger, getBoolean, getBoolean, getByte, getByte, getByteArray, getByteArray, getDate, getDate, getDouble, getDouble, getDoubleArray, getDoubleArray, getElementList, getElementList, getEnum, getEnum, getFloat, getFloat, getFloatIndex, getInt, getInt, getInteger, getInteger, getIntegerArray, getIntegerArray, getList, getList, getLocalDateTime, getLocalDateTime, getLong, getLong, getLongIndex, getMultiValue, getObject, getObject, getShort, getShort, getString, getString, getStringArray, getStringArray, setBigDecimal, setBigInteger, setByteArray, setDate, setDoubleArray, setElementList, setEnum, setEnumAsName, setInteger, setIntegerArray, setList, setLocalDateTime, setMultiValue, setMultiValue, setObject, setStringArray
-
Field Details
-
FIELD_TIME
- See Also:
-
SEPARATOR
- See Also:
-
nesting
-
prefix
-
batch
-
inputConverter
-
outputConverter
-
connector
-
writePoint
private com.influxdb.client.write.Point writePoint -
writePointTime
-
readValues
-
-
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
- Specified by:
setIntin interfacede.iip_ecosphere.platform.connectors.model.ModelAccess- Specified by:
setIntin classde.iip_ecosphere.platform.connectors.model.AbstractTypeMappingModelAccess- Throws:
IOException
-
setLong
- Specified by:
setLongin interfacede.iip_ecosphere.platform.connectors.model.ModelAccess- Specified by:
setLongin classde.iip_ecosphere.platform.connectors.model.AbstractTypeMappingModelAccess- Throws:
IOException
-
setLongIndex
- Throws:
IOException
-
setFloatIndex
- Throws:
IOException
-
setByte
- Specified by:
setBytein interfacede.iip_ecosphere.platform.connectors.model.ModelAccess- Specified by:
setBytein classde.iip_ecosphere.platform.connectors.model.AbstractTypeMappingModelAccess- Throws:
IOException
-
setShort
- Specified by:
setShortin interfacede.iip_ecosphere.platform.connectors.model.ModelAccess- Specified by:
setShortin classde.iip_ecosphere.platform.connectors.model.AbstractTypeMappingModelAccess- Throws:
IOException
-
setBoolean
- Specified by:
setBooleanin interfacede.iip_ecosphere.platform.connectors.model.ModelAccess- Specified by:
setBooleanin classde.iip_ecosphere.platform.connectors.model.AbstractTypeMappingModelAccess- Throws:
IOException
-
setDouble
- Specified by:
setDoublein interfacede.iip_ecosphere.platform.connectors.model.ModelAccess- Specified by:
setDoublein classde.iip_ecosphere.platform.connectors.model.AbstractTypeMappingModelAccess- Throws:
IOException
-
setFloat
- Specified by:
setFloatin interfacede.iip_ecosphere.platform.connectors.model.ModelAccess- Specified by:
setFloatin classde.iip_ecosphere.platform.connectors.model.AbstractTypeMappingModelAccess- Throws:
IOException
-
setString
- Specified by:
setStringin interfacede.iip_ecosphere.platform.connectors.model.ModelAccess- Specified by:
setStringin classde.iip_ecosphere.platform.connectors.model.AbstractTypeMappingModelAccess- Throws:
IOException
-
get
- Throws:
IOException
-
getLongIndex
- Throws:
IOException
-
getFloatIndex
- Throws:
IOException
-
writeCompleted
void writeCompleted()Called by connector when writing of the current object is completed. -
setReadData
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
- Throws:
IOException
-
getQSeparator
-
getStruct
- Throws:
IOException
-
monitor
- Specified by:
monitorin interfacede.iip_ecosphere.platform.connectors.model.ModelAccess- Overrides:
monitorin classde.iip_ecosphere.platform.connectors.model.AbstractModelAccess- Throws:
IOException
-
registerCustomType
- Throws:
IOException
-
setStruct
- Throws:
IOException
-
topInstancesQName
-
monitor
- Throws:
IOException
-
monitorModelChanges
- 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:
getConnectorParameterin classde.iip_ecosphere.platform.connectors.model.AbstractModelAccess
-