com.sun.jini.reggie
Class RegistrarImpl.UnicastPortSetLogObj
java.lang.Object
com.sun.jini.reggie.RegistrarImpl.UnicastPortSetLogObj
- All Implemented Interfaces:
- RegistrarImpl.LogRecord, Serializable
- Enclosing class:
- RegistrarImpl
private static class RegistrarImpl.UnicastPortSetLogObj
- extends Object
- implements RegistrarImpl.LogRecord
LogObj class whose instances are recorded to the log file whenever
the Unicast Port Number is set to a new value.
Note: the apply() method of this class merely sets the private field
unicastPort. This means that during a recovery, the unicaster
thread will be created with this new port number ONLY IF that
thread is created AFTER recovery is complete. Thus, it is
important that at re-initialization during a re-activation
of the Registrar, the recovery() method is invoked before
the unicaster thread is created.
- See Also:
RegistrarImpl.LocalLogHandler
Method Summary |
void |
apply(RegistrarImpl regImpl)
Modifies the state of the Registrar by setting the value of the
private unicastPort field to the value of the newPort field. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
newPort
private int newPort
- The new port number.
RegistrarImpl.UnicastPortSetLogObj
public RegistrarImpl.UnicastPortSetLogObj(int newPort)
- Simple constructor
apply
public void apply(RegistrarImpl regImpl)
- Modifies the state of the Registrar by setting the value of the
private unicastPort field to the value of the newPort field.
- Specified by:
apply
in interface RegistrarImpl.LogRecord
- See Also:
RegistrarImpl.LocalLogHandler.applyUpdate(java.lang.Object)
Copyright 2007-2010, multiple authors.
Licensed under the Apache License, Version 2.0, see the NOTICE file for attributions.