Search in sources :

Example 61 with Requisition

use of org.opennms.netmgt.provision.persist.requisition.Requisition in project opennms by OpenNMS.

the class VmwareImporter method iterateHostSystems.

/**
 * Iterates through the host systems and adds them to the requisition object.
 *
 * @param vmwareViJavaAccess the access/connection to use
 */
private void iterateHostSystems(VmwareViJavaAccess vmwareViJavaAccess, int apiVersion) {
    ManagedEntity[] managedEntities = null;
    logger.debug("Starting to iterate Host Systems on VMware host {} ...", request.getHostname());
    try {
        managedEntities = vmwareViJavaAccess.searchManagedEntities("HostSystem");
    } catch (RemoteException e) {
        logger.error("Error iterating Host Systems on VMware host {}", request.getHostname());
        logger.error("Exception thrown while iterating for Host Systems: ", e);
    }
    if (managedEntities != null) {
        Arrays.stream(managedEntities).map(m -> (HostSystem) m).forEach(hostSystem -> {
            synchronized (m_hostSystemMap) {
                m_hostSystemMap.put(hostSystem.getMOR().getVal(), hostSystem.getName());
            }
        });
        final ExecutorService executor = Executors.newFixedThreadPool(Math.min(managedEntities.length, 10));
        final List<CompletableFuture<Optional<RequisitionNode>>> completableFutures = Arrays.stream(managedEntities).map(managedEntity -> (HostSystem) managedEntity).filter(hostSystem -> checkHostPowerState(hostSystem)).filter(hostSystem -> checkForAttribute(hostSystem)).map(hostSystem -> CompletableFuture.supplyAsync(() -> {
            logger.debug("Adding Host System '{}' (ID: {})", hostSystem.getName(), hostSystem.getMOR().getVal());
            TreeSet<String> ipAddresses = vmwareViJavaAccess.getHostSystemIpAddresses(hostSystem);
            logger.debug("Found {} IP addresses for Host System '{}' (ID: {}): {}", ipAddresses.size(), hostSystem.getName(), hostSystem.getMOR().getVal(), ipAddresses);
            RequisitionNode node = createRequisitionNode(ipAddresses, hostSystem, apiVersion, vmwareViJavaAccess);
            try {
                node.putAsset(new RequisitionAsset("cpu", hostSystem.getHardware().getCpuInfo().getNumCpuCores() + " cores"));
            } catch (Exception e) {
                logger.debug("Can't find CPU information for '{}' (ID: {})", hostSystem.getName(), hostSystem.getMOR().getVal());
            }
            try {
                node.putAsset(new RequisitionAsset("ram", Math.round(hostSystem.getHardware().getMemorySize() / 1000000f) + " MB"));
            } catch (Exception e) {
                logger.debug("Can't find Memory information for '{}' (ID: {})", hostSystem.getName(), hostSystem.getMOR().getVal());
            }
            return request.isPersistHosts() ? Optional.of(node) : Optional.<RequisitionNode>empty();
        }, executor)).collect(Collectors.toList());
        completableFutures.stream().map(CompletableFuture::join).filter(Optional::isPresent).forEach(m -> {
            synchronized (m_requisition) {
                m_requisition.insertNode(m.get());
            }
        });
        executor.shutdown();
    }
}
Also used : ManagedEntity(com.vmware.vim25.mo.ManagedEntity) Arrays(java.util.Arrays) StringUtils(org.apache.commons.lang.StringUtils) HostSystem(com.vmware.vim25.mo.HostSystem) LoggerFactory(org.slf4j.LoggerFactory) InetAddress(java.net.InetAddress) CIMException(org.sblim.wbem.cim.CIMException) Requisition(org.opennms.netmgt.provision.persist.requisition.Requisition) Map(java.util.Map) HostSystemPowerState(com.vmware.vim25.HostSystemPowerState) DistributedVirtualPortgroup(com.vmware.vim25.mo.DistributedVirtualPortgroup) CIMObject(org.sblim.wbem.cim.CIMObject) HostRuntimeInfo(com.vmware.vim25.HostRuntimeInfo) VmwareViJavaAccess(org.opennms.protocols.vmware.VmwareViJavaAccess) VirtualMachinePowerState(com.vmware.vim25.VirtualMachinePowerState) Set(java.util.Set) Collectors(java.util.stream.Collectors) StandardCharsets(java.nio.charset.StandardCharsets) Executors(java.util.concurrent.Executors) RemoteException(java.rmi.RemoteException) Objects(java.util.Objects) List(java.util.List) RequisitionCategory(org.opennms.netmgt.provision.persist.requisition.RequisitionCategory) CustomFieldStringValue(com.vmware.vim25.CustomFieldStringValue) VirtualMachine(com.vmware.vim25.mo.VirtualMachine) RequisitionNode(org.opennms.netmgt.provision.persist.requisition.RequisitionNode) Optional(java.util.Optional) Network(com.vmware.vim25.mo.Network) UnsupportedEncodingException(java.io.UnsupportedEncodingException) RequisitionAsset(org.opennms.netmgt.provision.persist.requisition.RequisitionAsset) Datastore(com.vmware.vim25.mo.Datastore) RequisitionMonitoredService(org.opennms.netmgt.provision.persist.requisition.RequisitionMonitoredService) HashMap(java.util.HashMap) CompletableFuture(java.util.concurrent.CompletableFuture) RequisitionInterface(org.opennms.netmgt.provision.persist.requisition.RequisitionInterface) TreeSet(java.util.TreeSet) ArrayList(java.util.ArrayList) ManagedEntity(com.vmware.vim25.mo.ManagedEntity) VirtualMachineRuntimeInfo(com.vmware.vim25.VirtualMachineRuntimeInfo) PrimaryType(org.opennms.netmgt.model.PrimaryType) ConnectException(java.net.ConnectException) ExecutorService(java.util.concurrent.ExecutorService) Logger(org.slf4j.Logger) MalformedURLException(java.net.MalformedURLException) IOException(java.io.IOException) UnknownHostException(java.net.UnknownHostException) CustomFieldDef(com.vmware.vim25.CustomFieldDef) URLEncoder(java.net.URLEncoder) TreeMap(java.util.TreeMap) CustomFieldValue(com.vmware.vim25.CustomFieldValue) InetAddressUtils(org.apache.http.conn.util.InetAddressUtils) RequisitionNode(org.opennms.netmgt.provision.persist.requisition.RequisitionNode) RequisitionAsset(org.opennms.netmgt.provision.persist.requisition.RequisitionAsset) CIMException(org.sblim.wbem.cim.CIMException) RemoteException(java.rmi.RemoteException) UnsupportedEncodingException(java.io.UnsupportedEncodingException) ConnectException(java.net.ConnectException) MalformedURLException(java.net.MalformedURLException) IOException(java.io.IOException) UnknownHostException(java.net.UnknownHostException) CompletableFuture(java.util.concurrent.CompletableFuture) HostSystem(com.vmware.vim25.mo.HostSystem) ExecutorService(java.util.concurrent.ExecutorService) RemoteException(java.rmi.RemoteException)

