Safe Haskell | None |
---|---|
Language | Haskell2010 |
- type SchedulerPtr = Ptr Scheduler
- data Scheduler = Scheduler {
- schedulerImpl :: SchedulerPtr
- rawSchedulerRegistered :: FunPtr RawSchedulerRegistered
- rawSchedulerReRegistered :: FunPtr RawSchedulerReRegistered
- rawSchedulerDisconnected :: FunPtr RawSchedulerDisconnected
- rawSchedulerResourceOffers :: FunPtr RawSchedulerResourceOffers
- rawSchedulerOfferRescinded :: FunPtr RawSchedulerOfferRescinded
- rawSchedulerStatusUpdate :: FunPtr RawSchedulerStatusUpdate
- rawSchedulerFrameworkMessage :: FunPtr RawSchedulerFrameworkMessage
- rawSchedulerSlaveLost :: FunPtr RawSchedulerSlaveLost
- rawSchedulerExecutorLost :: FunPtr RawSchedulerExecutorLost
- rawSchedulerError :: FunPtr RawSchedulerError
- newtype SchedulerDriver = SchedulerDriver {}
- type SchedulerDriverPtr = Ptr SchedulerDriver
- type RawSchedulerRegistered = SchedulerDriverPtr -> FrameworkIDPtr -> MasterInfoPtr -> IO ()
- type RawSchedulerReRegistered = SchedulerDriverPtr -> MasterInfoPtr -> IO ()
- type RawSchedulerDisconnected = SchedulerDriverPtr -> IO ()
- type RawSchedulerResourceOffers = SchedulerDriverPtr -> Ptr OfferPtr -> CInt -> IO ()
- type RawSchedulerOfferRescinded = SchedulerDriverPtr -> OfferIDPtr -> IO ()
- type RawSchedulerStatusUpdate = SchedulerDriverPtr -> TaskStatusPtr -> IO ()
- type RawSchedulerFrameworkMessage = SchedulerDriverPtr -> ExecutorIDPtr -> SlaveIDPtr -> Ptr CChar -> Int -> IO ()
- type RawSchedulerSlaveLost = SchedulerDriverPtr -> SlaveIDPtr -> IO ()
- type RawSchedulerExecutorLost = SchedulerDriverPtr -> ExecutorIDPtr -> SlaveIDPtr -> CInt -> IO ()
- type RawSchedulerError = SchedulerDriverPtr -> Ptr CChar -> CInt -> IO ()
- wrapSchedulerRegistered :: RawSchedulerRegistered -> IO (FunPtr RawSchedulerRegistered)
- wrapSchedulerReRegistered :: RawSchedulerReRegistered -> IO (FunPtr RawSchedulerReRegistered)
- wrapSchedulerDisconnected :: RawSchedulerDisconnected -> IO (FunPtr RawSchedulerDisconnected)
- wrapSchedulerResourceOffers :: RawSchedulerResourceOffers -> IO (FunPtr RawSchedulerResourceOffers)
- wrapSchedulerOfferRescinded :: RawSchedulerOfferRescinded -> IO (FunPtr RawSchedulerOfferRescinded)
- wrapSchedulerStatusUpdate :: RawSchedulerStatusUpdate -> IO (FunPtr RawSchedulerStatusUpdate)
- wrapSchedulerFrameworkMessage :: RawSchedulerFrameworkMessage -> IO (FunPtr RawSchedulerFrameworkMessage)
- wrapSchedulerSlaveLost :: RawSchedulerSlaveLost -> IO (FunPtr RawSchedulerSlaveLost)
- wrapSchedulerExecutorLost :: RawSchedulerExecutorLost -> IO (FunPtr RawSchedulerExecutorLost)
- wrapSchedulerError :: RawSchedulerError -> IO (FunPtr RawSchedulerError)
- c_createScheduler :: FunPtr RawSchedulerRegistered -> FunPtr RawSchedulerReRegistered -> FunPtr RawSchedulerDisconnected -> FunPtr RawSchedulerResourceOffers -> FunPtr RawSchedulerOfferRescinded -> FunPtr RawSchedulerStatusUpdate -> FunPtr RawSchedulerFrameworkMessage -> FunPtr RawSchedulerSlaveLost -> FunPtr RawSchedulerExecutorLost -> FunPtr RawSchedulerError -> IO SchedulerPtr
- c_destroyScheduler :: SchedulerPtr -> IO ()
- c_createSchedulerDriver :: SchedulerPtr -> FrameworkInfoPtr -> Ptr CChar -> CInt -> IO SchedulerDriverPtr
- c_createSchedulerDriverWithCredentials :: SchedulerPtr -> FrameworkInfoPtr -> Ptr CChar -> CInt -> CredentialPtr -> IO SchedulerDriverPtr
- c_destroySchedulerDriver :: SchedulerDriverPtr -> IO ()
- c_startSchedulerDriver :: SchedulerDriverPtr -> IO CInt
- c_stopSchedulerDriver :: SchedulerDriverPtr -> CInt -> IO CInt
- c_abortSchedulerDriver :: SchedulerDriverPtr -> IO CInt
- c_joinSchedulerDriver :: SchedulerDriverPtr -> IO CInt
- c_runSchedulerDriver :: SchedulerDriverPtr -> IO CInt
- c_requestResources :: SchedulerDriverPtr -> Ptr RequestPtr -> CInt -> IO CInt
- c_launchTasks :: SchedulerDriverPtr -> Ptr OfferIDPtr -> CInt -> Ptr TaskInfoPtr -> CInt -> FiltersPtr -> IO CInt
- c_killTask :: SchedulerDriverPtr -> TaskIDPtr -> IO CInt
- c_declineOffer :: SchedulerDriverPtr -> OfferIDPtr -> FiltersPtr -> IO CInt
- c_reviveOffers :: SchedulerDriverPtr -> IO CInt
- c_sendFrameworkMessage :: SchedulerDriverPtr -> ExecutorIDPtr -> SlaveIDPtr -> Ptr CChar -> CInt -> IO CInt
- c_reconcileTasks :: SchedulerDriverPtr -> Ptr TaskStatusPtr -> CInt -> IO CInt
Documentation
type SchedulerPtr = Ptr Scheduler Source
newtype SchedulerDriver Source
Type representing the connection from a scheduler to Mesos. This handle is used both to manage the scheduler's lifecycle (start it, stop it, or wait for it to finish) and to interact with Mesos (e.g., launch tasks, kill tasks, etc.).
type RawSchedulerRegistered = SchedulerDriverPtr -> FrameworkIDPtr -> MasterInfoPtr -> IO () Source
type RawSchedulerReRegistered = SchedulerDriverPtr -> MasterInfoPtr -> IO () Source
type RawSchedulerDisconnected = SchedulerDriverPtr -> IO () Source
type RawSchedulerResourceOffers = SchedulerDriverPtr -> Ptr OfferPtr -> CInt -> IO () Source
type RawSchedulerOfferRescinded = SchedulerDriverPtr -> OfferIDPtr -> IO () Source
type RawSchedulerStatusUpdate = SchedulerDriverPtr -> TaskStatusPtr -> IO () Source
type RawSchedulerFrameworkMessage = SchedulerDriverPtr -> ExecutorIDPtr -> SlaveIDPtr -> Ptr CChar -> Int -> IO () Source
type RawSchedulerSlaveLost = SchedulerDriverPtr -> SlaveIDPtr -> IO () Source
type RawSchedulerExecutorLost = SchedulerDriverPtr -> ExecutorIDPtr -> SlaveIDPtr -> CInt -> IO () Source
type RawSchedulerError = SchedulerDriverPtr -> Ptr CChar -> CInt -> IO () Source
wrapSchedulerReRegistered :: RawSchedulerReRegistered -> IO (FunPtr RawSchedulerReRegistered) Source
wrapSchedulerDisconnected :: RawSchedulerDisconnected -> IO (FunPtr RawSchedulerDisconnected) Source
wrapSchedulerResourceOffers :: RawSchedulerResourceOffers -> IO (FunPtr RawSchedulerResourceOffers) Source
wrapSchedulerOfferRescinded :: RawSchedulerOfferRescinded -> IO (FunPtr RawSchedulerOfferRescinded) Source
wrapSchedulerStatusUpdate :: RawSchedulerStatusUpdate -> IO (FunPtr RawSchedulerStatusUpdate) Source
wrapSchedulerFrameworkMessage :: RawSchedulerFrameworkMessage -> IO (FunPtr RawSchedulerFrameworkMessage) Source
wrapSchedulerExecutorLost :: RawSchedulerExecutorLost -> IO (FunPtr RawSchedulerExecutorLost) Source
c_createScheduler :: FunPtr RawSchedulerRegistered -> FunPtr RawSchedulerReRegistered -> FunPtr RawSchedulerDisconnected -> FunPtr RawSchedulerResourceOffers -> FunPtr RawSchedulerOfferRescinded -> FunPtr RawSchedulerStatusUpdate -> FunPtr RawSchedulerFrameworkMessage -> FunPtr RawSchedulerSlaveLost -> FunPtr RawSchedulerExecutorLost -> FunPtr RawSchedulerError -> IO SchedulerPtr Source
c_destroyScheduler :: SchedulerPtr -> IO () Source
c_createSchedulerDriver :: SchedulerPtr -> FrameworkInfoPtr -> Ptr CChar -> CInt -> IO SchedulerDriverPtr Source
c_createSchedulerDriverWithCredentials :: SchedulerPtr -> FrameworkInfoPtr -> Ptr CChar -> CInt -> CredentialPtr -> IO SchedulerDriverPtr Source
c_stopSchedulerDriver :: SchedulerDriverPtr -> CInt -> IO CInt Source
c_requestResources :: SchedulerDriverPtr -> Ptr RequestPtr -> CInt -> IO CInt Source
c_launchTasks :: SchedulerDriverPtr -> Ptr OfferIDPtr -> CInt -> Ptr TaskInfoPtr -> CInt -> FiltersPtr -> IO CInt Source
c_killTask :: SchedulerDriverPtr -> TaskIDPtr -> IO CInt Source
c_declineOffer :: SchedulerDriverPtr -> OfferIDPtr -> FiltersPtr -> IO CInt Source
c_sendFrameworkMessage :: SchedulerDriverPtr -> ExecutorIDPtr -> SlaveIDPtr -> Ptr CChar -> CInt -> IO CInt Source
c_reconcileTasks :: SchedulerDriverPtr -> Ptr TaskStatusPtr -> CInt -> IO CInt Source