com.vhosting.netconf
Class Lock

java.lang.Object
  extended by com.vhosting.netconf.Operation
      extended by com.vhosting.netconf.Lock

public class Lock
extends Operation

The lock Netconf operation. The lock operation allows the client to lock the configuration system of a device. Supported server capabilities:

 urn:ietf:params:netconf:base:1.0
 urn:ietf:params:netconf:candidate:1.0
 urn:ietf:params:netconf:startup:1.0
 

Version:
1.00, 02/11/2010
Author:
Giuseppe Palmeri

Nested Class Summary
 
Nested classes/interfaces inherited from class com.vhosting.netconf.Operation
Operation.Reply
 
Field Summary
 
Fields inherited from class com.vhosting.netconf.Operation
operation, session
 
Constructor Summary
Lock(Session session, Datastore target)
          Create the lock Netconf operation.
 
Method Summary
 
Methods inherited from class com.vhosting.netconf.Operation
execute, execute, executeSync
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Lock

public Lock(Session session,
            Datastore target)
     throws CapabilityException
Create the lock Netconf operation.

Parameters:
session - The active session.
target - The target Container to lock.
Throws:
CapabilityException - Throw this exception if the server does not have the :candidate:1.0 capability and the target container is 'candidate'. Similarly, throw this exception if the server does not have the :startup:1.0 capability and the target container is 'startup'.