@InterfaceAudience.Public @InterfaceStability.Stable public class ReconfigurationTaskStatus extends Object
Constructor and Description |
---|
ReconfigurationTaskStatus(long startTime,
long endTime,
Map<org.apache.hadoop.conf.ReconfigurationUtil.PropertyChange,com.google.common.base.Optional<String>> status) |
Modifier and Type | Method and Description |
---|---|
long |
getEndTime() |
long |
getStartTime() |
Map<org.apache.hadoop.conf.ReconfigurationUtil.PropertyChange,com.google.common.base.Optional<String>> |
getStatus() |
boolean |
hasTask()
Return true if
- A reconfiguration task has finished or
- an active reconfiguration task is running
|
boolean |
stopped()
Return true if the latest reconfiguration task has finished and there is
no another active task running.
|
public ReconfigurationTaskStatus(long startTime, long endTime, Map<org.apache.hadoop.conf.ReconfigurationUtil.PropertyChange,com.google.common.base.Optional<String>> status)
public boolean hasTask()
public boolean stopped()
public long getStartTime()
public long getEndTime()
Copyright © 2017 Apache Software Foundation. All rights reserved.