Merge branch 'master' of github.com:threerings/narya

This commit is contained in:
Mark Johnson
2012-08-08 13:10:50 -07:00
@@ -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));