Search in sources :

Example 1 with Agent

use of com.yahoo.vespa.hosted.provision.node.Agent in project vespa by vespa-engine.

the class NodeSerializer method eventFromSlime.

private History.Event eventFromSlime(Inspector object) {
    History.Event.Type type = eventTypeFromString(object.field(historyEventTypeKey).asString());
    if (type == null)
        return null;
    Instant at = Instant.ofEpochMilli(object.field(atKey).asLong());
    Agent agent = eventAgentFromSlime(object.field(agentKey));
    return new History.Event(type, agent, at);
}
Also used : Agent(com.yahoo.vespa.hosted.provision.node.Agent) Instant(java.time.Instant)

Aggregations

Agent (com.yahoo.vespa.hosted.provision.node.Agent)1 Instant (java.time.Instant)1