public class DefaultNetconfDevice extends Object implements NetconfDevice
| Modifier and Type | Class and Description |
|---|---|
class |
DefaultNetconfDevice.SshNetconfSessionFactory |
| Modifier and Type | Field and Description |
|---|---|
static org.slf4j.Logger |
log |
protected NetconfSessionFactory |
sessionFactory |
| Constructor and Description |
|---|
DefaultNetconfDevice(NetconfDeviceInfo deviceInfo)
Creates a new default NETCONF device with the information provided.
|
| Modifier and Type | Method and Description |
|---|---|
void |
disconnect()
Ensures that all sessions are closed.
|
NetconfDeviceInfo |
getDeviceInfo()
return all the info associated with this device.
|
NetconfSession |
getSession()
Returns a NETCONF session context for this device.
|
boolean |
isActive()
Returns whether a device is a NETCONF device with a capabilities list
and is accessible.
|
public static final org.slf4j.Logger log
protected NetconfSessionFactory sessionFactory
public DefaultNetconfDevice(NetconfDeviceInfo deviceInfo) throws NetconfException
deviceInfo - information about the device to be created.NetconfException - if there are problems in creating or establishing
the underlying NETCONF connection and session.public boolean isActive()
NetconfDeviceisActive in interface NetconfDevicepublic NetconfSession getSession()
NetconfDevicegetSession in interface NetconfDevicepublic void disconnect()
NetconfDevicedisconnect in interface NetconfDevicepublic NetconfDeviceInfo getDeviceInfo()
NetconfDevicegetDeviceInfo in interface NetconfDevice