16 #ifndef STATESTORE_SCHEDULER_H
17 #define STATESTORE_SCHEDULER_H
26 #include "gen-cpp/Types_types.h"
27 #include "gen-cpp/StatestoreService_types.h"
28 #include "gen-cpp/PlanNodes_types.h"
29 #include "gen-cpp/Frontend_types.h"
30 #include "gen-cpp/ImpalaInternalService_types.h"
31 #include "gen-cpp/ResourceBrokerService_types.h"
56 TBackendDescriptor* backend) = 0;
virtual Status GetBackend(const TNetworkAddress &data_location, TBackendDescriptor *backend)=0
virtual bool HasLocalBackend(const TNetworkAddress &data_location)=0
Return true if there is a backend located on the given data_location.
static list< string > backends
virtual Status GetBackends(const std::vector< TNetworkAddress > &data_locations, BackendList *backends)=0
virtual void HandleLostResource(const TUniqueId &client_resource_id)=0
virtual Status Schedule(Coordinator *coord, QuerySchedule *schedule)=0
virtual void HandlePreemptedResource(const TUniqueId &client_resource_id)=0
virtual void HandlePreemptedReservation(const TUniqueId &reservation_id)=0
std::vector< TBackendDescriptor > BackendList
List of server descriptors.
virtual Status Release(QuerySchedule *schedule)=0
Releases the reserved resources (if any) from the given schedule.
virtual void GetAllKnownBackends(BackendList *backends)=0
Return a list of all backends known to the scheduler.