Interface EmbeddedWorkerInstanceContainer

All Superinterfaces:
AutoCloseable, EmbeddedInstanceContainer
All Known Implementing Classes:
JeroMQEmbeddedWorkerInstanceContainer

public interface EmbeddedWorkerInstanceContainer extends EmbeddedInstanceContainer
A container for a client Instance.
  • Method Details

    • getWorker

      Worker getWorker()
      Gets the underlying Worker.
      Returns:
      the worker
    • getBindAddress

      String getBindAddress()
      Gets the worker's bind address.
      Returns:
      the bind address
    • withDefaultHttpClient

      EmbeddedWorkerInstanceContainer withDefaultHttpClient()
      Enables the default HTTP client for the Worker contained in this container. s
      Returns:
      this instance
    • getIocResolver

      ServiceLocator getIocResolver()
      Returns the default Worker IoC resolver. The definition of the default worker is implementation specific. Typically, this is the fist configured ApplicationId
      Returns:
      the default worker IoC resolver.
    • getIocResolver

      ServiceLocator getIocResolver(NodeId applicationId)
      Gets the ServiceLocator for the Node associated with the supplied NodeId
      Parameters:
      applicationId -
      Returns:
      the NodeId
    • getIocResolver

      default ServiceLocator getIocResolver(ApplicationId applicationId)
      Gets the ServiceLocator for the Node associated with the supplied NodeId
      Parameters:
      applicationId - the ApplicationId of the application to fetch
      Returns:
      the NodeId
    • getNodeId

      default NodeId getNodeId()
      Fetches the default NodeId installed in this container. The definition of the default worker is implementation specific. Typically, this is the fist configured ApplicationId.
      Returns:
      the NodeId
    • getApplicationId

      default ApplicationId getApplicationId()
      Fetches the default ApplicationId installed in this container. The definition of the default worker is implementation specific. Typically, this is the fist configured ApplicationId.
      Returns:
      the NodeId