Skip to content

Commit

Permalink
Remove obsolete Shutdown API
Browse files Browse the repository at this point in the history
This has been long gone!
  • Loading branch information
polyfractal committed Jan 7, 2019
1 parent d5edab7 commit c75d690
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 72 deletions.
49 changes: 0 additions & 49 deletions src/Elasticsearch/Endpoints/Cluster/Nodes/Shutdown.php

This file was deleted.

23 changes: 0 additions & 23 deletions src/Elasticsearch/Namespaces/NodesNamespace.php
Original file line number Diff line number Diff line change
Expand Up @@ -108,27 +108,4 @@ public function hotThreads($params = array())
return $this->performRequest($endpoint);
}

/**
* $params['node_id'] = (list) A comma-separated list of node IDs or names to perform the operation on; use `_local` to perform the operation on the node you're connected to, leave empty to perform the operation on all nodes
* ['delay'] = (time) Set the delay for the operation (default: 1s)
* ['exit'] = (boolean) Exit the JVM as well (default: true)
*
* @param $params array Associative array of parameters
*
* @return array
*/
public function shutdown($params = array())
{
$nodeID = $this->extractArgument($params, 'node_id');

/** @var callback $endpointBuilder */
$endpointBuilder = $this->endpoints;

/** @var \Elasticsearch\Endpoints\Cluster\Nodes\Shutdown $endpoint */
$endpoint = $endpointBuilder('Cluster\Nodes\Shutdown');
$endpoint->setNodeID($nodeID);
$endpoint->setParams($params);

return $this->performRequest($endpoint);
}
}

0 comments on commit c75d690

Please sign in to comment.