APISonar


com.yahoo.vespa.hosted.node.admin.component.TaskContext.log

> com > yahoo > vespa > hosted > node > admin > component > TaskContext > log
com APIs yahoo APIs vespa APIs hosted APIs node APIs admin APIs component APIs TaskContext APIs log APIs

Example 1
public void write(TaskContext taskContext, int value) {
        try {
            Files.write(path, Integer.toString(value).getBytes());
            this.value = OptionalInt.of(value);
            this.hasBeenRead = true;
            taskContext.log(logger, "Stored new integer in %s: %d", path, value);
        } catch (IOException e) {
            throw new UncheckedIOException("Failed to store integer in " + path, e);
        }
    }
Example 2
public void clear(TaskContext context) {
        if (value()) {
            context.log(logger, "Deletes " + path);
            path.deleteIfExists();
        }
    }