Class RelativeRange
java.lang.Object
org.graylog2.plugin.indexer.searches.timeranges.TimeRange
org.graylog2.plugin.indexer.searches.timeranges.RelativeRange
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic RelativeRangeallTime()static RelativeRangecreate(int range) abstract OptionalIntfrom()org.joda.time.DateTimegetFrom()intgetRange()org.joda.time.DateTimegetTo()booleanabstract org.joda.time.DateTimenowUTC()abstract OptionalIntrange()abstract OptionalIntto()abstract RelativeRange.Buildertype()withReferenceDate(org.joda.time.DateTime now)
-
Field Details
-
RELATIVE
- See Also:
-
-
Constructor Details
-
RelativeRange
public RelativeRange()
-
-
Method Details
-
type
-
range
-
from
-
to
-
nowUTC
@Nullable public abstract org.joda.time.DateTime nowUTC() -
getRange
public int getRange() -
getFrom
public org.joda.time.DateTime getFrom() -
getTo
public org.joda.time.DateTime getTo() -
isAllMessages
public boolean isAllMessages() -
create
- Throws:
InvalidRangeParametersException
-
allTime
-
withReferenceDate
- Specified by:
withReferenceDatein classTimeRange
-
toBuilder
-