com.vhosting.netconf
Class Commit
java.lang.Object
com.vhosting.netconf.Operation
com.vhosting.netconf.Commit
public class Commit
- extends Operation
The commit Netconf operation.
When a candidate configuration's content is complete, the
configuration data can be committed, publishing the data set to
the rest of the device and requesting the device to conform to
the behavior described in the new configuration.
To commit the candidate configuration as the device's new
current configuration, use the Commit operation.
Supported server capabilities:
urn:ietf:params:netconf:capability:candidate:1.0
urn:ietf:params:netconf:capability:confirmed-commit:1.0
- Version:
- 1.00, 02/11/2010
- Author:
- Giuseppe Palmeri
Constructor Summary |
Commit(Session session)
Create the commit Netconf operation. |
Method Summary |
void |
setConfirmed()
Perform a confirmed commit operation with
the confirm timeout defaults to 600 seconds. |
void |
setConfirmed(int timeout)
Perform a confirmed commit operation. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Commit
public Commit(Session session)
throws CapabilityException
- Create the commit Netconf operation.
- Parameters:
session
- The active session.
- Throws:
CapabilityException
- Throw this exception if the server
does not have the :candidate:1.0 capability.
setConfirmed
public void setConfirmed(int timeout)
throws CapabilityException
- Perform a confirmed commit operation.
- Parameters:
timeout
- Timeout period for confirmed commit, in seconds.
- Throws:
CapabilityException
- Throw this exception if the server
does not have the :confirmed-commit:1.0 capability.
setConfirmed
public void setConfirmed()
throws CapabilityException
- Perform a confirmed commit operation with
the confirm timeout defaults to 600 seconds.
- Throws:
CapabilityException
- Throw this exception if the server
does not have the :confirmed-commit:1.0 capability.