|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.threerings.admin.client.ConfigObjectManager
public class ConfigObjectManager
Handles subscribing to admin config objects.
| Nested Class Summary | |
|---|---|
protected class |
ConfigObjectManager.ConfigObjectSubscriber
This class takes care of the details of subscribing to and placing an individual ConfigObject that the server knows about into a HashMap. |
| Field Summary | |
|---|---|
protected Client |
_client
Our client object. |
protected ConfigObjectManager.ConfigObjectSubscriber[] |
_csubscribers
An array of handlers that each subscribe to a single ConfigObject. |
protected DObjectManager |
_dobjmgr
Our distributed object manager. |
protected HashMap<String,ConfigObject> |
_serverconfig
Our local copy of the server-side runtime configuration. |
protected AdminService |
_service
Our admin service that we're using to fetch data. |
| Constructor Summary | |
|---|---|
ConfigObjectManager(Client client)
|
|
| Method Summary | |
|---|---|
protected void |
getConfigInfo()
Convenience: generate a getConfigInfo request to the AdminService from the external class, instead from within the anonymous inner class. |
ConfigObject |
getServerConfig(String key)
Returns the ConfigObject identified by the given key. |
void |
gotConfigInfo(String[] keys,
int[] oids)
Delivers a successful response to a AdminService.getConfigInfo(com.threerings.admin.client.AdminService.ConfigInfoListener) request. |
void |
requestFailed(String reason)
Called to report request failure. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected ConfigObjectManager.ConfigObjectSubscriber[] _csubscribers
protected HashMap<String,ConfigObject> _serverconfig
protected DObjectManager _dobjmgr
protected AdminService _service
protected Client _client
| Constructor Detail |
|---|
public ConfigObjectManager(Client client)
| Method Detail |
|---|
public ConfigObject getServerConfig(String key)
public void gotConfigInfo(String[] keys,
int[] oids)
AdminService.ConfigInfoListenerAdminService.getConfigInfo(com.threerings.admin.client.AdminService.ConfigInfoListener) request.
gotConfigInfo in interface AdminService.ConfigInfoListenerpublic void requestFailed(String reason)
InvocationService.InvocationListener
requestFailed in interface InvocationService.InvocationListenerprotected void getConfigInfo()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||