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 ApplicationIdFetches the defaultApplicationIdinstalled in this container.Gets the worker's bind address.Returns the default Worker IoC resolver.default ServiceLocatorgetIocResolver(ApplicationId applicationId) getIocResolver(NodeId applicationId) default NodeIdFetches the defaultNodeIdinstalled in this container.Gets the underlyingWorker.Enables the default HTTP client for theWorkercontained 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 theWorkercontained 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- theApplicationIdof the application to fetch- Returns:
- the
NodeId
-
getNodeId
Fetches the defaultNodeIdinstalled in this container. The definition of the default worker is implementation specific. Typically, this is the fist configuredApplicationId.- Returns:
- the
NodeId
-
getApplicationId
Fetches the defaultApplicationIdinstalled in this container. The definition of the default worker is implementation specific. Typically, this is the fist configuredApplicationId.- Returns:
- the
NodeId
-