com.threerings.admin.server
Class PeeredDatabaseConfigRegistry.PeerDatabaseObjectRecord
java.lang.Object
com.threerings.admin.server.ConfigRegistry.ObjectRecord
com.threerings.admin.server.DatabaseConfigRegistry.DatabaseObjectRecord
com.threerings.admin.server.PeeredDatabaseConfigRegistry.PeerDatabaseObjectRecord
- All Implemented Interfaces:
- AttributeChangeListener, ChangeListener, ElementUpdateListener, SetListener<DSet.Entry>, PeerManager.StaleCacheObserver
- Enclosing class:
- PeeredDatabaseConfigRegistry
protected class PeeredDatabaseConfigRegistry.PeerDatabaseObjectRecord
- extends DatabaseConfigRegistry.DatabaseObjectRecord
- implements PeerManager.StaleCacheObserver
Stores settings in a database and broadcasts changes to peers.
| Methods inherited from class com.threerings.admin.server.DatabaseConfigRegistry.DatabaseObjectRecord |
flush, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, init, setAndFlush, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
_pendingSyncs
protected ArrayList<String> _pendingSyncs
PeeredDatabaseConfigRegistry.PeerDatabaseObjectRecord
public PeeredDatabaseConfigRegistry.PeerDatabaseObjectRecord(String path,
DObject object)
changedCacheData
public void changedCacheData(Streamable data)
- Description copied from interface:
PeerManager.StaleCacheObserver
- Called when some possibly cached data has changed on one of our peer servers.
- Specified by:
changedCacheData in interface PeerManager.StaleCacheObserver
attributeChanged
public void attributeChanged(AttributeChangedEvent event)
- Description copied from interface:
AttributeChangeListener
- Called when an attribute changed event has been dispatched on an object. This will be
called after the event has been applied to the object. So fetching the attribute
during this call will provide the new value for the attribute.
- Specified by:
attributeChanged in interface AttributeChangeListener- Overrides:
attributeChanged in class ConfigRegistry.ObjectRecord
- Parameters:
event - The event that was dispatched on the object.
updateValue
protected void updateValue(String name,
Object value)
- Overrides:
updateValue in class ConfigRegistry.ObjectRecord
serialize
protected void serialize(String name,
String key,
Object value)
- Description copied from class:
ConfigRegistry.ObjectRecord
- Save the specified object as serialized data associated with the specified key.
- Overrides:
serialize in class ConfigRegistry.ObjectRecord
fieldUpdated
protected void fieldUpdated(String field,
Object value)