Search in sources :

Example 6 with LazySet

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

the class ResponseTimeResourceType method createResource.

private OnmsResource createResource(final String location, final OnmsIpInterface ipInterface, final String ipAddr, final ResourcePath path) {
    final LazyResourceAttributeLoader loader = new LazyResourceAttributeLoader(m_resourceStorageDao, path);
    final Set<OnmsAttribute> set = new LazySet<OnmsAttribute>(loader);
    final OnmsResource resource = new OnmsResource(ipAddr, ipAddr, this, set, path);
    resource.setEntity(ipInterface);
    return resource;
}
Also used : LazySet(org.opennms.core.utils.LazySet) OnmsResource(org.opennms.netmgt.model.OnmsResource) OnmsAttribute(org.opennms.netmgt.model.OnmsAttribute)

Aggregations

LazySet (org.opennms.core.utils.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