@@ -40,27 +40,28 @@ public class Index extends Entity {
4040 * Creates a writable socket to this index.
4141 *
4242 * @return The writable socket.
43- * @throws IOException
43+ * @throws IOException Throws exception if fails to write socket.
4444 */
4545 public Socket attach () throws IOException {
4646 Receiver receiver = service .getReceiver ();
4747 return receiver .attach (getName ());
4848 }
4949
5050 /**
51- * Writes events to this index, reusing the connection.
52- * This method passes an output stream connected to the index to the
53- * {@code run} method of the {@code ReceiverBehavior} object, then handles
51+ * Writes events to this index, reusing the connection.
52+ * This method passes an output stream connected to the index to the
53+ * {@code run} method of the {@code ReceiverBehavior} object, then handles
5454 * setting up and tearing down the socket.
5555 * <p>
56- * For an example of how to use this method, see
57- * <a href="http://dev.splunk.com/view/SP-CAAAEJ2" target="_blank">How to
58- * get data into Splunk</a> on
59- * <a href="http://dev.splunk.com/view/SP-CAAAEJ2"
56+ * For an example of how to use this method, see
57+ * <a href="http://dev.splunk.com/view/SP-CAAAEJ2" target="_blank">How to
58+ * get data into Splunk</a> on
59+ * <a href="http://dev.splunk.com/view/SP-CAAAEJ2"
6060 * target="_blank">dev.splunk.com</a>.
61- *
62- * @param behavior The body of a {@code try} block as an anonymous
61+ *
62+ * @param behavior The body of a {@code try} block as an anonymous
6363 * implementation of the {@code ReceiverBehavior} interface.
64+ * @throws IOException The IOException class
6465 */
6566 public void attachWith (ReceiverBehavior behavior ) throws IOException {
6667 Socket socket = null ;
@@ -82,7 +83,7 @@ public void attachWith(ReceiverBehavior behavior) throws IOException {
8283 * @param args Optional arguments for this stream. Valid parameters are:
8384 * "host", "host_regex", "source", and "sourcetype".
8485 * @return The socket.
85- * @throws IOException
86+ * @throws IOException The IOException class
8687 */
8788 public Socket attach (Args args ) throws IOException {
8889 Receiver receiver = service .getReceiver ();
@@ -327,6 +328,7 @@ public String getLastInitTime() {
327328 * is older than this, Splunk does not create or rebuild its bloomfilter.
328329 * The valid format is <i>number</i> followed by a time unit ("s", "m", "h",
329330 * or "d"). For example, "30d" for 30 days.
331+ * @return String value
330332 */
331333 public String getMaxBloomBackfillBucketAge () {
332334 return getString ("maxBloomBackfillBucketAge" , null );
@@ -358,10 +360,10 @@ public String getMaxDataSize() {
358360 /**
359361 * Returns the maximum number of hot buckets that can exist for this index.
360362 *
361- * @return The maximum number of hot buckets.
363+ * @return The maximum number of hot buckets or "auto" (which means 3) .
362364 */
363- public int getMaxHotBuckets () {
364- return getInteger ("maxHotBuckets" );
365+ public String getMaxHotBuckets () {
366+ return getString ("maxHotBuckets" );
365367 }
366368
367369 /**
@@ -441,6 +443,7 @@ public int getMaxTotalDataSizeMB() {
441443 * If there are any acknowledged events sharing this raw slice, the
442444 * {@code MaxTimeUnreplicatedWithAcksparamater} applies instead.
443445 * @see #getMaxTimeUnreplicatedWithAcks
446+ * @return int value
444447 */
445448 public int getMaxTimeUnreplicatedNoAcks () {
446449 return getInteger ("maxTimeUnreplicatedNoAcks" );
@@ -451,6 +454,7 @@ public int getMaxTimeUnreplicatedNoAcks() {
451454 * unacknowledged in a raw slice. This value only applies when indexer
452455 * acknowledgement is enabled on forwarders and replication is enabled with
453456 * clustering.
457+ * @return int value
454458 */
455459 public int getMaxTimeUnreplicatedWithAcks () {
456460 return getInteger ("maxTimeUnreplicatedWithAcks" );
@@ -720,8 +724,7 @@ public void setBucketRebuildMemoryHint(String value) {
720724 /**
721725 * Sets the destination path for the frozen archive, where Splunk
722726 * automatically puts frozen buckets. The bucket freezing policy is as
723- *follows:
724- * <p>
727+ * follows:
725728 * <ul><li><b>New-style buckets (4.2 and later):</b> All files are removed
726729 * except the raw data. To thaw frozen buckets, run {@code Splunk rebuild
727730 * <bucket dir>} on the bucket, then move the buckets to the thawed
@@ -828,9 +831,9 @@ public void setMaxDataSize(String size) {
828831 * @see #setMaxHotIdleSecs
829832 * @see #getMaxHotIdleSecs
830833 *
831- * @param size The maximum number of hot buckets per index.
834+ * @param size The maximum number of hot buckets per index, or an 'auto' string .
832835 */
833- public void setMaxHotBuckets (int size ) {
836+ public void setMaxHotBuckets (String size ) {
834837 setCacheValue ("maxHotBuckets" , size );
835838 }
836839
0 commit comments