Interface NetconfDeviceFactory

  • Functional Interface:
    This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

    @FunctionalInterface
    public interface NetconfDeviceFactory
    Abstract interface for the creation of a NETCONF device.
    • Method Detail

      • createNetconfDevice

        NetconfDevice createNetconfDevice​(NetconfDeviceInfo netconfDeviceInfo)
                                   throws NetconfException
        Creates a new NETCONF device based on the supplied information.
        Parameters:
        netconfDeviceInfo - information of the device to create.
        Returns:
        Instance of NetconfDevice.
        Throws:
        NetconfException - when problems arise creating the device and establishing the connection.
      • createNetconfDevice

        @Beta
        default NetconfDevice createNetconfDevice​(NetconfDeviceInfo netconfDeviceInfo,
                                                  boolean isMaster)
                                           throws NetconfException
        Creates a new NETCONF device based on the supplied information.
        Parameters:
        netconfDeviceInfo - information of the device to create.
        isMaster - if true create secure transport session with the device, else just create a proxy session
        Returns:
        Instance of NetconfDevice.
        Throws:
        NetconfException - when problems arise creating the device and establishing the connection.