Factored PeerNode out of PeerManager as that class was getting complicated and

dangerous with two big inner helper classes. Added the nodeName to NodeObject
and some other handy methods.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4767 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
Michael Bayne
2007-07-17 01:59:27 +00:00
parent c27356b4c3
commit 321c3f17e5
4 changed files with 399 additions and 267 deletions
@@ -35,6 +35,9 @@ import com.threerings.presents.dobj.DSet;
public class NodeObject extends DObject
{
// AUTO-GENERATED: FIELDS START
/** The field name of the <code>nodeName</code> field. */
public static final String NODE_NAME = "nodeName";
/** The field name of the <code>peerService</code> field. */
public static final String PEER_SERVICE = "peerService";
@@ -125,6 +128,9 @@ public class NodeObject extends DObject
}
}
/** The node name of this peer. */
public String nodeName;
/** The service used to make requests of the node. */
public PeerMarshaller peerService;
@@ -144,6 +150,22 @@ public class NodeObject extends DObject
public CacheData cacheData;
// AUTO-GENERATED: METHODS START
/**
* Requests that the <code>nodeName</code> field be set to the
* specified value. The local value will be updated immediately and an
* event will be propagated through the system to notify all listeners
* that the attribute did change. Proxied copies of this object (on
* clients) will apply the value change when they received the
* attribute changed notification.
*/
public void setNodeName (String value)
{
String ovalue = this.nodeName;
requestAttributeChange(
NODE_NAME, value, ovalue);
this.nodeName = value;
}
/**
* Requests that the <code>peerService</code> field be set to the
* specified value. The local value will be updated immediately and an