public class NodeObject extends DObject
| Modifier and Type | Class and Description |
|---|---|
static class |
NodeObject.CacheData
Used for informing peers of changes to persistent data.
|
static class |
NodeObject.Lock
Identifies a locked resource.
|
Streamable.Closure| Modifier and Type | Field and Description |
|---|---|
static String |
ACQUIRING_LOCK
The field name of the
acquiringLock field. |
NodeObject.Lock |
acquiringLock
Used to broadcast a node's desire to acquire a lock.
|
static String |
BOOT_STAMP
The field name of the
bootStamp field. |
long |
bootStamp
The time that this node's JVM started up.
|
static String |
CACHE_DATA
The field name of the
cacheData field. |
NodeObject.CacheData |
cacheData
A field we use to broadcast changes to possible cached data.
|
DSet<ClientInfo> |
clients
Contains information on all clients connected to this node.
|
static String |
CLIENTS
The field name of the
clients field. |
DSet<NodeObject.Lock> |
locks
The set of locks held by this node.
|
static String |
LOCKS
The field name of the
locks field. |
static String |
NODE_NAME
The field name of the
nodeName field. |
String |
nodeName
The node name of this peer.
|
static String |
PEER_SERVICE
The field name of the
peerService field. |
PeerMarshaller |
peerService
The service used to make requests of the node.
|
static String |
RELEASING_LOCK
The field name of the
releasingLock field. |
NodeObject.Lock |
releasingLock
Used to broadcast a node's desire to release a lock.
|
| Constructor and Description |
|---|
NodeObject() |
| Modifier and Type | Method and Description |
|---|---|
void |
addToClients(ClientInfo elem)
Requests that the specified entry be added to the
clients set. |
void |
addToLocks(NodeObject.Lock elem)
Requests that the specified entry be added to the
locks set. |
void |
removeFromClients(Comparable<?> key)
Requests that the entry matching the supplied key be removed from
the
clients set. |
void |
removeFromLocks(Comparable<?> key)
Requests that the entry matching the supplied key be removed from
the
locks set. |
void |
setAcquiringLock(NodeObject.Lock value)
Requests that the
acquiringLock field be set to the
specified value. |
void |
setBootStamp(long value)
Requests that the
bootStamp field be set to the
specified value. |
void |
setCacheData(NodeObject.CacheData value)
Requests that the
cacheData field be set to the
specified value. |
void |
setClients(DSet<ClientInfo> value)
Requests that the
clients field be set to the
specified value. |
void |
setLocks(DSet<NodeObject.Lock> value)
Requests that the
locks field be set to the
specified value. |
void |
setNodeName(String value)
Requests that the
nodeName field be set to the
specified value. |
void |
setPeerService(PeerMarshaller value)
Requests that the
peerService field be set to the
specified value. |
void |
setReleasingLock(NodeObject.Lock value)
Requests that the
releasingLock field be set to the
specified value. |
void |
updateClients(ClientInfo elem)
Requests that the specified entry be updated in the
clients set. |
void |
updateLocks(NodeObject.Lock elem)
Requests that the specified entry be updated in the
locks set. |
acquireLock, addListener, addListener, addSubscriber, addToSet, cancelTransaction, changeAttribute, checkPermissions, checkPermissions, commitTransaction, destroy, getAccessController, getAttribute, getLocal, getLocals, getManager, getOid, getSet, inTransaction, isActive, notifyListeners, notifyProxies, postEvent, postMessage, postMessage, releaseLock, removeFromSet, removeListener, removeSubscriber, setAccessController, setAttribute, setDestroyOnLastSubscriberRemoved, setLocal, setManager, setOid, startTransaction, toString, updateSet, which@Generated(value="com.threerings.presents.tools.GenDObjectTask") public static final String NODE_NAME
nodeName field.@Generated(value="com.threerings.presents.tools.GenDObjectTask") public static final String BOOT_STAMP
bootStamp field.@Generated(value="com.threerings.presents.tools.GenDObjectTask") public static final String PEER_SERVICE
peerService field.@Generated(value="com.threerings.presents.tools.GenDObjectTask") public static final String CLIENTS
clients field.@Generated(value="com.threerings.presents.tools.GenDObjectTask") public static final String LOCKS
locks field.@Generated(value="com.threerings.presents.tools.GenDObjectTask") public static final String ACQUIRING_LOCK
acquiringLock field.@Generated(value="com.threerings.presents.tools.GenDObjectTask") public static final String RELEASING_LOCK
releasingLock field.@Generated(value="com.threerings.presents.tools.GenDObjectTask") public static final String CACHE_DATA
cacheData field.public String nodeName
public long bootStamp
public PeerMarshaller peerService
public DSet<ClientInfo> clients
public DSet<NodeObject.Lock> locks
public NodeObject.Lock acquiringLock
public NodeObject.Lock releasingLock
public NodeObject.CacheData cacheData
@Generated(value="com.threerings.presents.tools.GenDObjectTask") public void setNodeName(String value)
nodeName 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.@Generated(value="com.threerings.presents.tools.GenDObjectTask") public void setBootStamp(long value)
bootStamp 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.@Generated(value="com.threerings.presents.tools.GenDObjectTask") public void setPeerService(PeerMarshaller value)
peerService 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.@Generated(value="com.threerings.presents.tools.GenDObjectTask") public void addToClients(ClientInfo elem)
clients set. The set will not change until the event is
actually propagated through the system.@Generated(value="com.threerings.presents.tools.GenDObjectTask") public void removeFromClients(Comparable<?> key)
clients set. The set will not change until the
event is actually propagated through the system.@Generated(value="com.threerings.presents.tools.GenDObjectTask") public void updateClients(ClientInfo elem)
clients set. The set will not change until the event is
actually propagated through the system.@Generated(value="com.threerings.presents.tools.GenDObjectTask") public void setClients(DSet<ClientInfo> value)
clients 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.@Generated(value="com.threerings.presents.tools.GenDObjectTask") public void addToLocks(NodeObject.Lock elem)
locks set. The set will not change until the event is
actually propagated through the system.@Generated(value="com.threerings.presents.tools.GenDObjectTask") public void removeFromLocks(Comparable<?> key)
locks set. The set will not change until the
event is actually propagated through the system.@Generated(value="com.threerings.presents.tools.GenDObjectTask") public void updateLocks(NodeObject.Lock elem)
locks set. The set will not change until the event is
actually propagated through the system.@Generated(value="com.threerings.presents.tools.GenDObjectTask") public void setLocks(DSet<NodeObject.Lock> value)
locks 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.@Generated(value="com.threerings.presents.tools.GenDObjectTask") public void setAcquiringLock(NodeObject.Lock value)
acquiringLock 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.@Generated(value="com.threerings.presents.tools.GenDObjectTask") public void setReleasingLock(NodeObject.Lock value)
releasingLock 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.@Generated(value="com.threerings.presents.tools.GenDObjectTask") public void setCacheData(NodeObject.CacheData value)
cacheData 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.Copyright © 2015. All rights reserved.