Package com.intergral.deep
Class DeepConfigBuilder
- java.lang.Object
-
- com.intergral.deep.DeepConfigBuilder
-
public class DeepConfigBuilder extends Object
Builder to create deep config.
-
-
Constructor Summary
Constructors Constructor Description DeepConfigBuilder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DeepConfigBuilder
setJarPath(String path)
This allows for overriding the path to the deep agent jar.DeepConfigBuilder
setValue(String key, boolean value)
Set a config value for deep.DeepConfigBuilder
setValue(String key, double value)
Set a config value for deep.DeepConfigBuilder
setValue(String key, int value)
Set a config value for deep.DeepConfigBuilder
setValue(String key, String value)
Set a config value for deep.void
start()
Start Deep using this config.
-
-
-
Method Detail
-
start
public void start()
Start Deep using this config.
-
setJarPath
public DeepConfigBuilder setJarPath(String path)
This allows for overriding the path to the deep agent jar. This is useful when embedding deep into complex applications such as OSGI.- Parameters:
path
- the full path to the agent jar file- Returns:
- {this}
-
setValue
public DeepConfigBuilder setValue(String key, String value)
Set a config value for deep. For the possible keys see the docs on config.- Parameters:
key
- the key for the config valuevalue
- the value as a string object- Returns:
- {this{}}
-
setValue
public DeepConfigBuilder setValue(String key, boolean value)
Set a config value for deep. For the possible keys see the docs on config.- Parameters:
key
- the key for the config valuevalue
- the value as a boolean- Returns:
- {this{}}
-
setValue
public DeepConfigBuilder setValue(String key, int value)
Set a config value for deep. For the possible keys see the docs on config.- Parameters:
key
- the key for the config valuevalue
- the value as an int- Returns:
- {this{}}
-
setValue
public DeepConfigBuilder setValue(String key, double value)
Set a config value for deep. For the possible keys see the docs on config.- Parameters:
key
- the key for the config valuevalue
- the value as a double- Returns:
- {this{}}
-
-