com.threerings.crowd.peer.data
Class CrowdNodeObject

java.lang.Object
  extended by com.threerings.presents.dobj.DObject
      extended by com.threerings.presents.peer.data.NodeObject
          extended by com.threerings.crowd.peer.data.CrowdNodeObject
All Implemented Interfaces:
Streamable

public class CrowdNodeObject
extends NodeObject

Extends the basic NodeObject with Crowd bits.


Nested Class Summary
 
Nested classes/interfaces inherited from class com.threerings.presents.peer.data.NodeObject
NodeObject.CacheData, NodeObject.Lock
 
Nested classes/interfaces inherited from interface com.threerings.io.Streamable
Streamable.Closure
 
Field Summary
static String CROWD_PEER_SERVICE
          The field name of the crowdPeerService field.
 CrowdPeerMarshaller crowdPeerService
          Used to coordinate tells between servers.
static String HOSTED_CHANNELS
          The field name of the hostedChannels field.
 DSet<ChatChannel> hostedChannels
          The chat channels hosted on this server.
 
Fields inherited from class com.threerings.presents.peer.data.NodeObject
ACQUIRING_LOCK, acquiringLock, BOOT_STAMP, bootStamp, CACHE_DATA, cacheData, clients, CLIENTS, locks, LOCKS, NODE_NAME, nodeName, PEER_SERVICE, peerService, RELEASING_LOCK, releasingLock
 
Fields inherited from class com.threerings.presents.dobj.DObject
_accessors, _atable, _controller, _deathWish, _listeners, _locattrs, _locks, _oid, _omgr, _scount, _subs, _tcancelled, _tcount, _tevent
 
Constructor Summary
CrowdNodeObject()
           
 
Method Summary
 void addToHostedChannels(ChatChannel elem)
          Requests that the specified entry be added to the hostedChannels set.
 void removeFromHostedChannels(Comparable<?> key)
          Requests that the entry matching the supplied key be removed from the hostedChannels set.
 void setCrowdPeerService(CrowdPeerMarshaller value)
          Requests that the crowdPeerService field be set to the specified value.
 void setHostedChannels(DSet<ChatChannel> value)
          Requests that the hostedChannels field be set to the specified value.
 void updateHostedChannels(ChatChannel elem)
          Requests that the specified entry be updated in the hostedChannels set.
 
Methods inherited from class com.threerings.presents.peer.data.NodeObject
addToClients, addToLocks, removeFromClients, removeFromLocks, setAcquiringLock, setBootStamp, setCacheData, setClients, setLocks, setNodeName, setPeerService, setReleasingLock, updateClients, updateLocks
 
Methods inherited from class com.threerings.presents.dobj.DObject
acquireLock, addListener, addListener, addSubscriber, addToSet, cancelTransaction, changeAttribute, checkPermissions, checkPermissions, clearLock, clearTransaction, commitTransaction, createAccessors, destroy, getAccessController, getAccessor, getAttribute, getListenerIndex, getLocal, getLocals, getManager, getOid, getSet, inTransaction, isActive, isAuthoritative, notifyListeners, notifyProxies, postEvent, postMessage, postMessage, releaseLock, removeFromSet, removeListener, removeSubscriber, requestAttributeChange, requestAttributeChange, requestElementUpdate, requestElementUpdate, requestEntryAdd, requestEntryRemove, requestEntryUpdate, requestEntryUpdate, requestOidAdd, requestOidAdd, requestOidRemove, requestOidRemove, setAccessController, setAttribute, setDestroyOnLastSubscriberRemoved, setLocal, setManager, setOid, startTransaction, toString, toString, updateSet, which, which
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

CROWD_PEER_SERVICE

@Generated(value="com.threerings.presents.tools.GenDObjectTask")
public static final String CROWD_PEER_SERVICE
The field name of the crowdPeerService field.

See Also:
Constant Field Values

HOSTED_CHANNELS

@Generated(value="com.threerings.presents.tools.GenDObjectTask")
public static final String HOSTED_CHANNELS
The field name of the hostedChannels field.

See Also:
Constant Field Values

crowdPeerService

public CrowdPeerMarshaller crowdPeerService
Used to coordinate tells between servers.


hostedChannels

public DSet<ChatChannel> hostedChannels
The chat channels hosted on this server.

Constructor Detail

CrowdNodeObject

public CrowdNodeObject()
Method Detail

setCrowdPeerService

@Generated(value="com.threerings.presents.tools.GenDObjectTask")
public void setCrowdPeerService(CrowdPeerMarshaller value)
Requests that the crowdPeerService 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.


addToHostedChannels

@Generated(value="com.threerings.presents.tools.GenDObjectTask")
public void addToHostedChannels(ChatChannel elem)
Requests that the specified entry be added to the hostedChannels set. The set will not change until the event is actually propagated through the system.


removeFromHostedChannels

@Generated(value="com.threerings.presents.tools.GenDObjectTask")
public void removeFromHostedChannels(Comparable<?> key)
Requests that the entry matching the supplied key be removed from the hostedChannels set. The set will not change until the event is actually propagated through the system.


updateHostedChannels

@Generated(value="com.threerings.presents.tools.GenDObjectTask")
public void updateHostedChannels(ChatChannel elem)
Requests that the specified entry be updated in the hostedChannels set. The set will not change until the event is actually propagated through the system.


setHostedChannels

@Generated(value="com.threerings.presents.tools.GenDObjectTask")
public void setHostedChannels(DSet<ChatChannel> value)
Requests that the hostedChannels field be set to the specified value. Generally one only adds, updates and removes entries of a distributed set, but certain situations call for a complete replacement of the set 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.