Class FileSender

    • Constructor Detail

      • FileSender

        public FileSender​(Collection<? extends AbstractService> services,
                          com.yahoo.config.application.api.FileRegistry fileRegistry,
                          com.yahoo.config.application.api.DeployLogger logger)
    • Method Detail

      • send

        public static void send​(com.yahoo.config.FileReference fileReference,
                                Collection<? extends AbstractService> services)
        Send the given file to all given services.
        Parameters:
        fileReference - The file reference to send.
        services - The services to send the file to.
        Throws:
        IllegalStateException - if services is empty.
      • sendUserConfiguredFiles

        public <PRODUCER extends AbstractConfigProducer<?>> void sendUserConfiguredFiles​(PRODUCER producer)
        Sends all user configured files for a producer to all given services.