|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.splunk.Resource
com.splunk.Entity
com.splunk.Index
public class Index
The Index
class represents an index.
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface java.util.Map |
---|
java.util.Map.Entry<K,V> |
Field Summary |
---|
Fields inherited from class com.splunk.Resource |
---|
actions, path, service, title |
Method Summary | |
---|---|
java.net.Socket |
attach()
Creates a writable socket to this index. |
Index |
clean()
Cleans this index, removing all events. |
boolean |
getAssureUTF8()
Indicates whether the data retrieved from this index has been UTF8-encoded. |
java.lang.String |
getBlockSignatureDatabase()
Returns the block signature database for this index. |
int |
getBlockSignSize()
Returns the block sign size for this index. |
java.lang.String |
getColdPath()
Returns the absolute file path to the cold database for this index. |
java.lang.String |
getColdPathExpanded()
Returns the expanded absolute file path to the cold database for this index. |
java.lang.String |
getColdToFrozenDir()
Returns the frozen archive destination path for this index. |
java.lang.String |
getColdToFrozenScript()
|
boolean |
getCompressRawdata()
Deprecated. Splunk always compresses raw data. |
int |
getCurrentDBSizeMB()
Returns the current size of this index. |
java.lang.String |
getDefaultDatabase()
Return the default index name of the Splunk instance. |
boolean |
getEnableRealtimeSearch()
Indicates whether real-time search is enabled for this index. |
int |
getFrozenTimePeriodInSecs()
Returns the maximum age for a bucket, after which the data in this index rolls to frozen. |
java.lang.String |
getHomePath()
Returns the absolute path to both hot and warm buckets for this index. |
java.lang.String |
getHomePathExpanded()
Returns the expanded absolute path to both hot and warm buckets for this index. |
java.lang.String |
getIndexThreads()
Returns the index thread for this index. |
java.lang.String |
getLastInitTime()
Returns the last initialization time for this index. |
int |
getMaxConcurrentOptimizes()
Returns the maximum number of concurrent optimize processes that can run against a hot bucket for this index. |
java.lang.String |
getMaxDataSize()
Returns the maximum data size before triggering a roll from hot to warm buckets for this index. |
int |
getMaxHotBuckets()
Returns the maximum number of hot buckets that can exist for this index. |
int |
getMaxHotIdleSecs()
Returns the maximum lifetime of a hot bucket for this index. |
int |
getMaxHotSpanSecs()
Returns the upper bound of the target maximum timespan of hot and warm buckets for this index. |
int |
getMaxMemMB()
Returns the amount of memory to allocate for buffering a single tsidx file into memory before flushing to disk. |
int |
getMaxMetaEntries()
Returns the maximum number of unique lines that are allowed in a bucket's .data files for this index. |
int |
getMaxRunningProcessGroups()
Returns the maximum number of concurrent helper processes for this index. |
java.util.Date |
getMaxTime()
Returns the maximum time attribute for this index. |
int |
getMaxTotalDataSizeMB()
Returns the maximum size for this index. |
int |
getMaxWarmDBCount()
Returns the maximum number of warm buckets for this index. |
java.lang.String |
getMemPoolMB()
Returns the memory pool for this index. |
java.lang.String |
getMinRawFileSyncSecs()
Returns the frequency at which Splunkd forces a filesystem sync while compressing journal slices for this index. |
java.util.Date |
getMinTime()
Returns the minimum time attribute for this index. |
int |
getPartialServiceMetaPeriod()
Returns the frequency at which metadata is for partially synced (synced in-place) for this index. |
int |
getQuarantineFutureSecs()
Returns the future event-time quarantine for this index. |
int |
getQuarantinePastSecs()
Returns the past event-time quarantine for this index. |
int |
getRawChunkSizeBytes()
Returns the target uncompressed size of individual raw slices in the rawdata journal for this index. |
int |
getRotatePeriodInSecs()
Returns the frequency to check for the need to create a new hot bucket and the need to roll or freeze any warm or cold buckets for this index. |
int |
getServiceMetaPeriod()
Returns the frequency at which metadata is synced to disk for this index. |
java.lang.String |
getSuppressBannerList()
Returns a list of indexes that suppress "index missing" messages. |
boolean |
getSync()
Returns the sync attribute for this index. |
boolean |
getSyncMeta()
Indicates whether the sync operation is invoked before the file descriptor is closed on metadata updates. |
java.lang.String |
getThawedPath()
Returns the absolute path to the thawed index for this index. |
java.lang.String |
getThawedPathExpanded()
Returns the expanded absolute path to the thawed index for this index. |
int |
getThrottleCheckPeriod()
Returns the frequency at which Splunk checks for an index throttling condition. |
int |
getTotalEventCount()
Returns the total event count for this index. |
boolean |
isInternal()
Indicates whether this index is an internal index. |
void |
rollHotBuckets()
Performs rolling hot buckets for this index. |
void |
submit(java.lang.String data)
Submits an event to this index through an HTTP POST request. |
void |
upload(java.lang.String filename)
Uploads a file to this index as an event stream. |
Methods inherited from class com.splunk.Entity |
---|
actionPath, clear, containsKey, containsValue, disable, enable, entrySet, get, getMetadata, isDisabled, isEmpty, keySet, put, putAll, refresh, reload, remove, remove, size, update, validate, values |
Methods inherited from class com.splunk.Resource |
---|
getActions, getName, getPath, getService, getTitle, invalidate |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface java.util.Map |
---|
equals, hashCode |
Method Detail |
---|
public java.net.Socket attach() throws java.io.IOException
java.io.IOException
public Index clean()
public boolean getAssureUTF8()
true
if the retrieved data is in UTF8, false
if not.public java.lang.String getBlockSignatureDatabase()
public int getBlockSignSize()
public java.lang.String getColdPath()
null
if not specified.public java.lang.String getColdPathExpanded()
null
if not specified.public java.lang.String getColdToFrozenDir()
null
if not specified.public java.lang.String getColdToFrozenScript()
null
if not specified.public boolean getCompressRawdata()
true
if raw data is compressed, false
if not.public int getCurrentDBSizeMB()
public java.lang.String getDefaultDatabase()
public boolean getEnableRealtimeSearch()
true
if real-time search is enabled, false
if not.public int getFrozenTimePeriodInSecs()
coldToFrozen
attributes.
public java.lang.String getHomePath()
null
if not specified.public java.lang.String getHomePathExpanded()
null
if not specified.public java.lang.String getIndexThreads()
public java.lang.String getLastInitTime()
null
if not specified.public int getMaxConcurrentOptimizes()
public java.lang.String getMaxDataSize()
public int getMaxHotBuckets()
public int getMaxHotIdleSecs()
public int getMaxHotSpanSecs()
public int getMaxMemMB()
public int getMaxMetaEntries()
public int getMaxRunningProcessGroups()
public java.util.Date getMaxTime()
null
if not specified.public int getMaxTotalDataSizeMB()
public int getMaxWarmDBCount()
public java.lang.String getMemPoolMB()
public java.lang.String getMinRawFileSyncSecs()
public java.util.Date getMinTime()
null
if not specified.public int getPartialServiceMetaPeriod()
getServiceMetaPeriod
public int getQuarantineFutureSecs()
public int getQuarantinePastSecs()
public int getRawChunkSizeBytes()
public int getRotatePeriodInSecs()
public int getServiceMetaPeriod()
public java.lang.String getSuppressBannerList()
public boolean getSync()
public boolean getSyncMeta()
true
if the sync operation is invoked before the file descriptor
is closed on metadata updates, false
if not.public java.lang.String getThawedPath()
null
if not specified.public java.lang.String getThawedPathExpanded()
null
if not specified.public int getThrottleCheckPeriod()
public int getTotalEventCount()
public boolean isInternal()
true
if this index is an internal index, false
if not.public void rollHotBuckets()
public void submit(java.lang.String data)
data
- The event data that was posted.public void upload(java.lang.String filename)
filename
- The uploaded file.
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |