com.vhosting.netconf.yuma
Class Load.LoadReply

java.lang.Object
  extended by com.vhosting.netconf.Operation.Reply
      extended by com.vhosting.netconf.yuma.Load.LoadReply
Enclosing class:
Load

public class Load.LoadReply
extends Operation.Reply

This class provides specific methods to process the data obtained in response to a RpcReply after a load operation.

Author:
Giuseppe Palmeri

Constructor Summary
Load.LoadReply(RpcReply reply)
          Constructs an instance of the class.
 
Method Summary
 int compareVersion(Date version)
          Allows you to run a comparison between the version of the module loaded on the server.
 Date getModuleRevision()
          Allows you to retrieve the module revision in response to the Load operation.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Load.LoadReply

public Load.LoadReply(RpcReply reply)
Constructs an instance of the class.

Parameters:
reply - The Rpc Reply for the load operation.
Method Detail

getModuleRevision

public Date getModuleRevision()
Allows you to retrieve the module revision in response to the Load operation.

Returns:
The module revision date or null if not exists.

compareVersion

public int compareVersion(Date version)
Allows you to run a comparison between the version of the module loaded on the server.

Parameters:
version - The server module revision date.
Returns:
The value 0 if equal; a value less than 0 if the module revision is before of the specified Date; and a value greater than 0 if the module revision is after the specified Date.
See Also:
getModuleRevision()