ThreadPool.php 972 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. <?php
  2. namespace Elasticsearch\Endpoints\Cat;
  3. use Elasticsearch\Endpoints\AbstractEndpoint;
  4. /**
  5. * Class ThreadPool
  6. *
  7. * @category Elasticsearch
  8. * @package Elasticsearch\Endpoints\Cat
  9. * @author Zachary Tong <zach@elastic.co>
  10. * @license http://www.apache.org/licenses/LICENSE-2.0 Apache2
  11. * @link http://elastic.co
  12. */
  13. class ThreadPool extends AbstractEndpoint
  14. {
  15. /**
  16. * @return string
  17. */
  18. public function getURI()
  19. {
  20. $uri = "/_cat/thread_pool";
  21. return $uri;
  22. }
  23. /**
  24. * @return string[]
  25. */
  26. public function getParamWhitelist()
  27. {
  28. return array(
  29. 'local',
  30. 'master_timeout',
  31. 'h',
  32. 'help',
  33. 'v',
  34. 'full_id',
  35. 'size',
  36. 'thread_pool_patterns',
  37. 's',
  38. 'format',
  39. );
  40. }
  41. /**
  42. * @return string
  43. */
  44. public function getMethod()
  45. {
  46. return 'GET';
  47. }
  48. }