Example 62 with Requisition

use of org.opennms.netmgt.provision.persist.requisition.Requisition in project opennms by OpenNMS.

the class VmwareImporter method iterateVirtualMachines.

/**
 * Iterates through the virtual machines and adds them to the requisition object.
 *
 * @param vmwareViJavaAccess the access/connection to use
 */
private void iterateVirtualMachines(VmwareViJavaAccess vmwareViJavaAccess, int apiVersion) {
    ManagedEntity[] managedEntities = null;
    logger.debug("Starting to iterate Virtual Machines on VMware host {} ...", request.getHostname());
    try {
        managedEntities = vmwareViJavaAccess.searchManagedEntities("VirtualMachine");
    } catch (RemoteException e) {
        logger.error("Error iterating Virtual Machines on VMware host {}", request.getHostname());
        logger.error("Exception thrown while iterating for Virtual Machines: ", e);
    }
    if (managedEntities != null) {
        final ExecutorService executor = Executors.newFixedThreadPool(Math.min(managedEntities.length, 10));
        final List<CompletableFuture<Optional<RequisitionNode>>> completableFutures = Arrays.stream(managedEntities).map(managedEntity -> (VirtualMachine) managedEntity).filter(virtualMachine -> checkVMPowerState(virtualMachine)).filter(virtualMachine -> checkForAttribute(virtualMachine)).map(virtualMachine -> CompletableFuture.supplyAsync(() -> {
            logger.debug("Adding Virtual Machine '{}' (ID: {})", virtualMachine.getName(), virtualMachine.getMOR().getVal());
            TreeSet<String> ipAddresses = vmwareViJavaAccess.getVirtualMachineIpAddresses(virtualMachine);
            logger.debug("Found {} IP addresses for Virtual Machine '{}' (ID: {}): {}", ipAddresses.size(), virtualMachine.getName(), virtualMachine.getMOR().getVal(), ipAddresses);
            RequisitionNode node = createRequisitionNode(ipAddresses, virtualMachine, apiVersion, vmwareViJavaAccess);
            if (virtualMachine.getGuest().getGuestFullName() != null) {
                node.putAsset(new RequisitionAsset("operatingSystem", virtualMachine.getGuest().getGuestFullName()));
            }
            try {
                node.putAsset(new RequisitionAsset("cpu", virtualMachine.getConfig().getHardware().getNumCPU() + " vCPU"));
            } catch (Exception e) {
                logger.debug("Can't find CPU information for {} (ID: {})", virtualMachine.getName(), virtualMachine.getMOR().getVal());
            }
            try {
                node.putAsset(new RequisitionAsset("ram", virtualMachine.getConfig().getHardware().getMemoryMB() + " MB"));
            } catch (Exception e) {
                logger.debug("Can't find Memory information for {} (ID: {})", virtualMachine.getName(), virtualMachine.getMOR().getVal());
            }
            return request.isPersistVMs() ? Optional.of(node) : Optional.<RequisitionNode>empty();
        }, executor)).collect(Collectors.toList());
        completableFutures.stream().map(CompletableFuture::join).filter(Optional::isPresent).forEach(m -> {
            synchronized (m_requisition) {
                m_requisition.insertNode(m.get());
            }
        });
        executor.shutdown();
    }
}
Also used : ManagedEntity(com.vmware.vim25.mo.ManagedEntity) Arrays(java.util.Arrays) StringUtils(org.apache.commons.lang.StringUtils) HostSystem(com.vmware.vim25.mo.HostSystem) LoggerFactory(org.slf4j.LoggerFactory) InetAddress(java.net.InetAddress) CIMException(org.sblim.wbem.cim.CIMException) Requisition(org.opennms.netmgt.provision.persist.requisition.Requisition) Map(java.util.Map) HostSystemPowerState(com.vmware.vim25.HostSystemPowerState) DistributedVirtualPortgroup(com.vmware.vim25.mo.DistributedVirtualPortgroup) CIMObject(org.sblim.wbem.cim.CIMObject) HostRuntimeInfo(com.vmware.vim25.HostRuntimeInfo) VmwareViJavaAccess(org.opennms.protocols.vmware.VmwareViJavaAccess) VirtualMachinePowerState(com.vmware.vim25.VirtualMachinePowerState) Set(java.util.Set) Collectors(java.util.stream.Collectors) StandardCharsets(java.nio.charset.StandardCharsets) Executors(java.util.concurrent.Executors) RemoteException(java.rmi.RemoteException) Objects(java.util.Objects) List(java.util.List) RequisitionCategory(org.opennms.netmgt.provision.persist.requisition.RequisitionCategory) CustomFieldStringValue(com.vmware.vim25.CustomFieldStringValue) VirtualMachine(com.vmware.vim25.mo.VirtualMachine) RequisitionNode(org.opennms.netmgt.provision.persist.requisition.RequisitionNode) Optional(java.util.Optional) Network(com.vmware.vim25.mo.Network) UnsupportedEncodingException(java.io.UnsupportedEncodingException) RequisitionAsset(org.opennms.netmgt.provision.persist.requisition.RequisitionAsset) Datastore(com.vmware.vim25.mo.Datastore) RequisitionMonitoredService(org.opennms.netmgt.provision.persist.requisition.RequisitionMonitoredService) HashMap(java.util.HashMap) CompletableFuture(java.util.concurrent.CompletableFuture) RequisitionInterface(org.opennms.netmgt.provision.persist.requisition.RequisitionInterface) TreeSet(java.util.TreeSet) ArrayList(java.util.ArrayList) ManagedEntity(com.vmware.vim25.mo.ManagedEntity) VirtualMachineRuntimeInfo(com.vmware.vim25.VirtualMachineRuntimeInfo) PrimaryType(org.opennms.netmgt.model.PrimaryType) ConnectException(java.net.ConnectException) ExecutorService(java.util.concurrent.ExecutorService) Logger(org.slf4j.Logger) MalformedURLException(java.net.MalformedURLException) IOException(java.io.IOException) UnknownHostException(java.net.UnknownHostException) CustomFieldDef(com.vmware.vim25.CustomFieldDef) URLEncoder(java.net.URLEncoder) TreeMap(java.util.TreeMap) CustomFieldValue(com.vmware.vim25.CustomFieldValue) InetAddressUtils(org.apache.http.conn.util.InetAddressUtils) RequisitionNode(org.opennms.netmgt.provision.persist.requisition.RequisitionNode) CompletableFuture(java.util.concurrent.CompletableFuture) ExecutorService(java.util.concurrent.ExecutorService) RemoteException(java.rmi.RemoteException) RequisitionAsset(org.opennms.netmgt.provision.persist.requisition.RequisitionAsset) CIMException(org.sblim.wbem.cim.CIMException) RemoteException(java.rmi.RemoteException) UnsupportedEncodingException(java.io.UnsupportedEncodingException) ConnectException(java.net.ConnectException) MalformedURLException(java.net.MalformedURLException) IOException(java.io.IOException) UnknownHostException(java.net.UnknownHostException)

