Hongyi: update implementation of API
Hongyi: a partial implementation of API, need the interface of scheduler