Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
  * Copyright (c) 2014 Spotify AB.
  * Licensed to the Apache Software Foundation (ASF) under one
  * or more contributor license agreements.  See the NOTICE file
  * distributed with this work for additional information
  * regarding copyright ownership.  The ASF licenses this file
  * to you under the Apache License, Version 2.0 (the
  * "License"); you may not use this file except in compliance
 * with the License.  You may obtain a copy of the License at
 * Unless required by applicable law or agreed to in writing,
 * software distributed under the License is distributed on an
 * KIND, either express or implied.  See the License for the
 * specific language governing permissions and limitations
 * under the License.
package com.spotify.helios.common.descriptors;
Represents something that has happened to a Task. A typical JSON representation of a task might be:
   "status" : { #... see definition of TaskStatus },
   "timestamp" : 1410308461448,
   "host": "myhost"
@JsonIgnoreProperties(ignoreUnknown = true)
public class TaskStatusEvent extends Descriptor {
  public static final String KAFKA_TOPIC = "HeliosTaskStatusEvents";
  private final TaskStatus status;
  private final long timestamp;
  private final String host;


status The status of the task at the point of the event.
timestamp The timestamp of the event.
host The host on which the event occurred.
  public TaskStatusEvent(@JsonProperty("status"final TaskStatus status,
                         @JsonProperty("timestamp"final long timestamp,
                         @JsonProperty("host"final String host) {
    this. = status;
    this. = timestamp;
    this. = host;
  public String getHost() {
    return ;
  public TaskStatus getStatus() {
    return ;
  public long getTimestamp() {
    return ;
  public String toString() {
    return Objects.toStringHelper(TaskStatusEvent.class)
New to GrepCode? Check out our FAQ X