Class ReportWriter
java.lang.Object
org.somda.sdc.glue.consumer.report.helper.ReportWriter
Helper class that accepts any state reports and writes them to a RemoteMdibAccess instance.
The ReportWriter acts as a dispatcher for all reports SDC generates and which have to be transformed
to modifications a RemoteMdibAccess instance understands.
-
Method Summary
Modifier and TypeMethodDescriptionvoidwrite(org.somda.sdc.biceps.model.message.AbstractReport report, RemoteMdibAccess mdibAccess) Transforms the given report to a modifications set and writes it to the RemoteMdibAccess instance.
-
Method Details
-
write
public void write(org.somda.sdc.biceps.model.message.AbstractReport report, RemoteMdibAccess mdibAccess) throws ReportProcessingException, PreprocessingException Transforms the given report to a modifications set and writes it to the RemoteMdibAccess instance.- Parameters:
report- the report to write.mdibAccess- the MDIB access to write to.- Throws:
ReportProcessingException- in case the report cannot be transformed or dispatched correctly.PreprocessingException- corresponds to the exception thatRemoteMdibAccess.writeDescription(MdibVersion, BigInteger, BigInteger, MdibDescriptionModifications)orRemoteMdibAccess.writeStates(MdibVersion, MdibStateModifications)throws.
-