public abstract class ZonePeerManager
extends com.threerings.crowd.peer.server.CrowdPeerManager
| Modifier and Type | Class and Description |
|---|---|
static class |
ZonePeerManager.NodeFunc<T>
Useful with
PeerManager.lookupNodeDatum(com.google.common.base.Function<com.threerings.presents.peer.data.NodeObject, T>). |
com.threerings.presents.peer.server.PeerManager.DroppedLockObserver, com.threerings.presents.peer.server.PeerManager.LockedOperation, com.threerings.presents.peer.server.PeerManager.NodeAction, com.threerings.presents.peer.server.PeerManager.NodeApplicant, com.threerings.presents.peer.server.PeerManager.NodeRequest, com.threerings.presents.peer.server.PeerManager.StaleCacheObserver, com.threerings.presents.peer.server.PeerManager.Stats| Constructor and Description |
|---|
ZonePeerManager(Lifecycle cycle)
Creates an uninitialized peer manager.
|
| Modifier and Type | Method and Description |
|---|---|
Tuple<String,HostedZone> |
getZoneHost(int zoneId)
Returns the node name of the peer that is hosting the specified scene, or null if no peer
has published that they are hosting the scene.
|
static com.threerings.presents.peer.data.NodeObject.Lock |
getZoneLock(int sceneId)
Returns a lock used to claim resolution of the specified scene.
|
void |
zoneDidShutdown(int zoneId)
Called by the ZoneManager when it is no longer hosting a scene.
|
void |
zoneDidStartup(int zoneId,
com.threerings.util.Name name)
Called by the ZoneManager when it is hosting a zone.
|
deliverBroadcast, deliverTell, forwardBroadcast, forwardTell, shutdownacquireLock, addDroppedLockObserver, addStaleCacheObserver, broadcastStaleCacheData, clientSessionDidEnd, clientSessionDidStart, clientSubscribedToNode, clientUnsubscribedFromNode, findApplicableNodes, generateReport, getNodeObject, getNodeObjects, getPeerClient, getPeerInternalHostName, getPeerNodeObject, getPeerPort, getPeerPublicHostName, getStats, init, init, init, init, invokeAction, invokeNodeAction, invokeNodeAction, invokeNodeAction, invokeNodeRequest, invokeNodeRequest, invokeOnNodes, invokeRequest, isAuthenticPeer, locateClient, lookupNodeDatum, performWithLock, proxyRemoteObject, proxyRemoteObject, queryLock, queryLock, ratifyLockAction, reacquireLock, releaseLock, removeDroppedLockObserver, removeStaleCacheObserver, unproxyRemoteObject, unproxyRemoteObject@Inject public ZonePeerManager(Lifecycle cycle)
public static com.threerings.presents.peer.data.NodeObject.Lock getZoneLock(int sceneId)
public Tuple<String,HostedZone> getZoneHost(int zoneId)
public void zoneDidStartup(int zoneId,
com.threerings.util.Name name)
public void zoneDidShutdown(int zoneId)
Copyright © 2015. All rights reserved.