use of com.yahoo.config.application.api.ComponentInfo in project vespa by vespa-engine.
the class ContainerCluster method addAndSendApplicationBundles.
private void addAndSendApplicationBundles() {
for (ComponentInfo component : getRoot().getDeployState().getApplicationPackage().getComponentsInfo(getRoot().getDeployState().getProperties().vespaVersion())) {
FileReference reference = FileSender.sendFileToServices(component.getPathRelativeToAppDir(), containers);
applicationBundles.add(reference);
}
}
use of com.yahoo.config.application.api.ComponentInfo in project vespa by vespa-engine.
the class ZKApplicationPackage method getComponentsInfo.
@Override
public List<ComponentInfo> getComponentsInfo(com.yahoo.config.provision.Version vespaVersion) {
List<ComponentInfo> components = new ArrayList<>();
PreGeneratedFileRegistry fileRegistry = getPreGeneratedFileRegistry(vespaVersion).get();
for (String path : fileRegistry.getPaths()) {
if (path.startsWith(ApplicationPackage.COMPONENT_DIR + File.separator) && path.endsWith(".jar")) {
ComponentInfo component = new ComponentInfo(path);
components.add(component);
}
}
return components;
}
Aggregations