com.sun.jini.fiddler
Class FiddlerImpl.RegistrationGrantedLogObj

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

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

LogObj class whose instances are recorded to the log file whenever a registration is created and returned to a client.

See Also:
FiddlerImpl.LocalLogHandler

Field Summary
private  FiddlerImpl.RegistrationInfo regInfo
          Object which acts as a record of the current registration with the lookup discovery service; containing all of the information about that registration: IDs, managed sets, lease information, and event registration information.
private static long serialVersionUID
           
 
Constructor Summary
FiddlerImpl.RegistrationGrantedLogObj(FiddlerImpl.RegistrationInfo regInfo)
          Constructs this class and stores the registration information
 
Method Summary
 void apply(FiddlerImpl fiddlerImpl)
          Modifies this service's state by registering the information stored in the regInfo parameter; and by updating both the event sequence number and the event ID for the registration.
 
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

regInfo

private FiddlerImpl.RegistrationInfo regInfo
Object which acts as a record of the current registration with the lookup discovery service; containing all of the information about that registration: IDs, managed sets, lease information, and event registration information.

Constructor Detail

FiddlerImpl.RegistrationGrantedLogObj

public FiddlerImpl.RegistrationGrantedLogObj(FiddlerImpl.RegistrationInfo regInfo)
Constructs this class and stores the registration information

Method Detail

apply

public void apply(FiddlerImpl fiddlerImpl)
Modifies this service's state by registering the information stored in the regInfo parameter; and by updating both the event sequence number and the event ID for the registration. Note that the granting of a registration to a client 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.