public class JobExportArgs extends Args
JobExportArgs
class contains arguments for exporting events using
the Service.export(java.lang.String)
method.Modifier and Type | Class and Description |
---|---|
static class |
JobExportArgs.OutputMode
Specifies the format for the returned output.
|
static class |
JobExportArgs.SearchMode
Specifies how to create a job using the
JobCollection.create(java.lang.String)
method. |
static class |
JobExportArgs.TruncationMode
Specifies how to truncate lines to achieve the value in
setMaximumLines(int) . |
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
Constructor and Description |
---|
JobExportArgs()
Class constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
setAutoCancel(int autoCancel)
Sets the number of seconds of inactivity after which to automatically cancel a job.
|
void |
setAutoFinalizeEventCount(int autoFinalizeEventCount)
Sets the number of events to process after which to auto-finalize the search.
|
void |
setAutoPause(int autoPause)
Sets the number of seconds of inactivity after which to automatically pause a job.
|
void |
setEarliestTime(String earliestTime)
Specifies the earliest time in the time range to search.
|
void |
setEnableLookups(boolean enableLookups)
Indicates whether to enable lookups for this search.
|
void |
setFieldList(String[] fieldList)
Sets one or more fields to the search.
|
void |
setForceBundleReplication(boolean forceBundleReplication)
Specifies whether this search should cause (and wait depending on the value of
setSynchronizeBundleReplication ) bundle synchronization with all search peers. |
void |
setIndexEarliest(String indexEarliest)
Specifies the earliest time in the time range to search, based on the index time.
|
void |
setIndexLatest(String indexLatest)
Specifies the latest time in the time range to search, based on the index time.
|
void |
setLatestTime(String latestTime)
Specifies the latest time in the time range to search.
|
void |
setMaximumLines(int maximumLines)
Sets the maximum number of lines that any single event's _raw field should contain.
|
void |
setMaximumTime(int maximumTime)
Sets the number of seconds to run this search before finalizing.
|
void |
setNamespace(String namespace)
Specifies the application namespace in which to restrict searches.
|
void |
setNow(String now)
Specifies a time string that sets the absolute time used for any relative time specifier in the search.
|
void |
setOutputMode(JobExportArgs.OutputMode outputMode)
Sets the format of the output.
|
void |
setOutputTimeFormat(String outputTimeFormat)
Sets a UTC time format.
|
void |
setRealtimeBlocking(boolean realtimeBlocking)
Indicates whether the indexer blocks if the queue for this search is full.
|
void |
setRealtimeIndexFilter(boolean realtimeIndexFilter)
Indicates whether the indexer pre-filters events.
|
void |
setRealtimeMaximumBlockSeconds(int realtimeMaximumBlockSeconds)
Sets the number of seconds indicating the maximum time to block.
|
void |
setRealtimeQueueSize(int realtimeQueueSize)
Sets the number indicating the queue size (in events) that the indexer should use for this search.
|
void |
setReduceFrequency(int reduceFrequency)
Sets the time to wait between running the MapReduce phase on accumulated map values.
|
void |
setReloadMacros(boolean reloadMacros)
Indicates whether to reload macro definitions from the macros.conf configuration file.
|
void |
setRemoteServerList(String[] remoteServerList)
Sets a list of (possibly wildcarded) servers from which to pull raw events.
|
void |
setRequiredFieldList(String[] requiredFieldList)
Sets one or more required fields to the search.
|
void |
setSearchListener(String searchListener)
Sets a string that registers a search state listener with the search.
|
void |
setSearchMode(JobExportArgs.SearchMode searchMode)
Sets the search mode ("normal" or "realtime").
|
void |
setSegmentation(String segmentation)
Sets the type of segmentation to perform on the data, including an option to perform k/v segmentation.
|
void |
setSynchronizeBundleReplication(boolean synchronizeBundleReplication)
Indicates whether this search should wait for bundle replication to complete.
|
void |
setTimeFormat(String timeFormat)
Sets the format for converting a formatted time string from {start,end}_time into UTC seconds.
|
void |
setTimeout(int timeout)
Sets the number of seconds to keep this search after processing has stopped.
|
void |
setTruncationMode(JobExportArgs.TruncationMode truncationMode)
Specifies how to truncate lines to achieve the value in
setMaximumLines(int) . |
add, create, create, create, encode, encode, encode, get
clear, containsValue, entrySet, forEach, get, getOrDefault, keySet, removeEldestEntry, replaceAll, values
clone, compute, computeIfAbsent, computeIfPresent, containsKey, isEmpty, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, size
equals, hashCode, toString
finalize, getClass, notify, notifyAll, wait, wait, wait
compute, computeIfAbsent, computeIfPresent, containsKey, equals, hashCode, isEmpty, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, size
public void setIndexEarliest(String indexEarliest)
indexEarliest
- The earliest time.public void setIndexLatest(String indexLatest)
indexLatest
- The latest time.public void setOutputMode(JobExportArgs.OutputMode outputMode)
outputMode
- The output format.public void setAutoCancel(int autoCancel)
autoCancel
- The number of seconds after which to cancel a job.public void setAutoFinalizeEventCount(int autoFinalizeEventCount)
autoFinalizeEventCount
- The number of events.public void setAutoPause(int autoPause)
autoPause
- The number of seconds after which to pause.public void setEarliestTime(String earliestTime)
earliestTime
- The earliest time.public void setEnableLookups(boolean enableLookups)
enableLookups
- true
to enable lookups, false
if not.public void setForceBundleReplication(boolean forceBundleReplication)
setSynchronizeBundleReplication
) bundle synchronization with all search peers.forceBundleReplication
- true
if this search should cause bundle synchronization, false
if not.public void setLatestTime(String latestTime)
latestTime
- The latest time.public void setMaximumTime(int maximumTime)
maximumTime
- The maximum time, in seconds.public void setNamespace(String namespace)
namespace
- The namespace.public void setNow(String now)
You can specify a relative time modifier for this parameter. For example, specify +2d to specify the current time plus two days. If you specify a relative time modifier both in this parameter and in the search string, the search string modifier takes precedence.
For information about relative time modifiers, see Time modifiers for search in the Search Reference.
now
- A time string.public void setReduceFrequency(int reduceFrequency)
reduceFrequency
- The time to wait, in seconds.public void setReloadMacros(boolean reloadMacros)
reloadMacros
- true
to reload macro definitions, false
if not.public void setRemoteServerList(String[] remoteServerList)
remoteServerList
- A list of servers.public void setFieldList(String[] fieldList)
fieldList
- The list of fields.public void setRequiredFieldList(String[] requiredFieldList)
requiredFieldList
- The list of required fields.public void setRealtimeBlocking(boolean realtimeBlocking)
realtimeBlocking
- true
to block the indexer for a full queue, false
if not.public void setRealtimeIndexFilter(boolean realtimeIndexFilter)
realtimeIndexFilter
- true
to pre-filter events, false
if not.public void setRealtimeMaximumBlockSeconds(int realtimeMaximumBlockSeconds)
true
.realtimeMaximumBlockSeconds
- The maximum time to block, in seconds.public void setRealtimeQueueSize(int realtimeQueueSize)
realtimeQueueSize
- The queue size, in events.public void setSearchListener(String searchListener)
search_state;results_condition;http_method;uri;
For example:
search_listener=onResults;true;POST;/servicesNS/admin/search/saved/search/foobar/notify;
searchListener
- The search listener string.public void setSearchMode(JobExportArgs.SearchMode searchMode)
searchMode
- The search mode.public void setSynchronizeBundleReplication(boolean synchronizeBundleReplication)
synchronizeBundleReplication
- true
to wait for bundle replication, false
if not.public void setTimeFormat(String timeFormat)
timeFormat
- The time format string.public void setTimeout(int timeout)
timeout
- The timeout, in seconds.public void setMaximumLines(int maximumLines)
maximumLines
- The maximum number of lines. For no limit, specify 0.public void setOutputTimeFormat(String outputTimeFormat)
outputTimeFormat
- A UTC time format.public void setSegmentation(String segmentation)
segmentation
- The segmentation type.public void setTruncationMode(JobExportArgs.TruncationMode truncationMode)
setMaximumLines(int)
.truncationMode
- The truncation mode.Copyright © 2022 Splunk, Inc.. All rights reserved.