Safe Haskell | None |
---|---|
Language | Haskell2010 |
- type ExecutorPtr = Ptr Executor
- data Executor = Executor {
- executorImpl :: Ptr Executor
- rawExecutorRegistered :: FunPtr RawExecutorRegistered
- rawExecutorReRegistered :: FunPtr RawExecutorReRegistered
- rawExecutorDisconnected :: FunPtr RawExecutorDisconnected
- rawExecutorLaunchTask :: FunPtr RawExecutorLaunchTask
- rawExecutorTaskKilled :: FunPtr RawExecutorTaskKilled
- rawExecutorFrameworkMessage :: FunPtr RawExecutorFrameworkMessage
- rawExecutorShutdown :: FunPtr RawExecutorShutdown
- rawExecutorErrorCallback :: FunPtr RawExecutorError
- type ExecutorDriverPtr = Ptr ExecutorDriver
- newtype ExecutorDriver = ExecutorDriver {}
- type RawExecutorRegistered = ExecutorDriverPtr -> ExecutorInfoPtr -> FrameworkInfoPtr -> SlaveInfoPtr -> IO ()
- type RawExecutorReRegistered = ExecutorDriverPtr -> SlaveInfoPtr -> IO ()
- type RawExecutorDisconnected = ExecutorDriverPtr -> IO ()
- type RawExecutorLaunchTask = ExecutorDriverPtr -> TaskInfoPtr -> IO ()
- type RawExecutorTaskKilled = ExecutorDriverPtr -> TaskIDPtr -> IO ()
- type RawExecutorFrameworkMessage = ExecutorDriverPtr -> Ptr CChar -> CInt -> IO ()
- type RawExecutorShutdown = ExecutorDriverPtr -> IO ()
- type RawExecutorError = ExecutorDriverPtr -> Ptr CChar -> CInt -> IO ()
- wrapExecutorRegistered :: RawExecutorRegistered -> IO (FunPtr RawExecutorRegistered)
- wrapExecutorReRegistered :: RawExecutorReRegistered -> IO (FunPtr RawExecutorReRegistered)
- wrapExecutorDisconnected :: RawExecutorDisconnected -> IO (FunPtr RawExecutorDisconnected)
- wrapExecutorLaunchTask :: RawExecutorLaunchTask -> IO (FunPtr RawExecutorLaunchTask)
- wrapExecutorTaskKilled :: RawExecutorTaskKilled -> IO (FunPtr RawExecutorTaskKilled)
- wrapExecutorFrameworkMessage :: RawExecutorFrameworkMessage -> IO (FunPtr RawExecutorFrameworkMessage)
- wrapExecutorShutdown :: RawExecutorShutdown -> IO (FunPtr RawExecutorShutdown)
- wrapExecutorError :: RawExecutorError -> IO (FunPtr RawExecutorError)
- c_createExecutor :: FunPtr RawExecutorRegistered -> FunPtr RawExecutorReRegistered -> FunPtr RawExecutorDisconnected -> FunPtr RawExecutorLaunchTask -> FunPtr RawExecutorTaskKilled -> FunPtr RawExecutorFrameworkMessage -> FunPtr RawExecutorShutdown -> FunPtr RawExecutorError -> IO ExecutorPtr
- c_destroyExecutor :: ExecutorPtr -> IO ()
- c_createExecutorDriver :: ExecutorPtr -> IO ExecutorDriverPtr
- c_destroyExecutorDriver :: ExecutorDriverPtr -> IO ()
- c_startExecutorDriver :: ExecutorDriverPtr -> IO CInt
- c_stopExecutorDriver :: ExecutorDriverPtr -> IO CInt
- c_abortExecutorDriver :: ExecutorDriverPtr -> IO CInt
- c_joinExecutorDriver :: ExecutorDriverPtr -> IO CInt
- c_runExecutorDriver :: ExecutorDriverPtr -> IO CInt
- c_sendExecutorDriverStatusUpdate :: ExecutorDriverPtr -> TaskStatusPtr -> IO CInt
- c_sendExecutorDriverFrameworkMessage :: ExecutorDriverPtr -> Ptr CChar -> CInt -> IO CInt
Documentation
type ExecutorPtr = Ptr Executor Source
A data structure of the underlying executor & the callbacks that are triggered via the Mesos C++ API.
type ExecutorDriverPtr = Ptr ExecutorDriver Source
newtype ExecutorDriver Source
A handle that allows an Executor to trigger lifecycle & status update events (e.g. starting & stopping the executor and sending messages to the Scheduler that invoked the executor).
type RawExecutorRegistered = ExecutorDriverPtr -> ExecutorInfoPtr -> FrameworkInfoPtr -> SlaveInfoPtr -> IO () Source
type RawExecutorReRegistered = ExecutorDriverPtr -> SlaveInfoPtr -> IO () Source
type RawExecutorDisconnected = ExecutorDriverPtr -> IO () Source
type RawExecutorLaunchTask = ExecutorDriverPtr -> TaskInfoPtr -> IO () Source
type RawExecutorTaskKilled = ExecutorDriverPtr -> TaskIDPtr -> IO () Source
type RawExecutorFrameworkMessage = ExecutorDriverPtr -> Ptr CChar -> CInt -> IO () Source
type RawExecutorShutdown = ExecutorDriverPtr -> IO () Source
type RawExecutorError = ExecutorDriverPtr -> Ptr CChar -> CInt -> IO () Source
wrapExecutorFrameworkMessage :: RawExecutorFrameworkMessage -> IO (FunPtr RawExecutorFrameworkMessage) Source
c_createExecutor :: FunPtr RawExecutorRegistered -> FunPtr RawExecutorReRegistered -> FunPtr RawExecutorDisconnected -> FunPtr RawExecutorLaunchTask -> FunPtr RawExecutorTaskKilled -> FunPtr RawExecutorFrameworkMessage -> FunPtr RawExecutorShutdown -> FunPtr RawExecutorError -> IO ExecutorPtr Source
c_destroyExecutor :: ExecutorPtr -> IO () Source
c_destroyExecutorDriver :: ExecutorDriverPtr -> IO () Source