Package com.appoptics.api.ext
Class SolarWindsAgent
- java.lang.Object
-
- com.appoptics.api.ext.SolarWindsAgent
-
public class SolarWindsAgent extends java.lang.Object
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static boolean
setTransactionName(java.lang.String transactionName)
Set the name of the current transaction.static boolean
waitUntilAgentReady(long timeout, java.util.concurrent.TimeUnit unit)
Blocks until agent is ready (established connection with data collector) or timeout expired.
-
-
-
Method Detail
-
setTransactionName
public static boolean setTransactionName(java.lang.String transactionName)
Set the name of the current transaction.- Parameters:
transactionName
- the name of the transaction- Returns:
- returns true if transaction name was set
-
waitUntilAgentReady
public static boolean waitUntilAgentReady(long timeout, java.util.concurrent.TimeUnit unit)
Blocks until agent is ready (established connection with data collector) or timeout expired.Take note that if an agent is not ready, traces and metrics collected will not be processed.
Call this method to ensure agent is ready before reporting traces for one-off batch jobs
- Parameters:
timeout
- the maximum time to waitunit
- the time unit of the timeout argument- Returns:
- returns true if the agent is ready
-
-