com.sun.jini.fiddler
Class FiddlerImpl.LeaseRenewedLogObj

java.lang.Object
  extended by com.sun.jini.fiddler.FiddlerImpl.LeaseRenewedLogObj
All Implemented Interfaces:
FiddlerImpl.LogRecord, Serializable
Enclosing class:
FiddlerImpl

private static class FiddlerImpl.LeaseRenewedLogObj
extends Object
implements FiddlerImpl.LogRecord

LogObj class whose instances are recorded to the log file whenever a lease on an existing registration (granted by the current backend server of the lookup discovery service -- the lease grantor) is renewed.

See Also:
FiddlerImpl.LocalLogHandler

Field Summary
private  long expiration
          The new absolute time of expiration of the lease that was renewed.
private  Uuid leaseID
          The identifier assigned by the lease grantor to the lease that was renewed.
private  Uuid registrationID
          The ID of the data structure record corresponding to the registration whose lease was renewed.
private static long serialVersionUID
           
 
Constructor Summary
FiddlerImpl.LeaseRenewedLogObj(Uuid registrationID, Uuid leaseID, long expiration)
          Constructs this class and stores the IDs and the expiration time
 
Method Summary
 void apply(FiddlerImpl fiddlerImpl)
          Modifies this service's state by renewing the lease with ID equal to this class' leaseID field, and which corresponds to the regInfo record.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

serialVersionUID

private static final long serialVersionUID
See Also:
Constant Field Values

registrationID

private Uuid registrationID
The ID of the data structure record corresponding to the registration whose lease was renewed.


leaseID

private Uuid leaseID
The identifier assigned by the lease grantor to the lease that was renewed.


expiration

private long expiration
The new absolute time of expiration of the lease that was renewed.

Constructor Detail

FiddlerImpl.LeaseRenewedLogObj

public FiddlerImpl.LeaseRenewedLogObj(Uuid registrationID,
                                      Uuid leaseID,
                                      long expiration)
Constructs this class and stores the IDs and the expiration time

Method Detail

apply

public void apply(FiddlerImpl fiddlerImpl)
Modifies this service's state by renewing the lease with ID equal to this class' leaseID field, and which corresponds to the regInfo record. The lease will be renewed to have a new expiration time equal to the value of the expiration field.

Specified by:
apply in interface FiddlerImpl.LogRecord
See Also:
FiddlerImpl.LocalLogHandler.applyUpdate(java.lang.Object)


Copyright 2007-2010, multiple authors.
Licensed under the Apache License, Version 2.0, see the NOTICE file for attributions.