Package com.arangodb.model
Class LogOptions
- java.lang.Object
-
- com.arangodb.model.LogOptions
-
public final class LogOptions extends Object
- Author:
- Mark Vollmary
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classLogOptions.SortOrder
-
Field Summary
Fields Modifier and Type Field Description static StringPROPERTY_LEVELstatic StringPROPERTY_OFFSETstatic StringPROPERTY_SEARCHstatic StringPROPERTY_SIZEstatic StringPROPERTY_SORTstatic StringPROPERTY_STARTstatic StringPROPERTY_UPTO
-
Constructor Summary
Constructors Constructor Description LogOptions()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description LogLevelgetLevel()IntegergetOffset()StringgetSearch()IntegergetSize()LogOptions.SortOrdergetSort()LonggetStart()LogLevelgetUpto()LogOptionslevel(LogLevel level)LogOptionsoffset(Integer offset)LogOptionssearch(String search)LogOptionssize(Integer size)LogOptionssort(LogOptions.SortOrder sort)LogOptionsstart(Long start)LogOptionsupto(LogLevel upto)
-
-
-
Field Detail
-
PROPERTY_UPTO
public static final String PROPERTY_UPTO
- See Also:
- Constant Field Values
-
PROPERTY_LEVEL
public static final String PROPERTY_LEVEL
- See Also:
- Constant Field Values
-
PROPERTY_START
public static final String PROPERTY_START
- See Also:
- Constant Field Values
-
PROPERTY_SIZE
public static final String PROPERTY_SIZE
- See Also:
- Constant Field Values
-
PROPERTY_OFFSET
public static final String PROPERTY_OFFSET
- See Also:
- Constant Field Values
-
PROPERTY_SEARCH
public static final String PROPERTY_SEARCH
- See Also:
- Constant Field Values
-
PROPERTY_SORT
public static final String PROPERTY_SORT
- See Also:
- Constant Field Values
-
-
Method Detail
-
getUpto
public LogLevel getUpto()
-
upto
public LogOptions upto(LogLevel upto)
- Parameters:
upto- Returns all log entries up to log level upto- Returns:
- options
-
getLevel
public LogLevel getLevel()
-
level
public LogOptions level(LogLevel level)
- Parameters:
level- Returns all log entries of log level level. Note that the query parameters upto and level are mutually exclusive- Returns:
- options
-
getStart
public Long getStart()
-
start
public LogOptions start(Long start)
- Parameters:
start- Returns all log entries such that their log entry identifier (lid value) is greater or equal to start- Returns:
- options
-
getSize
public Integer getSize()
-
size
public LogOptions size(Integer size)
- Parameters:
size- Restricts the result to at most size log entries- Returns:
- options
-
getOffset
public Integer getOffset()
-
offset
public LogOptions offset(Integer offset)
- Parameters:
offset- Starts to return log entries skipping the first offset log entries. offset and size can be used for pagination- Returns:
- options
-
getSearch
public String getSearch()
-
search
public LogOptions search(String search)
- Parameters:
search- Only return the log entries containing the text specified in search- Returns:
- options
-
getSort
public LogOptions.SortOrder getSort()
-
sort
public LogOptions sort(LogOptions.SortOrder sort)
- Parameters:
sort- Sort the log entries either ascending (if sort is asc) or descending (if sort is desc) according to their lid values. Note that the lid imposes a chronological order. The default value is asc- Returns:
- options
-
-