Class NetconfSessionAdapter

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void addDeviceOutputListener​(NetconfDeviceOutputEventListener listener)
      Add a listener to the underlying stream handler implementation.
      boolean close()
      Closes the Netconf session with the device.
      boolean copyConfig​(java.lang.String netconfTargetConfig, java.lang.String newConfiguration)
      Copies the new configuration, an Url or a complete configuration xml tree to the target configuration.
      boolean copyConfig​(DatastoreId netconfTargetConfig, java.lang.String newConfiguration)
      Copies the new configuration, an Url or a complete configuration xml tree to the target configuration.
      boolean copyConfig​(DatastoreId destination, DatastoreId source)
      Copies the configuration between configuration datastores.
      boolean deleteConfig​(DatastoreId netconfTargetConfig)
      Deletes part of the specified configuration based on the filterSchema.
      java.lang.String doWrappedRpc​(java.lang.String request)
      Executes an synchronous RPC to the server and wrap the request in RPC header.
      boolean editConfig​(java.lang.String newConfiguration)
      Retrieves part of the specified configuration based on the filterSchema.
      boolean editConfig​(DatastoreId netconfTargetConfig, java.lang.String mode, java.lang.String newConfiguration)
      Retrieves part of the specified configuration based on the filterSchema.
      void endSubscription()
      Ends subscription to the device's notifications.
      java.lang.String get​(java.lang.String request)
      Retrieves the requested configuration, different from get-config.
      java.lang.String get​(java.lang.String filterSchema, java.lang.String withDefaultsMode)
      Retrieves the requested data.
      java.lang.String getConfig​(DatastoreId netconfTargetConfig)
      Retrieves the specified configuration.
      java.lang.String getConfig​(DatastoreId netconfTargetConfig, java.lang.String configurationFilterSchema)
      Retrieves part of the specified configuration based on the filterSchema.
      java.util.Set<java.lang.String> getDeviceCapabilitiesSet()
      Gets the capabilities of the remote Netconf device associated to this session.
      java.lang.String getSessionId()
      Gets the session ID of the Netconf session.
      boolean lock​(DatastoreId datastore)
      Locks the specified configuration.
      void removeDeviceOutputListener​(NetconfDeviceOutputEventListener listener)
      Remove a listener from the underlying stream handler implementation.
      java.util.concurrent.CompletableFuture<java.lang.String> request​(java.lang.String request)
      Executes an asynchronous RPC to the server and obtains a future to be completed.
      java.lang.String requestSync​(java.lang.String request)
      Executes an synchronous RPC to the server.
      java.util.concurrent.CompletableFuture<java.lang.String> rpc​(java.lang.String request)
      Executes an asynchronous RPC request to the server and obtains a future for it's response.
      void startSubscription()
      Starts subscription to the device's notifications.
      void startSubscription​(java.lang.String filterSchema)
      Starts subscription to the device's notifications.
      boolean unlock​(DatastoreId datastore)
      Unlocks the specified configuration.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait