Class MedibusParsedWriter
java.lang.Object
com.framed.core.Service
com.framed.io.writer.Writer<org.json.JSONObject>
com.framed.communicator.io.parsed.MedibusParsedWriter
-
Field Summary
Fields inherited from class com.framed.io.writer.Writer
path, timeOnStartFields inherited from class com.framed.core.Service
ADDRESS_REGISTRY_SUFFIX, eventBus, formatter, logger -
Constructor Summary
ConstructorsConstructorDescriptionMedibusParsedWriter(String path, EventBus eventBus, org.json.JSONArray devices) -
Method Summary
Modifier and TypeMethodDescriptionvoidhandleEventBus(Object msg, String deviceName) voidWrites the given data to the configured path.Methods inherited from class com.framed.core.Service
addressRegistry, announceAddress, stop
-
Constructor Details
-
MedibusParsedWriter
-
-
Method Details
-
write
Description copied from class:WriterWrites the given data to the configured path. Concrete implementations must define how the data is serialized and stored.- Specified by:
writein classWriter<org.json.JSONObject>- Parameters:
data- the data to writedeviceName- the name of the device associated with the data- Throws:
IOException- if an I/O error occurs during writing
-
handleEventBus
-
