Locks the candidate configuration. @return true if successful. @throws java.io.IOException If there are errors communicating with the netconf server. @throws org.xml.sax.SAXException If there are errors parsing the XML reply. @throws IllegalStateException if the connection is not establishe
()
| 955 | * @throws IllegalStateException if the connection is not established |
| 956 | */ |
| 957 | public boolean lockConfig() throws IOException, SAXException { |
| 958 | if (netconfSession == null) { |
| 959 | throw new IllegalStateException("Cannot execute RPC, you need to " + |
| 960 | "establish a connection first."); |
| 961 | } |
| 962 | return this.netconfSession.lockConfig(); |
| 963 | } |
| 964 | |
| 965 | /** |
| 966 | * Unlocks the candidate configuration. |
no outgoing calls