Search in sources :

Example 1 with LocationTypeIndexed

use of alien4cloud.events.LocationTypeIndexed in project alien4cloud by alien4cloud.

the class PluginArchiveIndexer method publishLocationTypeIndexedEvent.

private void publishLocationTypeIndexedEvent(Collection<NodeType> collection, IOrchestratorPluginFactory orchestratorFactory, Location location) {
    if (CollectionUtils.isNotEmpty(collection)) {
        for (NodeType nodeType : collection) {
            LocationTypeIndexed event = new LocationTypeIndexed(this);
            event.setNodeType(nodeType);
            event.setLocation(location);
            event.setOrchestratorFactory(orchestratorFactory);
            applicationContext.publishEvent(event);
        }
    }
}
Also used : NodeType(org.alien4cloud.tosca.model.types.NodeType) LocationTypeIndexed(alien4cloud.events.LocationTypeIndexed)

Aggregations

LocationTypeIndexed (alien4cloud.events.LocationTypeIndexed)1 NodeType (org.alien4cloud.tosca.model.types.NodeType)1