com.sun.jini.fiddler
Class FiddlerImpl.LeaseCancelledLogObj

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

private static class FiddlerImpl.LeaseCancelledLogObj
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 cancelled.

See Also:
FiddlerImpl.LocalLogHandler

Field Summary
private  Uuid leaseID
          The identifier assigned by the lease grantor to the lease that was cancelled.
private  Uuid registrationID
          The ID of the data structure record corresponding to the registration whose lease was cancelled.
private static long serialVersionUID
           
 
Constructor Summary
FiddlerImpl.LeaseCancelledLogObj(Uuid registrationID, Uuid leaseID)
          Constructs this class and stores the IDs corresponding to the lease that was cancelled.
 
Method Summary
 void apply(FiddlerImpl fiddlerImpl)
          Modifies this service's state by canceling the lease on the registration with ID equal to that stored by the constructor, as well as by updating the managed set of groups and locators (across all registrations) in the appropriate way.
 
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 cancelled.


leaseID

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

Constructor Detail

FiddlerImpl.LeaseCancelledLogObj

public FiddlerImpl.LeaseCancelledLogObj(Uuid registrationID,
                                        Uuid leaseID)
Constructs this class and stores the IDs corresponding to the lease that was cancelled.

Method Detail

apply

public void apply(FiddlerImpl fiddlerImpl)
Modifies this service's state by canceling the lease on the registration with ID equal to that stored by the constructor, as well as by updating the managed set of groups and locators (across all registrations) in the appropriate way. Note that the cancellation of a lease typically involves the modification of the managed sets in the discovery manager, which usually involves starting the discovery protocol. Since an IOException can occur when the discovery protocol fails to start, and since such a situation is un-recoverable, this method does the following: catches the exception, informs this service's administrator by displaying the stack trace, and exits.

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.