package com.google.enterprise.cloudsearch.sdk.sdk;

import com.google.enterprise.cloudsearch.sdk.StatsManager;

/**
 * Convenience class to access the connector's stats.
 */
public class ConnectorStats {

  /**
   * Returns the number of full traversals successfully completed.
   */
  public static int getSuccessfulFullTraversalsCount() {
    return StatsManager
        .getComponent("FullTraverser")
        .getSuccessCount("complete");
  }

}

@@ -440,10 +440,360 @@
 );%0A  %7D%0A%0A
+  /**%0A   * Returns the number of incremental traversals successfully completed.%0A   */%0A  public static int getSuccessfulIncrementalTraversalsCount() %7B%0A    return StatsManager%0A        .getComponent(%22IncrementalTraverser%22)%0A        .getSuccessCount(%22complete%22);%0A  %7D%0A  //TODO(lchandramouli): Get failure count for Full Traversal and Incremental traversal%0A
 %7D%0A

Add getSuccessfulIncrementalTraversalsCount in ConnectorStats.