Interface RemoteMdibAccess

    • Method Detail

      • writeDescription

        WriteDescriptionResult writeDescription​(MdibVersion mdibVersion,
                                                @Nullable
                                                BigInteger mdDescriptionVersion,
                                                @Nullable
                                                BigInteger mdStateVersion,
                                                MdibDescriptionModifications mdibDescriptionModifications)
                                         throws PreprocessingException
        Processes the description modifications object, stores the data internally and trigger an event.

        Data is passed through if the elements of the modification change set do not violate the MDIB storage.

        Attention: description modifications are expensive. Even if this operation allows to change states, it should only be used for changes that affect descriptors.

        Parameters:
        mdibVersion - the MDIB version to apply.
        mdDescriptionVersion - the MD description version to apply. Leave null if unknown.
        mdStateVersion - the MD state version to apply. Leave null if unknown.
        mdibDescriptionModifications - a set of insertions, updates and deletes.
        Returns:
        a write result including inserted, updates and deleted entities.
        Throws:
        PreprocessingException - if something goes wrong during preprocessing, i.e., the consistency of the MDIB would be violated.
      • writeStates

        WriteStateResult writeStates​(MdibVersion mdibVersion,
                                     MdibStateModifications mdibStateModifications)
                              throws PreprocessingException
        Processes the state modifications object, stores the data internally and triggers an event.

        Data is passed through if the elements of the modification change set do not violate the MDIB storage.

        Hint: this function cheap in terms of runtime and should be used for state changes.

        Parameters:
        mdibVersion - the MDIB version to apply.
        mdibStateModifications - a set of state updates.
        Returns:
        a write result including the updated entities.
        Throws:
        PreprocessingException - if something goes wrong during preprocessing, i.e., the consistency of the MDIB would be violated.