|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.threerings.presents.peer.server.PeerManager
com.threerings.crowd.peer.server.CrowdPeerManager
com.threerings.whirled.zone.peer.server.ZonePeerManager
public abstract class ZonePeerManager
| Nested Class Summary | |
|---|---|
static class |
ZonePeerManager.NodeFunc<T>
Useful with PeerManager.lookupNodeDatum(com.google.common.base.Function. |
| Nested classes/interfaces inherited from class com.threerings.presents.peer.server.PeerManager |
|---|
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.NodeRequest, com.threerings.presents.peer.server.PeerManager.StaleCacheObserver, com.threerings.presents.peer.server.PeerManager.Stats |
| Constructor Summary | |
|---|---|
ZonePeerManager(Lifecycle cycle)
Creates an uninitialized peer manager. |
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class com.threerings.crowd.peer.server.CrowdPeerManager |
|---|
deliverBroadcast, deliverTell, forwardBroadcast, forwardTell, shutdown |
| Methods inherited from class com.threerings.presents.peer.server.PeerManager |
|---|
acquireLock, addDroppedLockObserver, addStaleCacheObserver, broadcastStaleCacheData, clientSessionDidEnd, clientSessionDidStart, clientSubscribedToNode, clientUnsubscribedFromNode, findApplicableNodes, generateReport, getNodeObject, getNodeObjects, getPeerClient, getPeerInternalHostName, getPeerPort, getPeerPublicHostName, getStats, init, init, invokeAction, invokeNodeAction, invokeNodeAction, invokeNodeAction, invokeNodeRequest, invokeNodeRequest, invokeOnNodes, invokeRequest, isAuthenticPeer, locateClient, lookupNodeDatum, performWithLock, proxyRemoteObject, proxyRemoteObject, queryLock, queryLock, ratifyLockAction, reacquireLock, releaseLock, removeDroppedLockObserver, removeStaleCacheObserver, unproxyRemoteObject |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
@Inject public ZonePeerManager(Lifecycle cycle)
| Method Detail |
|---|
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)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||