mirror of https://github.com/apache/druid.git
Keep HdfsTaskLogsConfig creator
This commit is contained in:
parent
a637a23eae
commit
f13eab644a
|
@ -18,6 +18,7 @@
|
|||
*/
|
||||
package io.druid.storage.hdfs.tasklog;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonCreator;
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
|
||||
import javax.validation.constraints.NotNull;
|
||||
|
@ -31,6 +32,12 @@ public class HdfsTaskLogsConfig
|
|||
@NotNull
|
||||
private String directory;
|
||||
|
||||
@JsonCreator
|
||||
public HdfsTaskLogsConfig(@JsonProperty("directory") String directory)
|
||||
{
|
||||
this.directory = directory;
|
||||
}
|
||||
|
||||
public String getDirectory()
|
||||
{
|
||||
return directory;
|
||||
|
|
Loading…
Reference in New Issue