com.splunk
Class Upload

java.lang.Object
  extended by com.splunk.Resource
      extended by com.splunk.Entity
          extended by com.splunk.Upload
All Implemented Interfaces:
java.util.Map<java.lang.String,java.lang.Object>

public class Upload
extends Entity

The Upload class represents an in-progress oneshot upload. Use this class to query the state of the upload.

See Also:
Index.upload(java.lang.String)

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.Entity
content, toUpdate
 
Fields inherited from class com.splunk.Resource
actions, path, refreshArgs, service, title
 
Method Summary
 int getBytesIndexed()
          Returns the number of bytes that are currently indexed.
 int getOffset()
          Returns the current offset.
 int getSize()
          Returns the current size.
 int getSourcesIndexed()
          Returns the number of sources that are indexed.
 java.util.Date getSpoolTime()
          Returns the start time of the upload that is being indexed.
 
Methods inherited from class com.splunk.Entity
actionPath, clear, containsKey, containsValue, disable, enable, entrySet, get, getContent, getMetadata, isDisabled, isEmpty, isNameChangeAllowed, keySet, put, putAll, refresh, remove, remove, size, update, update, validate, values
 
Methods inherited from class com.splunk.Resource
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

getBytesIndexed

public int getBytesIndexed()
Returns the number of bytes that are currently indexed.

Returns:
The number of bytes.

getOffset

public int getOffset()
Returns the current offset.

Returns:
The offset.

getSize

public int getSize()
Returns the current size.

Returns:
The size.

getSourcesIndexed

public int getSourcesIndexed()
Returns the number of sources that are indexed.

Returns:
The number of sources.

getSpoolTime

public java.util.Date getSpoolTime()
Returns the start time of the upload that is being indexed.

Returns:
The start time.