Example 63 with Requisition

use of org.opennms.netmgt.provision.persist.requisition.Requisition in project opennms by OpenNMS.

the class DefaultProvisionService method createUndiscoveredNode.

/**
 * {@inheritDoc}
 */
@Transactional
@Override
public OnmsNode createUndiscoveredNode(final String ipAddress, final String foreignSource, final String locationString) {
    final String effectiveForeignSource = foreignSource == null ? FOREIGN_SOURCE_FOR_DISCOVERED_NODES : foreignSource;
    final String effectiveLocationName = MonitoringLocationUtils.isDefaultLocationName(locationString) ? null : locationString;
    final OnmsNode node = new UpsertTemplate<OnmsNode, NodeDao>(m_transactionManager, m_nodeDao) {

        @Override
        protected OnmsNode query() {
            // Find all of the nodes in the target requisition with the given IP address
            return m_nodeDao.findByForeignSourceAndIpAddress(effectiveForeignSource, ipAddress).stream().filter(n -> {
                // Now filter the nodes by location
                final String existingLocationName = MonitoringLocationUtils.getLocationNameOrNullIfDefault(n);
                return Objects.equals(existingLocationName, effectiveLocationName);
            }).findFirst().orElse(null);
        }

        @Override
        protected OnmsNode doUpdate(OnmsNode existingNode) {
            // we found an existing node so exit by returning null;
            return null;
        }

        @Override
        protected OnmsNode doInsert() {
            final Date now = new Date();
            OnmsMonitoringLocation location = createLocationIfNecessary(locationString);
            // Associate the location with the node
            final OnmsNode node = new OnmsNode(location);
            final String hostname = getHostnameResolver().getHostname(addr(ipAddress), locationString);
            if (hostname == null || ipAddress.equals(hostname)) {
                node.setLabel(ipAddress);
                node.setLabelSource(NodeLabelSource.ADDRESS);
            } else {
                node.setLabel(hostname);
                node.setLabelSource(NodeLabelSource.HOSTNAME);
            }
            node.setForeignSource(effectiveForeignSource);
            node.setType(NodeType.ACTIVE);
            node.setLastCapsdPoll(now);
            final OnmsIpInterface iface = new OnmsIpInterface(InetAddressUtils.addr(ipAddress), node);
            iface.setIsManaged("M");
            iface.setIpHostName(hostname);
            iface.setIsSnmpPrimary(PrimaryType.NOT_ELIGIBLE);
            iface.setIpLastCapsdPoll(now);
            m_nodeDao.save(node);
            m_nodeDao.flush();
            return node;
        }
    }.execute();
    if (node != null) {
        if (effectiveForeignSource != null) {
            node.setForeignId(node.getNodeId());
            createUpdateRequistion(ipAddress, node, effectiveLocationName, effectiveForeignSource);
        }
        // we do this here rather than in the doInsert method because
        // the doInsert may abort
        node.visit(new AddEventVisitor(m_eventForwarder));
    }
    return node;
}
Also used : NodeDao(org.opennms.netmgt.dao.api.NodeDao) OnmsMonitoringLocation(org.opennms.netmgt.model.monitoringLocations.OnmsMonitoringLocation) NodeType(org.opennms.netmgt.model.OnmsNode.NodeType) OnmsNodeRequisition(org.opennms.netmgt.provision.persist.OnmsNodeRequisition) AbstractEntityVisitor(org.opennms.netmgt.model.AbstractEntityVisitor) Date(java.util.Date) MonitoringLocationUtils(org.opennms.netmgt.dao.api.MonitoringLocationUtils) UpsertTemplate(org.opennms.netmgt.dao.support.UpsertTemplate) LocationAwareDnsLookupClient(org.opennms.netmgt.provision.LocationAwareDnsLookupClient) InetAddressUtils.str(org.opennms.core.utils.InetAddressUtils.str) LoggerFactory(org.slf4j.LoggerFactory) Autowired(org.springframework.beans.factory.annotation.Autowired) EventUtils(org.opennms.netmgt.model.events.EventUtils) InetAddressUtils.addr(org.opennms.core.utils.InetAddressUtils.addr) IpInterfacePolicy(org.opennms.netmgt.provision.IpInterfacePolicy) MonitoredServiceDao(org.opennms.netmgt.dao.api.MonitoredServiceDao) ForeignSource(org.opennms.netmgt.provision.persist.foreignsource.ForeignSource) InetAddress(java.net.InetAddress) OnmsCategory(org.opennms.netmgt.model.OnmsCategory) SnmpInterfaceDao(org.opennms.netmgt.dao.api.SnmpInterfaceDao) NodeLabelSource(org.opennms.netmgt.model.OnmsNode.NodeLabelSource) Requisition(org.opennms.netmgt.provision.persist.requisition.Requisition) Map(java.util.Map) Resource(org.springframework.core.io.Resource) IpInterfaceDao(org.opennms.netmgt.dao.api.IpInterfaceDao) NodeDao(org.opennms.netmgt.dao.api.NodeDao) InetAddressUtils(org.opennms.core.utils.InetAddressUtils) Collection(java.util.Collection) UpdateEventVisitor(org.opennms.netmgt.model.events.UpdateEventVisitor) Set(java.util.Set) CreateIfNecessaryTemplate(org.opennms.netmgt.dao.support.CreateIfNecessaryTemplate) AddEventVisitor(org.opennms.netmgt.model.events.AddEventVisitor) BeanUtils(org.opennms.core.spring.BeanUtils) Objects(java.util.Objects) List(java.util.List) RequisitionCategory(org.opennms.netmgt.provision.persist.requisition.RequisitionCategory) OnmsSnmpInterface(org.opennms.netmgt.model.OnmsSnmpInterface) PlatformTransactionManager(org.springframework.transaction.PlatformTransactionManager) RequisitionNode(org.opennms.netmgt.provision.persist.requisition.RequisitionNode) PathElement(org.opennms.netmgt.model.PathElement) LocationAwareSnmpClient(org.opennms.netmgt.snmp.proxy.LocationAwareSnmpClient) RequisitionedCategoryAssociation(org.opennms.netmgt.model.RequisitionedCategoryAssociation) DeleteEventVisitor(org.opennms.netmgt.model.events.DeleteEventVisitor) OnmsMonitoredService(org.opennms.netmgt.model.OnmsMonitoredService) NodePolicy(org.opennms.netmgt.provision.NodePolicy) Duration(org.joda.time.Duration) EntityVisitor(org.opennms.netmgt.model.EntityVisitor) HashMap(java.util.HashMap) EventConstants(org.opennms.netmgt.events.api.EventConstants) RequisitionedCategoryAssociationDao(org.opennms.netmgt.dao.api.RequisitionedCategoryAssociationDao) RequisitionInterface(org.opennms.netmgt.provision.persist.requisition.RequisitionInterface) TreeSet(java.util.TreeSet) InitializingBean(org.springframework.beans.factory.InitializingBean) ArrayList(java.util.ArrayList) HashSet(java.util.HashSet) Strings(com.google.common.base.Strings) PrimaryType(org.opennms.netmgt.model.PrimaryType) Service(org.springframework.stereotype.Service) Qualifier(org.springframework.beans.factory.annotation.Qualifier) ServiceTypeDao(org.opennms.netmgt.dao.api.ServiceTypeDao) ForeignSourceRepository(org.opennms.netmgt.provision.persist.ForeignSourceRepository) PluginConfig(org.opennms.netmgt.provision.persist.foreignsource.PluginConfig) OnmsServiceType(org.opennms.netmgt.model.OnmsServiceType) OnmsNode(org.opennms.netmgt.model.OnmsNode) RequisitionFileUtils(org.opennms.netmgt.provision.persist.RequisitionFileUtils) CategoryDao(org.opennms.netmgt.dao.api.CategoryDao) OnmsIpInterface(org.opennms.netmgt.model.OnmsIpInterface) Logger(org.slf4j.Logger) Iterator(java.util.Iterator) DateTime(org.joda.time.DateTime) EventBuilder(org.opennms.netmgt.model.events.EventBuilder) LocationAwareDetectorClient(org.opennms.netmgt.provision.LocationAwareDetectorClient) MonitoringLocationDao(org.opennms.netmgt.dao.api.MonitoringLocationDao) EventForwarder(org.opennms.netmgt.events.api.EventForwarder) RequisitionInterfaceCollection(org.opennms.netmgt.provision.persist.requisition.RequisitionInterfaceCollection) Collections(java.util.Collections) ForeignSourceRepositoryException(org.opennms.netmgt.provision.persist.ForeignSourceRepositoryException) SnmpInterfacePolicy(org.opennms.netmgt.provision.SnmpInterfacePolicy) Transactional(org.springframework.transaction.annotation.Transactional) Assert(org.springframework.util.Assert) AddEventVisitor(org.opennms.netmgt.model.events.AddEventVisitor) OnmsNode(org.opennms.netmgt.model.OnmsNode) OnmsIpInterface(org.opennms.netmgt.model.OnmsIpInterface) Date(java.util.Date) OnmsMonitoringLocation(org.opennms.netmgt.model.monitoringLocations.OnmsMonitoringLocation) Transactional(org.springframework.transaction.annotation.Transactional)

Example 64 with Requisition

use of org.opennms.netmgt.provision.persist.requisition.Requisition in project opennms by OpenNMS.

the class DefaultProvisionService method loadRequisition.

/* (non-Javadoc)
     * @see org.opennms.netmgt.provision.service.ProvisionService#loadRequisition(java.lang.String, org.springframework.core.io.Resource)
     */
/**
 * {@inheritDoc}
 */
@Override
public Requisition loadRequisition(final Resource resource) {
    final Requisition r = m_foreignSourceRepository.importResourceRequisition(resource);
    r.updateLastImported();
    m_foreignSourceRepository.save(r);
    m_foreignSourceRepository.flush();
    return r;
}
Also used : OnmsNodeRequisition(org.opennms.netmgt.provision.persist.OnmsNodeRequisition) Requisition(org.opennms.netmgt.provision.persist.requisition.Requisition)

Example 65 with Requisition

use of org.opennms.netmgt.provision.persist.requisition.Requisition in project opennms by OpenNMS.

the class FilesystemForeignSourceRepository method getRequisitions.

/**
 * <p>getRequisitions</p>
 *
 * @return a {@link java.util.Set} object.
 * @throws org.opennms.netmgt.provision.persist.ForeignSourceRepositoryException if any.
 */
@Override
public Set<Requisition> getRequisitions() throws ForeignSourceRepositoryException {
    m_readLock.lock();
    try {
        final File directory = new File(m_requisitionPath);
        final TreeSet<Requisition> requisitions = new TreeSet<>();
        if (directory.exists()) {
            for (final File file : directory.listFiles()) {
                if (file.getName().endsWith(".xml")) {
                    try {
                        requisitions.add(RequisitionFileUtils.getRequisitionFromFile(file));
                    } catch (ForeignSourceRepositoryException e) {
                    // race condition, probably got deleted by the importer as part of moving things
                    // need a better way to handle this; move "pending" to the database?
                    }
                }
            }
        }
        return requisitions;
    } finally {
        m_readLock.unlock();
    }
}
Also used : TreeSet(java.util.TreeSet) File(java.io.File) Requisition(org.opennms.netmgt.provision.persist.requisition.Requisition)

Aggregations

Requisition (org.opennms.netmgt.provision.persist.requisition.Requisition)70 Test (org.junit.Test)31 RequisitionNode (org.opennms.netmgt.provision.persist.requisition.RequisitionNode)16 ForeignSource (org.opennms.netmgt.provision.persist.foreignsource.ForeignSource)11 RequisitionInterface (org.opennms.netmgt.provision.persist.requisition.RequisitionInterface)11 UrlResource (org.springframework.core.io.UrlResource)10 File (java.io.File)9 OnmsNodeRequisition (org.opennms.netmgt.provision.persist.OnmsNodeRequisition)8 Resource (org.springframework.core.io.Resource)8 IOException (java.io.IOException)6 RequisitionCategory (org.opennms.netmgt.provision.persist.requisition.RequisitionCategory)6 ArrayList (java.util.ArrayList)5 TreeSet (java.util.TreeSet)5 InetAddress (java.net.InetAddress)4 MalformedURLException (java.net.MalformedURLException)4 URL (java.net.URL)4 FileSystemResource (org.springframework.core.io.FileSystemResource)4 InputStream (java.io.InputStream)3 RemoteException (java.rmi.RemoteException)3 Date (java.util.Date)3