1
#include "source/server/config_validation/api.h"
2

            
3
#include "source/common/common/assert.h"
4
#include "source/server/config_validation/dispatcher.h"
5

            
6
namespace Envoy {
7
namespace Api {
8

            
9
ValidationImpl::ValidationImpl(Thread::ThreadFactory& thread_factory, Stats::Store& stats_store,
10
                               Event::TimeSystem& time_system, Filesystem::Instance& file_system,
11
                               Random::RandomGenerator& random_generator,
12
                               const envoy::config::bootstrap::v3::Bootstrap& bootstrap,
13
                               const ProcessContextOptRef& process_context)
14
77
    : Impl(thread_factory, stats_store, time_system, file_system, random_generator, bootstrap,
15
77
           process_context),
16
77
      time_system_(time_system) {}
17

            
18
77
Event::DispatcherPtr ValidationImpl::allocateDispatcher(const std::string& name) {
19
77
  return Event::DispatcherPtr{new Event::ValidationDispatcher(name, *this, time_system_)};
20
77
}
21

            
22
Event::DispatcherPtr
23
ValidationImpl::allocateDispatcher(const std::string&,
24
                                   const Event::ScaledRangeTimerManagerFactory&) {
25
  PANIC("not implemented");
26
}
27

            
28
Event::DispatcherPtr ValidationImpl::allocateDispatcher(const std::string&,
29
                                                        Buffer::WatermarkFactoryPtr&&) {
30
  PANIC("not implemented");
31
}
32

            
33
} // namespace Api
34
} // namespace Envoy