Merge branch 'master' of github.com:threerings/narya
This commit is contained in:
@@ -343,12 +343,14 @@ public abstract class PeerManager
|
|||||||
_self = new NodeRecord(
|
_self = new NodeRecord(
|
||||||
_nodeName, hostName, (publicHostName == null) ? hostName : publicHostName,
|
_nodeName, hostName, (publicHostName == null) ? hostName : publicHostName,
|
||||||
region, port);
|
region, port);
|
||||||
_invoker.postUnit(new WriteOnlyUnit("registerNode(" + _self + ")") {
|
if (_nodeName != null) {
|
||||||
@Override
|
_invoker.postUnit(new WriteOnlyUnit("registerNode(" + _self + ")") {
|
||||||
public void invokePersist () throws Exception {
|
@Override
|
||||||
_noderepo.updateNode(_self);
|
public void invokePersist () throws Exception {
|
||||||
}
|
_noderepo.updateNode(_self);
|
||||||
});
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
// set the invocation service
|
// set the invocation service
|
||||||
_nodeobj.setPeerService(_invmgr.registerProvider(this, PeerMarshaller.class));
|
_nodeobj.setPeerService(_invmgr.registerProvider(this, PeerMarshaller.class));
|
||||||
|
|||||||
Reference in New Issue
Block a user