Class OpenSearchLocalContainerInfraService
java.lang.Object
org.apache.camel.test.infra.opensearch.services.OpenSearchLocalContainerInfraService
- All Implemented Interfaces:
AutoCloseable,org.apache.camel.test.infra.common.services.ContainerService<org.opensearch.testcontainers.OpensearchContainer>,org.apache.camel.test.infra.common.services.InfrastructureService,OpenSearchInfraService
public class OpenSearchLocalContainerInfraService
extends Object
implements OpenSearchInfraService, org.apache.camel.test.infra.common.services.ContainerService<org.opensearch.testcontainers.OpensearchContainer>
-
Constructor Summary
ConstructorsConstructorDescriptionOpenSearchLocalContainerInfraService(String imageName) OpenSearchLocalContainerInfraService(org.opensearch.testcontainers.OpensearchContainer container) -
Method Summary
Modifier and TypeMethodDescriptionorg.opensearch.testcontainers.OpensearchContainerintgetPort()protected org.opensearch.testcontainers.OpensearchContainerinitContainer(String imageName) voidvoidvoidshutdown()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.camel.test.infra.common.services.ContainerService
followLogMethods inherited from interface org.apache.camel.test.infra.common.services.InfrastructureService
close
-
Constructor Details
-
OpenSearchLocalContainerInfraService
public OpenSearchLocalContainerInfraService() -
OpenSearchLocalContainerInfraService
-
OpenSearchLocalContainerInfraService
public OpenSearchLocalContainerInfraService(org.opensearch.testcontainers.OpensearchContainer container)
-
-
Method Details
-
initContainer
-
getPort
public int getPort()- Specified by:
getPortin interfaceOpenSearchInfraService
-
getOpenSearchHost
- Specified by:
getOpenSearchHostin interfaceOpenSearchInfraService
-
getHttpHostAddress
- Specified by:
getHttpHostAddressin interfaceOpenSearchInfraService
-
registerProperties
public void registerProperties()- Specified by:
registerPropertiesin interfaceorg.apache.camel.test.infra.common.services.InfrastructureService
-
initialize
public void initialize()- Specified by:
initializein interfaceorg.apache.camel.test.infra.common.services.InfrastructureService
-
shutdown
public void shutdown()- Specified by:
shutdownin interfaceorg.apache.camel.test.infra.common.services.InfrastructureService
-
getContainer
public org.opensearch.testcontainers.OpensearchContainer getContainer()- Specified by:
getContainerin interfaceorg.apache.camel.test.infra.common.services.ContainerService<org.opensearch.testcontainers.OpensearchContainer>
-
getUsername
- Specified by:
getUsernamein interfaceOpenSearchInfraService
-
getPassword
- Specified by:
getPasswordin interfaceOpenSearchInfraService
-