Class ReportWriter
- java.lang.Object
-
- org.somda.sdc.glue.consumer.report.helper.ReportWriter
-
public class ReportWriter extends Object
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
RemoteMdibAccessinstance understands.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidwrite(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 Detail
-
write
public void write(org.somda.sdc.biceps.model.message.AbstractReport report, RemoteMdibAccess mdibAccess) throws ReportProcessingException, PreprocessingExceptionTransforms 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.
-
-