com.threerings.admin.server
Class PeeredDatabaseConfigRegistry

java.lang.Object
  extended by com.threerings.admin.server.ConfigRegistry
      extended by com.threerings.admin.server.DatabaseConfigRegistry
          extended by com.threerings.admin.server.PeeredDatabaseConfigRegistry

public class PeeredDatabaseConfigRegistry
extends DatabaseConfigRegistry

A database backed config registry that registers with the peer system and synchronizes with its peers when configuration fields are changed.


Nested Class Summary
protected  class PeeredDatabaseConfigRegistry.PeerDatabaseObjectRecord
          Stores settings in a database and broadcasts changes to peers.
 
Nested classes/interfaces inherited from class com.threerings.admin.server.DatabaseConfigRegistry
DatabaseConfigRegistry.DatabaseObjectRecord
 
Nested classes/interfaces inherited from class com.threerings.admin.server.ConfigRegistry
ConfigRegistry.ObjectRecord
 
Field Summary
protected  PeerManager _peermgr
           
protected static String PEER_CACHE_PREFIX
          Prefixed to our cache invalidation notifications.
 
Fields inherited from class com.threerings.admin.server.DatabaseConfigRegistry
_invoker, _node, _repo
 
Fields inherited from class com.threerings.admin.server.ConfigRegistry
_configs, _transitioning
 
Constructor Summary
PeeredDatabaseConfigRegistry(PersistenceContext ctx, Invoker invoker, PeerManager peermgr)
           
 
Method Summary
protected  ConfigRegistry.ObjectRecord createObjectRecord(String path, DObject object)
          Creates an object record derivation that will handle the management of the specified object.
 
Methods inherited from class com.threerings.admin.server.ConfigRegistry
createObjectInputStream, createObjectOutputStream, getKeys, getObject, registerObject
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_peermgr

protected PeerManager _peermgr

PEER_CACHE_PREFIX

protected static final String PEER_CACHE_PREFIX
Prefixed to our cache invalidation notifications.

See Also:
Constant Field Values
Constructor Detail

PeeredDatabaseConfigRegistry

@Inject
public PeeredDatabaseConfigRegistry(PersistenceContext ctx,
                                           Invoker invoker,
                                           PeerManager peermgr)
Method Detail

createObjectRecord

protected ConfigRegistry.ObjectRecord createObjectRecord(String path,
                                                         DObject object)
Description copied from class: ConfigRegistry
Creates an object record derivation that will handle the management of the specified object.

Overrides:
createObjectRecord in class DatabaseConfigRegistry