13 #ifndef HERMES_SRC_DPE_DATA_PLACEMENT_ENGINE_FACTORY_H_
14 #define HERMES_SRC_DPE_DATA_PLACEMENT_ENGINE_FACTORY_H_
16 #include "dpe/minimize_io_time.h"
17 #include "dpe/random.h"
18 #include "dpe/round_robin.h"
37 std::unique_ptr<DPE>
Get(
const PlacementPolicy &type) {
39 case PlacementPolicy::kRandom: {
40 return std::make_unique<Random>();
42 case PlacementPolicy::kRoundRobin: {
43 return std::make_unique<RoundRobin>();
45 case PlacementPolicy::kMinimizeIoTime: {
46 return std::make_unique<MinimizeIoTime>();
48 case PlacementPolicy::kNone:
51 LOG(FATAL) <<
"PlacementPolicy not implemented" << std::endl;
Definition: data_placement_engine_factory.h:27
std::unique_ptr< DPE > Get(const PlacementPolicy &type)
Definition: data_placement_engine_factory.h:37
PlacementPolicy
Definition: hermes_types.h:73
Definition: adapter_utils.cc:35