|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.sandev.basics.CacheManager.CacheManagerNodeDecl
org.sandev.basics.CacheManager.CacheManagerNodeBase
org.sandev.basics.CacheManager.CacheManagerNode
Implementation of the CacheManagerNode.
| Field Summary | |
protected java.util.Map |
map
Our lookup map of CacheActions |
protected AuthUser |
notificationUser
The AuthUser which we use for authorization of outgoing CacheAction sends. |
| Fields inherited from class org.sandev.basics.CacheManager.CacheManagerNodeDecl |
localAuthUserLookup, notificationPassword, notificationUsername |
| Constructor Summary | |
CacheManagerNode()
Default ctor initializes our CacheAction map. |
|
| Method Summary | |
protected void |
doWildcardCleanup(CacheAction msg)
Clean up any instances we have that match the source and the messageClass specified. |
protected CacheAction |
handleOnReceive(CacheAction msg)
Deal with the registration. |
void |
onDelivery(CacheAction msg)
If we get an incoming CacheAction, and somebody is registered for it, then send it on. |
void |
onDelivery(SandUpdateMessage msg)
If we get an incoming update message, and somebody is tracking the contained instance, then send out a CacheAction for it. |
protected CacheAction |
onReceive(CacheAction msg)
Override the onReceive processing to process this registration. |
protected void |
onStartup()
When we startup, we load our notification AuthUser if a username was specified. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected java.util.Map map
protected AuthUser notificationUser
| Constructor Detail |
public CacheManagerNode()
| Method Detail |
protected void onStartup()
throws SandException
onStartup in class CacheManagerNodeBaseSandException
public void onDelivery(SandUpdateMessage msg)
throws SandException
No notification is sent for an ADD action, since the instance
can't have been cached yet. That's because the uniqueID hasn't
been assigned until the ADD action completes, so it couldn't have
been placed into a cache based on the ID.
onDelivery in class CacheManagerNodeBaseSandException
public void onDelivery(CacheAction msg)
throws SandException
onDelivery in class CacheManagerNodeBaseSandException
protected CacheAction onReceive(CacheAction msg)
throws SandException
onReceive in class CacheManagerNodeBaseSandException
protected CacheAction handleOnReceive(CacheAction msg)
throws SandException
SandExceptionprotected void doWildcardCleanup(CacheAction msg)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||