Package com.yahoo.vespa.model.utils
Class FileSender
- java.lang.Object
-
- com.yahoo.vespa.model.utils.FileSender
-
- All Implemented Interfaces:
java.io.Serializable
public class FileSender extends java.lang.Object implements java.io.Serializable
Utility methods for sending files to a collection of nodes.- Author:
- gjoranv
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description FileSender()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static com.yahoo.config.FileReference
sendFileToServices(java.lang.String relativePath, java.util.Collection<? extends AbstractService> services)
Send the given file to all given services.static com.yahoo.config.FileReference
sendUriToServices(java.lang.String uri, java.util.Collection<? extends AbstractService> services)
static <PRODUCER extends AbstractConfigProducer<?>>
voidsendUserConfiguredFiles(PRODUCER producer, java.util.Collection<? extends AbstractService> services, com.yahoo.config.application.api.DeployLogger logger)
Sends all user configured files for a producer to all given services.
-
-
-
Method Detail
-
sendFileToServices
public static com.yahoo.config.FileReference sendFileToServices(java.lang.String relativePath, java.util.Collection<? extends AbstractService> services)
Send the given file to all given services.- Parameters:
relativePath
- The path to the file, relative to the app pkg.services
- The services to send the file to.- Returns:
- The file reference that the file was given, never null.
- Throws:
java.lang.IllegalStateException
- if services is empty.
-
sendUriToServices
public static com.yahoo.config.FileReference sendUriToServices(java.lang.String uri, java.util.Collection<? extends AbstractService> services)
-
sendUserConfiguredFiles
public static <PRODUCER extends AbstractConfigProducer<?>> void sendUserConfiguredFiles(PRODUCER producer, java.util.Collection<? extends AbstractService> services, com.yahoo.config.application.api.DeployLogger logger)
Sends all user configured files for a producer to all given services.
-
-