All Downloads are FREE. Search and download functionalities are using the official Maven repository.

blended.itestsupport.jmx.JMXUrlProvider.scala Maven / Gradle / Ivy

Go to download

Define an integration test API for collaborating blended container(s) using docker as a runtime for the container(s) under test and an Akka based Camel framework to perform the integration tests as pure blackbox tests. Container(s) may be prestarted and discovered (for execution speed) or started by the integration test (for reproducability).

The newest version!
package blended.itestsupport.jmx

import javax.management.remote.JMXServiceURL

trait JMXUrlProvider {
  def serviceUrl : JMXServiceURL
}

case class KarafJMXUrlProvider(host: String = "localhost", port: Integer = 1099) extends JMXUrlProvider {

  def withHost(h: String) = copy( host = h )
  def withHost(p: Int)    = copy( port = p )

  override def serviceUrl =
    new JMXServiceURL(s"service:jmx:rmi:///jndi/rmi://$host:$port/jmxrmi")
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy