| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Network.Livy.Types
Synopsis
- class LivyRequest a where
- type family LivyResponse a :: *
- class ToPath a where
- toPath :: a -> ByteString
- class ToQuery a where
- toQueryString :: a -> Query
- data LivyError = LivyError {
- _leType :: !LivyErrorType
- _leMessage :: !ByteString
- _leResponseBody :: !(Maybe ByteString)
- _leCode :: !(Maybe LivyHTTPErrorCode)
- data LivyErrorType
- data LivyHTTPErrorCode
- leCode :: Lens' LivyError (Maybe LivyHTTPErrorCode)
- leMessage :: Lens' LivyError ByteString
- leResponseBody :: Lens' LivyError (Maybe ByteString)
- leType :: Lens' LivyError LivyErrorType
Request/response types
class LivyRequest a where Source #
Specify how a request is created.
Instances
type family LivyResponse a :: * Source #
The response type of a Livy request.
Instances
| type LivyResponse RunStatementCompletion Source # | |
| type LivyResponse RunStatement Source # | |
| type LivyResponse KillSession Source # | |
| type LivyResponse GetSessions Source # | |
| type LivyResponse GetSessionStatements Source # | |
| type LivyResponse GetSessionStatement Source # | |
| type LivyResponse GetSessionState Source # | |
| type LivyResponse GetSessionLogs Source # | |
| type LivyResponse GetSession Source # | |
Defined in Network.Livy.Client.Interactive.GetSession | |
| type LivyResponse CreateSession Source # | |
| type LivyResponse CancelStatement Source # | |
| type LivyResponse KillBatch Source # | |
Defined in Network.Livy.Client.Batch.KillBatch | |
| type LivyResponse GetBatches Source # | |
Defined in Network.Livy.Client.Batch.GetBatches | |
| type LivyResponse GetBatchState Source # | |
| type LivyResponse GetBatchLogs Source # | |
Defined in Network.Livy.Client.Batch.GetBatchLogs | |
| type LivyResponse GetBatch Source # | |
Defined in Network.Livy.Client.Batch.GetBatch | |
| type LivyResponse CreateBatch Source # | |
Defined in Network.Livy.Client.Batch.CreateBatch | |
Specify how a value is converted to a URL fragment.
Methods
toPath :: a -> ByteString Source #
Instances
class ToQuery a where Source #
Specify how a value is converted to a collection of query parameters.
Methods
toQueryString :: a -> Query Source #
Instances
| ToQuery GetSessions Source # | |
Defined in Network.Livy.Client.Interactive.GetSessions Methods toQueryString :: GetSessions -> Query Source # | |
| ToQuery GetSessionLogs Source # | |
Defined in Network.Livy.Client.Interactive.GetSessionLogs Methods toQueryString :: GetSessionLogs -> Query Source # | |
| ToQuery GetBatches Source # | |
Defined in Network.Livy.Client.Batch.GetBatches Methods toQueryString :: GetBatches -> Query Source # | |
| ToQuery GetBatchLogs Source # | |
Defined in Network.Livy.Client.Batch.GetBatchLogs Methods toQueryString :: GetBatchLogs -> Query Source # | |
Exceptions
An error with Livy.
Constructors
| LivyError | |
Fields
| |
Instances
| Show LivyError Source # | |
| Exception LivyError Source # | |
Defined in Network.Livy.Types Methods toException :: LivyError -> SomeException # fromException :: SomeException -> Maybe LivyError # displayException :: LivyError -> String # | |
data LivyErrorType Source #
Livy error types.
Instances
| Show LivyErrorType Source # | |
Defined in Network.Livy.Types Methods showsPrec :: Int -> LivyErrorType -> ShowS # show :: LivyErrorType -> String # showList :: [LivyErrorType] -> ShowS # | |
data LivyHTTPErrorCode Source #
HTTP response error codes.
Constructors
| BadRequest | |
| Unauthorized | |
| RequestFailed | |
| Forbidden | |
| BadMethod | |
| NotFound | |
| ServerError | |
| UnknownHTTPErrorCode |
Instances
| Show LivyHTTPErrorCode Source # | |
Defined in Network.Livy.Types Methods showsPrec :: Int -> LivyHTTPErrorCode -> ShowS # show :: LivyHTTPErrorCode -> String # showList :: [LivyHTTPErrorCode] -> ShowS # | |