com.sun.jini.reggie
Class RegistrarImpl.LookupLocatorsChangedLogObj

java.lang.Object
  extended by com.sun.jini.reggie.RegistrarImpl.LookupLocatorsChangedLogObj
All Implemented Interfaces:
RegistrarImpl.LogRecord, Serializable
Enclosing class:
RegistrarImpl

private static class RegistrarImpl.LookupLocatorsChangedLogObj
extends Object
implements RegistrarImpl.LogRecord

LogObj class whose instances are recorded to the log file whenever the set of locators of lookup services to join is changed.

See Also:
RegistrarImpl.LocalLogHandler

Field Summary
private  LookupLocator[] locators
          The new locators to join.
private static long serialVersionUID
           
 
Constructor Summary
RegistrarImpl.LookupLocatorsChangedLogObj(LookupLocator[] locators)
          Simple constructor
 
Method Summary
 void apply(RegistrarImpl regImpl)
          Modifies the state of the Registrar by setting the private field lookupLocators to the reference to the locators field.
private  void readObject(ObjectInputStream stream)
          Reads in null-terminated list of MarshalledInstances, from which locators are unmarshalled.
private  void writeObject(ObjectOutputStream stream)
          Writes locators as a null-terminated list of MarshalledInstances.
 
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

locators

private transient LookupLocator[] locators
The new locators to join.

Constructor Detail

RegistrarImpl.LookupLocatorsChangedLogObj

public RegistrarImpl.LookupLocatorsChangedLogObj(LookupLocator[] locators)
Simple constructor

Method Detail

apply

public void apply(RegistrarImpl regImpl)
Modifies the state of the Registrar by setting the private field lookupLocators to the reference to the locators field.

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

writeObject

private void writeObject(ObjectOutputStream stream)
                  throws IOException
Writes locators as a null-terminated list of MarshalledInstances.

Throws:
IOException

readObject

private void readObject(ObjectInputStream stream)
                 throws IOException,
                        ClassNotFoundException
Reads in null-terminated list of MarshalledInstances, from which locators are unmarshalled.

Throws:
IOException
ClassNotFoundException


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