Search in sources :

Example 6 with LazySet

use of org.opennms.core.collections.LazySet in project opennms by OpenNMS.

the class InterfaceSnmpResourceType method getResourceByParentPathAndInterface.

private OnmsResource getResourceByParentPathAndInterface(ResourcePath parent, String intf, String label, Long ifSpeed, String ifSpeedFriendly) throws DataAccessException {
    final ResourcePath path = ResourcePath.get(parent, intf);
    final AttributeLoader loader = new AttributeLoader(m_resourceStorageDao, path, ifSpeed, ifSpeedFriendly);
    final Set<OnmsAttribute> set = new LazySet<OnmsAttribute>(loader);
    return new OnmsResource(intf, label, this, set, path);
}
Also used : LazySet(org.opennms.core.collections.LazySet) ResourcePath(org.opennms.netmgt.model.ResourcePath) OnmsResource(org.opennms.netmgt.model.OnmsResource) OnmsAttribute(org.opennms.netmgt.model.OnmsAttribute)

Aggregations

LazySet (org.opennms.core.collections.LazySet)6 OnmsAttribute (org.opennms.netmgt.model.OnmsAttribute)6 OnmsResource (org.opennms.netmgt.model.OnmsResource)6 ResourcePath (org.opennms.netmgt.model.ResourcePath)3 ArrayList (java.util.ArrayList)1 StringTokenizer (java.util.StringTokenizer)1 Matcher (java.util.regex.Matcher)1 SymbolTable (org.opennms.core.utils.PropertiesUtils.SymbolTable)1 ExternalValueAttribute (org.opennms.netmgt.model.ExternalValueAttribute)1 StringPropertyAttribute (org.opennms.netmgt.model.StringPropertyAttribute)1