Keep HdfsTaskLogsConfig creator

This commit is contained in:
flow 2014-12-19 10:48:39 +08:00
parent a637a23eae
commit f13eab644a
1 changed files with 7 additions and 0 deletions

View File

@ -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;