|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectcom.appdynamics.eumagent.runtime.AgentConfiguration.Builder
public static class AgentConfiguration.Builder
A class for setting up instances of AgentConfiguration.
| Method Summary | |
|---|---|
AgentConfiguration |
build()
Generates the agent configuration based on the parameters passed through the other methods. |
AgentConfiguration.Builder |
withAppKey(java.lang.String appKey)
Sets the application key used by the SDK. |
AgentConfiguration.Builder |
withApplicationName(java.lang.String applicationName)
Sets the name of this mobile application. |
AgentConfiguration.Builder |
withCollectorChannelFactory(CollectorChannelFactory collectorChannelFactory)
Sets the collector channel to use. |
AgentConfiguration.Builder |
withCollectorURL(java.lang.String collectorURL)
Sets the URL of the collector to which the agent will report. |
AgentConfiguration.Builder |
withCompileTimeInstrumentationCheck(boolean enabled)
Compile time instrumentation is required for supporting a number of features such as ANR, network calls reporting. |
AgentConfiguration.Builder |
withContext(android.content.Context context)
Sets the application key used by the SDK. |
AgentConfiguration.Builder |
withDynamicInfoPointURL(java.lang.String infoPointURL)
Set the URL of infopoint endpoint. |
AgentConfiguration.Builder |
withLoggingEnabled(boolean loggingEnabled)
Sets whether debug logs are enabled or not. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public AgentConfiguration.Builder withAppKey(java.lang.String appKey)
public AgentConfiguration.Builder withApplicationName(java.lang.String applicationName)
AgentConfiguration. The parameter applicationName
should follow Java-language-style.
It may contain uppercase or lowercase letters ('A' through 'Z'), numbers, and underscores ('_').
Individual package name parts may only start with letters. Reverse-DNS format is recommended.
NOTE: If building AgentConfiguration with this method,
all data reported from this application is associated with applicationName,
and appears together in dashboards. If not set, the default package name shall be used. Most users
will not need this.
public AgentConfiguration.Builder withContext(android.content.Context context)
public AgentConfiguration.Builder withCollectorURL(java.lang.String collectorURL)
public AgentConfiguration.Builder withDynamicInfoPointURL(java.lang.String infoPointURL)
public AgentConfiguration.Builder withLoggingEnabled(boolean loggingEnabled)
public AgentConfiguration.Builder withCompileTimeInstrumentationCheck(boolean enabled)
enabled - if you want to disable this check, pass in false.
public AgentConfiguration.Builder withCollectorChannelFactory(CollectorChannelFactory collectorChannelFactory)
public AgentConfiguration build()
java.lang.NullPointerException - if a required parameter is null.
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||