Package dev.getelements.elements.test
Interface EmbeddedWorkerInstanceContainer
- All Superinterfaces:
AutoCloseable
,EmbeddedInstanceContainer
- All Known Implementing Classes:
JeroMQEmbeddedWorkerInstanceContainer
A container for a client
Instance
.-
Method Summary
Modifier and TypeMethodDescriptiondefault ApplicationId
Fetches the defaultApplicationId
installed in this container.Gets the worker's bind address.Returns the default Worker IoC resolver.default ServiceLocator
getIocResolver
(ApplicationId applicationId) getIocResolver
(NodeId applicationId) default NodeId
Fetches the defaultNodeId
installed in this container.Gets the underlyingWorker
.Enables the default HTTP client for theWorker
contained in this container.Methods inherited from interface dev.getelements.elements.test.EmbeddedInstanceContainer
close, getInstance, getInstanceId, onClose, start
-
Method Details
-
getWorker
Worker getWorker()Gets the underlyingWorker
.- 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 theWorker
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 configuredApplicationId
- Returns:
- the default worker IoC resolver.
-
getIocResolver
- Parameters:
applicationId
-- Returns:
- the
NodeId
-
getIocResolver
- Parameters:
applicationId
- theApplicationId
of the application to fetch- Returns:
- the
NodeId
-
getNodeId
Fetches the defaultNodeId
installed in this container. The definition of the default worker is implementation specific. Typically, this is the fist configuredApplicationId
.- Returns:
- the
NodeId
-
getApplicationId
Fetches the defaultApplicationId
installed in this container. The definition of the default worker is implementation specific. Typically, this is the fist configuredApplicationId
.- Returns:
- the
NodeId
-