-
1. Re: Tracking whether nodes are in-memory vs persisted
manik Aug 22, 2007 3:17 PM (in response to brian.stansberry)getChildrenNames() on parent + NodeSPI#isDataLoaded() on each child node?
-
2. Re: Tracking whether nodes are in-memory vs persisted
brian.stansberry Aug 22, 2007 4:29 PM (in response to brian.stansberry)That's cheating!!!
Although I can cheat if need be. :-) -
3. Re: Tracking whether nodes are in-memory vs persisted
manik Aug 23, 2007 6:03 AM (in response to brian.stansberry)Why is that cheating? isDataLoaded() specifically tells you whether data for a node is loaded in memory or has been evicted/passivated. Isn't that specifically what you want?
-
4. Re: Tracking whether nodes are in-memory vs persisted
brian.stansberry Aug 23, 2007 11:16 AM (in response to brian.stansberry)Casting to NodeSPI from the application is cheating.
-
5. Re: Tracking whether nodes are in-memory vs persisted
genman Sep 1, 2007 4:46 AM (in response to brian.stansberry)I thought Node should have had a "getNodeSPI" because: 1. Casts are almost always considered "cheating" and 2. Allows for creating a separate object for handling the SPI functionality. 3. Allows for some sort of proxy-security functionality. (Though if the user can cast the Node to NodeSPI, so much for security.)
-
6. Re: Tracking whether nodes are in-memory vs persisted
manik Oct 1, 2007 6:28 AM (in response to brian.stansberry)Well, the separate-object-proxy approach can prevent people from cheating; I guess the real question here is whether the NodeSPI is intended for use by application code at all, or just by plugin/extension authors. My leaning is towards the latter, which means that if something is isDataLoaded() is needed by application code, then it should be promoted to the Node interface.