org.opennms.netmgt.dao.NodeDao.get(Integer id) That will return an OnmsNode object (or return a null or throw an exception if it doesn't exist... not sure which one). :)
You can get the instance of the NodeDao from Spring, and if there's any chance you might be fetching attributes from other objects that are linked to the OnmsNode object (e.g.: IpInterface information), you'll want to do all of that work inside of a Hibernate session (I don't know if the Ticket subsystem sets up a session before it calls your ticket plugin). If you don't know how to do that, just ask. :-) - djg On Thu, Dec 29, 2011, at 10:15 AM, Jerome Callaghan wrote: > > > I'm working on a Ticket plugin. I want to get information on the node. > What's the "right" way to get that information. I took a look at the > OpenNMS objects but there are tons of them and I can't find anything yet > for getting node information given node id. > > > > Thank you, > > Jerome > > > > > > Jerome Callaghan > Application Development Specialist > Phone: (866) 848-5848 x 269 > Mobile: (401) 871-9242 > towerstream > Boston - Chicago - Dallas/Fort Worth - Las Vegas/Reno - Los Angeles - > Miami > Nashville - New York - Philadelphia - Providence/Newport - San Francisco > - Seattle > > > > > > > ------------------------- > > ------------------------------------------------------------------------------ > Ridiculously easy VDI. With Citrix VDI-in-a-Box, you don't need a complex > infrastructure or vast IT resources to deliver seamless, secure access to > virtual desktops. With this all-in-one solution, easily deploy virtual > desktops for less than the cost of PCs and save 60% on VDI infrastructure > costs. Try it free! http://p.sf.net/sfu/Citrix-VDIinabox > _______________________________________________ > Please read the OpenNMS Mailing List FAQ: > http://www.opennms.org/index.php/Mailing_List_FAQ > > opennms-devel mailing list > > To *unsubscribe* or change your subscription options, see the bottom of > this page: > https://lists.sourceforge.net/lists/listinfo/opennms-devel ------------------------------------------------------------------------------ Ridiculously easy VDI. With Citrix VDI-in-a-Box, you don't need a complex infrastructure or vast IT resources to deliver seamless, secure access to virtual desktops. With this all-in-one solution, easily deploy virtual desktops for less than the cost of PCs and save 60% on VDI infrastructure costs. Try it free! http://p.sf.net/sfu/Citrix-VDIinabox _______________________________________________ Please read the OpenNMS Mailing List FAQ: http://www.opennms.org/index.php/Mailing_List_FAQ opennms-devel mailing list To *unsubscribe* or change your subscription options, see the bottom of this page: https://lists.sourceforge.net/lists/listinfo/opennms-devel