com.sun.jini.fiddler
Class FiddlerImpl.GroupsSetInRegistrationLogObj

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

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

LogObj class whose instances are recorded to the log file whenever a the managed set of groups corresponding to a registration is is replaced (set) with a new set of group names.

See Also:
FiddlerImpl.LocalLogHandler

Field Summary
private  String[] groups
          The set of groups that replaced the registration's current managed set of groups.
private  Uuid registrationID
          The ID of the data structure record corresponding to the registration whose managed set of groups was replaced.
(package private) static long serialVersionUID
           
 
Constructor Summary
FiddlerImpl.GroupsSetInRegistrationLogObj(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 replacing the registration's current managed set of groups with the set of group names stored in this class by the constructor, 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

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 replaced.


groups

private String[] groups
The set of groups that replaced the registration's current managed set of groups.

Constructor Detail

FiddlerImpl.GroupsSetInRegistrationLogObj

public FiddlerImpl.GroupsSetInRegistrationLogObj(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 replacing the registration's current managed set of groups with the set of group names stored in this class by the constructor, as well as by updating the set of all groups (across all registrations) to discover. Note that the replacement 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.