public class AgentIdentity
extends java.lang.Object
| Constructor and Description |
|---|
AgentIdentity(java.lang.String dispatcher,
java.lang.String dispatcherVersion,
java.lang.Integer serverPort,
java.lang.String instanceName) |
| Modifier and Type | Method and Description |
|---|---|
AgentIdentity |
createWithNewDispatcher(java.lang.String dispatcherName,
java.lang.String version)
Creates a new agent identity with the given dispatcher info or null if the dispatcher info is already set.
|
AgentIdentity |
createWithNewInstanceName(java.lang.String name)
Creates a new agent identity with the given port or null if the port is already set.
|
AgentIdentity |
createWithNewServerPort(java.lang.Integer port)
Creates a new agent identity with the given port or null if the port is already set.
|
java.lang.String |
getDispatcher() |
java.lang.String |
getDispatcherVersion() |
java.lang.String |
getInstanceName()
Returns the instanceName of the instrumented application server, or null if it is unknown.
|
java.lang.Integer |
getServerPort()
Returns the port number of the instrumented application server, or null if it is unknown.
|
boolean |
isServerInfoSet() |
public AgentIdentity(java.lang.String dispatcher,
java.lang.String dispatcherVersion,
java.lang.Integer serverPort,
java.lang.String instanceName)
public java.lang.String getDispatcher()
public java.lang.String getDispatcherVersion()
public java.lang.Integer getServerPort()
public java.lang.String getInstanceName()
public boolean isServerInfoSet()
public AgentIdentity createWithNewServerPort(java.lang.Integer port)
public AgentIdentity createWithNewInstanceName(java.lang.String name)
public AgentIdentity createWithNewDispatcher(java.lang.String dispatcherName, java.lang.String version)