public class SegmentAllocateAction extends Object implements TaskAction<SegmentIdentifier>
Constructor and Description |
---|
SegmentAllocateAction(String dataSource,
org.joda.time.DateTime timestamp,
QueryGranularity queryGranularity,
com.metamx.common.Granularity preferredSegmentGranularity,
String sequenceName,
String previousSegmentId) |
Modifier and Type | Method and Description |
---|---|
String |
getDataSource() |
com.metamx.common.Granularity |
getPreferredSegmentGranularity() |
String |
getPreviousSegmentId() |
QueryGranularity |
getQueryGranularity() |
com.fasterxml.jackson.core.type.TypeReference<SegmentIdentifier> |
getReturnTypeReference() |
String |
getSequenceName() |
org.joda.time.DateTime |
getTimestamp() |
static List<com.metamx.common.Granularity> |
granularitiesFinerThan(com.metamx.common.Granularity gran0) |
boolean |
isAudited() |
SegmentIdentifier |
perform(Task task,
TaskActionToolbox toolbox) |
String |
toString() |
public SegmentAllocateAction(String dataSource, org.joda.time.DateTime timestamp, QueryGranularity queryGranularity, com.metamx.common.Granularity preferredSegmentGranularity, String sequenceName, String previousSegmentId)
public static List<com.metamx.common.Granularity> granularitiesFinerThan(com.metamx.common.Granularity gran0)
public String getDataSource()
public org.joda.time.DateTime getTimestamp()
public QueryGranularity getQueryGranularity()
public com.metamx.common.Granularity getPreferredSegmentGranularity()
public String getSequenceName()
public String getPreviousSegmentId()
public com.fasterxml.jackson.core.type.TypeReference<SegmentIdentifier> getReturnTypeReference()
getReturnTypeReference
in interface TaskAction<SegmentIdentifier>
public SegmentIdentifier perform(Task task, TaskActionToolbox toolbox) throws IOException
perform
in interface TaskAction<SegmentIdentifier>
IOException
public boolean isAudited()
isAudited
in interface TaskAction<SegmentIdentifier>
Copyright © 2011–2016. All rights reserved.