Package

com.eiipii.etcd.client

handlers

Permalink

package handlers

Handlers

AsyncHttpClient handlers used to handle requests and return etcd responses asynchronously.

For a given HTTP request, etcd most often returns a response containing a JSON array in its body (although, sometimes it may return an empty body). A response may also contain HTTP headers with the HTTP status code for the response and some information of the etcd cluster (mostly indexes captured as instances of EtcdIndex). AsyncHttpClient offers support for handling HTTP requests with customized handlers. Each handler formats a type of response returned by etcd by parsing the JSON array returned in the response and retrieving the pertinent information in the response's headers. The parsing is done using JSON4S extract method and case classes defined in package model. The information retrieved from the response's headers is passed along with the body to appropriate case classes in the same package.

Http requests to etcd may return and error response or a success response. Error responses usually contain useful information on what went wrong, while success responses return the status of etcd after the request is performed. Handlers appropriately adapted to deal with both situations.

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. handlers
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Type Members

  1. abstract class AbstractEtcdHandler[T] extends AsyncHandler[Unit]

    Permalink
  2. abstract class AbstractEtcdHandlerWithCompleteEtcdHeader[T >: EtcdRequestError] extends AbstractEtcdHandler[T]

    Permalink
  3. abstract class AbstractEtcdHandlerWithSimpleClusterIdHeader[T >: EtcdStandardError] extends AbstractEtcdHandler[T]

    Permalink
  4. abstract class AbstractEtcdHandlerWithoutHeader[T >: EtcdStandardError] extends AbstractEtcdHandler[T]

    Permalink
  5. class EtcdAddMemberAsyncHandler extends AbstractEtcdHandlerWithSimpleClusterIdHeader[EtcdAddMemberResult]

    Permalink
  6. class EtcdAddUserAsyncHandler extends AbstractEtcdHandlerWithSimpleClusterIdHeader[EtcdAddUpdateUserResult]

    Permalink
  7. class EtcdCreateDirResponseAsyncHandler extends AbstractEtcdHandlerWithCompleteEtcdHeader[EtcdCreateDirResult]

    Permalink
  8. class EtcdCreateRoleAsyncHandler extends AbstractEtcdHandlerWithSimpleClusterIdHeader[EtcdAddUpdateRoleResult]

    Permalink
  9. class EtcdDefaultResponseAsyncHandler extends AbstractEtcdHandlerWithSimpleClusterIdHeader[EtcdConfirmationResult]

    Permalink
  10. class EtcdDeleteResponseAsyncHandler extends AbstractEtcdHandlerWithCompleteEtcdHeader[EtcdDeleteKeyResult]

    Permalink
  11. class EtcdGetAuthenticationStatusAsyncHandler extends AbstractEtcdHandlerWithSimpleClusterIdHeader[EtcdGetAuthenticationStatusResult]

    Permalink
  12. class EtcdGetMembersAsyncHandler extends AbstractEtcdHandlerWithSimpleClusterIdHeader[EtcdGetMembersResult]

    Permalink
  13. class EtcdGetResponseAsyncHandler extends AbstractEtcdHandlerWithCompleteEtcdHeader[EtcdGetKeyResult]

    Permalink
  14. class EtcdGetRoleDetailsAsyncHandler extends AbstractEtcdHandlerWithSimpleClusterIdHeader[EtcdGetRoleDetailsResult]

    Permalink
  15. class EtcdGetRolesAsyncHandler extends AbstractEtcdHandlerWithSimpleClusterIdHeader[EtcdGetRolesResult]

    Permalink
  16. class EtcdGetUserDetailsAsyncHandler extends AbstractEtcdHandlerWithSimpleClusterIdHeader[EtcdGetUserDetailsResult]

    Permalink
  17. class EtcdGetUsersAsyncHandler extends AbstractEtcdHandlerWithSimpleClusterIdHeader[EtcdGetUsersResult]

    Permalink
  18. class EtcdHealthResponseAsyncHandler extends AbstractEtcdHandlerWithoutHeader[EtcdGetHealthResult]

    Permalink
  19. class EtcdLeaderStatsResultAsyncHandler extends AbstractEtcdHandlerWithoutHeader[EtcdGetLeaderStatsResult]

    Permalink
  20. class EtcdListDirAsyncHandler extends AbstractEtcdHandlerWithCompleteEtcdHeader[EtcdListDirResult]

    Permalink
  21. class EtcdPutResponseAsyncHandler extends AbstractEtcdHandlerWithCompleteEtcdHeader[EtcdSetKeyResult]

    Permalink
  22. class EtcdSelfStatsResponseAsyncHandler extends AbstractEtcdHandlerWithoutHeader[EtcdGetSelfStatsResult]

    Permalink
  23. class EtcdStoreStatsResponseAsyncHandler extends AbstractEtcdHandlerWithoutHeader[EtcdGetStoreStatsResult]

    Permalink
  24. class EtcdVersionResponseAsyncHandler extends AbstractEtcdHandlerWithoutHeader[EtcdGetVersionResult]

    Permalink
  25. class EtcdWaitAcceptedAsyncHandler extends AbstractEtcdHandlerWithCompleteEtcdHeader[EtcdWaitForKeyResult]

    Permalink
  26. class FullHeaderHandlers extends AnyRef

    Permalink

Inherited from AnyRef

Inherited from Any

Ungrouped