com.cloudera.api.v14
Interface WatchedDirResource


public interface WatchedDirResource


Method Summary
 ApiWatchedDir addWatchedDirectory(ApiWatchedDir dir)
          Adds a directory to the watching list.
 ApiWatchedDirList listWatchedDirectories()
          Lists all the watched directories.
 ApiWatchedDir removeWatchedDirectory(String directoryPath)
          Removes a directory from the watching list.
 

Method Detail

listWatchedDirectories

@Path(value="/")
ApiWatchedDirList listWatchedDirectories()
Lists all the watched directories.

Available since API v14. Only available with Cloudera Manager Enterprise Edition.

Returns:
List of currently watched directories.

addWatchedDirectory

@Path(value="/")
ApiWatchedDir addWatchedDirectory(ApiWatchedDir dir)
Adds a directory to the watching list.

Available since API v14. Only available with Cloudera Manager Enterprise Edition.

Parameters:
dir - The directory to be added.
Returns:
Added directory.

removeWatchedDirectory

@Path(value="/{directoryPath}")
ApiWatchedDir removeWatchedDirectory(String directoryPath)
Removes a directory from the watching list.

Available since API v14. Only available with Cloudera Manager Enterprise Edition.

Parameters:
directoryPath - The directory path to be removed.
Returns:
Removed directory.


Copyright © Cloudera, Inc. Released under Apache License, Version 2.0.