afunms

My Software,My Dream—Forge a more perfect NMS product.

NodeLoader

A reflection on my SourceView’s architecture from Li showing it is awkward to add a
new node in TopoResource.I accepted it with an open mind(modestly).
 I modified the base class NodeLoader.class,defines three abstract methods:
 addNode(DtoInterface dto):adds the node’s information into DB table,at the same time,
 add this node into topo map(a xml file).This method is used during polling period.
 loadAll():loads all table records onto memory,in other words,transforms persistence
data to memory objectsThis methods is invoked while starting Tomcat.
 loadOne(DtoInterface dto): transforms a table record to a memory object. This method
is used during polling period too.

posted on 2008-01-05 13:14 afunms 阅读(116) 评论(0)  编辑  收藏


只有注册用户登录后才能发表评论。


网站导航:
 

My Links

News

留言簿(18)

随笔档案

相册

搜索

最新评论

阅读排行榜