private static class RegistrarImpl.UnicastPortSetLogObj extends Object implements RegistrarImpl.LogRecord
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.
RegistrarImpl.LocalLogHandler
Modifier and Type | Field and Description |
---|---|
private int |
newPort
The new port number.
|
private static long |
serialVersionUID |
Constructor and Description |
---|
RegistrarImpl.UnicastPortSetLogObj(int newPort)
Simple constructor
|
Modifier and Type | Method and Description |
---|---|
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.
|
private static final long serialVersionUID
private int newPort
public RegistrarImpl.UnicastPortSetLogObj(int newPort)
public void apply(RegistrarImpl regImpl)
apply
in interface RegistrarImpl.LogRecord
RegistrarImpl.LocalLogHandler.applyUpdate(java.lang.Object)
Copyright 2007-2013, multiple authors.
Licensed under the Apache License, Version 2.0, see the NOTICE file for attributions.