Search in sources :

Example 1 with ComponentInfo

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);
    }
}
Also used : ComponentInfo(com.yahoo.config.application.api.ComponentInfo) FileReference(com.yahoo.config.FileReference)

Example 2 with ComponentInfo

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;
}
Also used : ArrayList(java.util.ArrayList) ComponentInfo(com.yahoo.config.application.api.ComponentInfo)

Aggregations

ComponentInfo (com.yahoo.config.application.api.ComponentInfo)2 FileReference (com.yahoo.config.FileReference)1 ArrayList (java.util.ArrayList)1