elasticsearch/elasticsearch — pull request #8900 by s1monw (2014-12-11 14:25:48+00:00)
Title: [ENGINE] Remove engine related command classes

Todaqy we pass structs to the engine to call optimize / refresh and flush.
This commit cleans up this logic to reduce complexity in the engine.