public class NetconfConnector extends java.lang.Object implements Connector
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
uri |
Constructor and Description |
---|
NetconfConnector(java.util.Map props)
Creates new NetconfConnector
|
Modifier and Type | Method and Description |
---|---|
void |
close() |
protected void |
connect() |
java.lang.String[] |
getTunnelNames(java.lang.String path)
returns all the names for tunnels with the given xpath.
|
java.lang.String |
getURI() |
protected java.lang.String |
getXML(java.lang.String path)
returns xml for running configuration and device state information
with the given path or null otherwise.
|
boolean |
isConnected() |
static void |
main(java.lang.String[] args) |
java.lang.String |
reconnect()
It reconnects and returns null or error message upon failure
|
public NetconfConnector(java.util.Map props) throws java.lang.Exception
java.lang.Exception
protected void connect() throws java.io.IOException
java.io.IOException
public boolean isConnected()
isConnected
in interface Connector
public java.lang.String reconnect()
public java.lang.String[] getTunnelNames(java.lang.String path) throws java.io.IOException
java.io.IOException
protected java.lang.String getXML(java.lang.String path) throws java.io.IOException
java.io.IOException
public static void main(java.lang.String[] args)