|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Interface implemented by classes which are shadowed to the Director Console. This interface works in conjunction with several static methods of the TWGActiveConsole class to implement an edge-triggered, object-delta-based update stream to maintain a set of shadowed objects on one or more remote consoles. Each class which implements the TWGShadowedObject or TWGConsoleSpecShadowedObject interfaces (which are derived from TWGBaseShadowedObject) must do the following: 1) include a non-persistent long value which will contain a "version" or "timestamp" value, which will be updated by calling TWGActiveConsole.nextShadowVersion(). This value must be updated whenever an attribute which is shadowed to the remote consoles is changed. After the value is saved, TWGActiveConsole.objectUpdated() should be called (this can wait until after a set of updates is completed). 2) implement all interface methods 3) include all attributes which are to be shadowed into the data block returned by GetShadowRecord(). 4) implement a TWGConxxxx class (which is a subclass of the TWGConObject class) for the console to use to receive the shadow record.
Method Summary | |
---|---|
java.lang.String |
GetConShadowClass()
Get name of console shadow class. |
byte[] |
GetShadowRecord(java.util.Locale locale)
Get buffer containing current values of the shadowed attributes to be delivered to the console shadow class. |
long |
GetShadowVersion()
Get object state version. |
void |
UpdateShadowVersion()
Update object state version. |
Method Detail |
public void UpdateShadowVersion()
public long GetShadowVersion()
public java.lang.String GetConShadowClass()
public byte[] GetShadowRecord(java.util.Locale locale)
locale
- - Locale requested (for any locale-specific content)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |