|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.threerings.presents.client.BasicDirector
com.threerings.config.dist.client.DConfigDirector
public class DConfigDirector
Handles the client side of the distributed config system.
| Field Summary | |
|---|---|
protected Map<ConfigKey,ConfigEntry> |
_added
The set of added entries pending transmission. |
protected ChangeBlock |
_block
Indicates that we should ignore any changes, because we're the one effecting them. |
protected ConfigManager |
_cfgmgr
The root config manager. |
protected DConfigObject |
_cfgobj
The config object. |
protected long |
_lastTransmit
The time at which the last update was sent. |
protected Set<ConfigKey> |
_removed
The set of removed keys pending transmission. |
protected Interval |
_transmitInterval
Invokes the transmit method. |
protected Map<ConfigKey,ConfigEntry> |
_updated
The set of updated entries pending transmission. |
protected static long |
MIN_TRANSMIT_INTERVAL
The minimum amount of time between updates. |
| Fields inherited from class com.threerings.presents.client.BasicDirector |
|---|
_availableInStandalone, _ctx |
| Constructor Summary | |
|---|---|
DConfigDirector(PresentsContext ctx,
ConfigManager cfgmgr)
Creates a new distributed config director. |
|
| Method Summary | |
|---|---|
void |
clientDidLogoff(Client client)
|
protected boolean |
clientIsAdmin()
Determines whether the local client is logged in as an admin. |
void |
configAdded(ConfigEvent<ManagedConfig> event)
Called when a configuration has been added to the group. |
void |
configRemoved(ConfigEvent<ManagedConfig> event)
Called when a configuration has been removed from the group. |
void |
configUpdated(ConfigEvent<ManagedConfig> event)
Called when a configuration has been updated. |
protected void |
fetchServices(Client client)
|
protected void |
maybeTransmitUpdate()
Transmits all pending updates to the server if appropriate. |
void |
objectAvailable(DConfigObject cfgobj)
|
void |
requestFailed(int oid,
ObjectAccessException cause)
|
| Methods inherited from class com.threerings.presents.client.BasicDirector |
|---|
assertAvailable, clientDidLogon, clientObjectDidChange, clientObjectUpdated, clientWillLogon, isAvailable, isAvailableInStandalone, registerServices, setAvailableInStandalone |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected ConfigManager _cfgmgr
protected DConfigObject _cfgobj
protected ChangeBlock _block
protected Map<ConfigKey,ConfigEntry> _added
protected Map<ConfigKey,ConfigEntry> _updated
protected Set<ConfigKey> _removed
protected long _lastTransmit
protected Interval _transmitInterval
protected static final long MIN_TRANSMIT_INTERVAL
| Constructor Detail |
|---|
public DConfigDirector(PresentsContext ctx,
ConfigManager cfgmgr)
| Method Detail |
|---|
public void objectAvailable(DConfigObject cfgobj)
objectAvailable in interface Subscriber<DConfigObject>
public void requestFailed(int oid,
ObjectAccessException cause)
requestFailed in interface Subscriber<DConfigObject>public void configAdded(ConfigEvent<ManagedConfig> event)
ConfigGroupListener
configAdded in interface ConfigGroupListener<ManagedConfig>public void configRemoved(ConfigEvent<ManagedConfig> event)
ConfigGroupListener
configRemoved in interface ConfigGroupListener<ManagedConfig>public void configUpdated(ConfigEvent<ManagedConfig> event)
ConfigUpdateListener
configUpdated in interface ConfigUpdateListener<ManagedConfig>public void clientDidLogoff(Client client)
clientDidLogoff in interface SessionObserverclientDidLogoff in class BasicDirectorprotected void fetchServices(Client client)
fetchServices in class BasicDirectorprotected void maybeTransmitUpdate()
protected boolean clientIsAdmin()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||