Class

com.seancheatham.graph.akka.http

HttpServer

Related Doc: package http

Permalink

case class HttpServer(graph: Graph, host: String = "localhost", port: Int = 8080) extends LazyLogging with Product with Serializable

A class which instantiates an Akka-HTTP server wrapped around the given graph. The server will operate at the given host address and port. The routes for the server provide basic CRUD operations for the nodes and edges in the given graph. The Graph's API will be used to perform the changes.

graph

The graph to wrap with the HTTP server

host

The server host to operate on

port

The server port to bind to

Linear Supertypes
Serializable, Serializable, Product, Equals, LazyLogging, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. HttpServer
  2. Serializable
  3. Serializable
  4. Product
  5. Equals
  6. LazyLogging
  7. AnyRef
  8. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new HttpServer(graph: Graph, host: String = "localhost", port: Int = 8080)

    Permalink

    graph

    The graph to wrap with the HTTP server

    host

    The server host to operate on

    port

    The server port to bind to

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  5. val binding: Future[ServerBinding]

    Permalink
  6. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  7. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  8. implicit val executionContext: ExecutionContextExecutor

    Permalink
  9. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  10. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  11. val graph: Graph

    Permalink

    The graph to wrap with the HTTP server

  12. val host: String

    Permalink

    The server host to operate on

  13. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  14. lazy val logger: Logger

    Permalink
    Attributes
    protected
    Definition Classes
    LazyLogging
  15. implicit val materializer: ActorMaterializer

    Permalink
  16. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  17. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  18. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  19. val port: Int

    Permalink

    The server port to bind to

  20. val routes: Route

    Permalink
  21. def shutdown(): Unit

    Permalink

    Shuts down this HTTP server by calling the necessary Akka shutdown functions.

    Shuts down this HTTP server by calling the necessary Akka shutdown functions. This call will block until the server binding completes its shutdown.

  22. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  23. implicit val system: ActorSystem

    Permalink
  24. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  25. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  26. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from LazyLogging

Inherited from AnyRef

Inherited from Any

Ungrouped