Package com.yourkit.api.controller.v2
Class Controller.Builder
java.lang.Object
com.yourkit.api.controller.v2.Controller.Builder
- Enclosing class:
Controller
-
Method Summary
Modifier and TypeMethodDescriptionbuild()connectTimeout(int ms) port(int port) readTimeout(int ms) reverseProxyPath(String path) self()Creates a controller for profiling the current application, i.e., the JVM running the code that invokes this method.trustAllSslCertificates(boolean trust)
-
Method Details
-
self
Creates a controller for profiling the current application, i.e., the JVM running the code that invokes this method.The application must either be started with the profiler agent, or the profiler agent must be attached to the JVM at runtime.
-
host
- Parameters:
host- Host name or IP address of the host where the profiled application is running.
-
port
- Parameters:
port- The port profiler agent listens on. Must be in range1-65535.
-
reverseProxyPath
- Parameters:
path- Optional reverse HTTP proxy path. If the agent runs behind the reverse HTTP proxy, and proxy passes /my_path/* requests to agent's port, then the path parameter should be /my_path/.
-
connectTimeout
- Parameters:
ms- Socket connect timeout in milliseconds beforeSocketTimeoutExceptionis thrown. The default value is0, which is interpreted as an infinite timeout.
-
readTimeout
- Parameters:
ms- Socket read timeout in milliseconds beforeSocketTimeoutExceptionis thrown. The default value is0, which is interpreted as an infinite timeout.
-
trustAllSslCertificates
- Parameters:
trust- Whether all SSL certificates should be trusted. The default value isTRUE. If you do not want to trust all the certificates, setFALSEand configure Java KeyStore (JKS).
-
build
- Returns:
- New connected
Controllerinstance. - Throws:
RuntimeException- If controller cannot be created.
-