this.clusterId = clusterId;
this.localAs = localAs;
this.rib = rib;
- this.domChain = this.rib.createPeerDOMChain(this);
+ createDomChain();
}
AbstractPeer(
}
}
+ final synchronized void createDomChain() {
+ if (this.domChain == null) {
+ LOG.info("Creating DOM peer chain {}", getPeerId());
+ this.domChain = this.rib.createPeerDOMChain(this);
+ }
+ }
+
final synchronized void closeDomChain() {
if (this.domChain != null) {
LOG.info("Closing DOM peer chain {}", getPeerId());