com.sun.jini.fiddler
Class FiddlerImpl.GroupsAddedToRegistrationLogObj

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

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

LogObj class whose instances are recorded to the log file whenever the managed set of groups corresponding to a registration is is augmented with new elements.

See Also:
FiddlerImpl.LocalLogHandler

Field Summary
private  String[] groups
          The set of groups added to the registration's managed set of groups
private  Uuid registrationID
          The ID of the data structure record corresponding to the registration whose managed set of groups was augmented.
private static long serialVersionUID
           
 
Constructor Summary
FiddlerImpl.GroupsAddedToRegistrationLogObj(Uuid registrationID, String[] groups)
          Constructs this class and stores the ID and new set of groups
 
Method Summary
 void apply(FiddlerImpl fiddlerImpl)
          Modifies this service's state by adding the set of group names to registration's managed set of groups, as well as by updating the set of all groups (across all registrations) to discover.
 
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 managed set of groups was augmented.


groups

private String[] groups
The set of groups added to the registration's managed set of groups

Constructor Detail

FiddlerImpl.GroupsAddedToRegistrationLogObj

public FiddlerImpl.GroupsAddedToRegistrationLogObj(Uuid registrationID,
                                                   String[] groups)
Constructs this class and stores the ID and new set of groups

Method Detail

apply

public void apply(FiddlerImpl fiddlerImpl)
Modifies this service's state by adding the set of group names to registration's managed set of groups, as well as by updating the set of all groups (across all registrations) to discover. Note that the augmentation of a registration's set of groups 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.