Package com.newrelic.agent.bridge
Class NoOpPrivateApi
- java.lang.Object
-
- com.newrelic.agent.bridge.NoOpPrivateApi
-
- All Implemented Interfaces:
PrivateApi
public class NoOpPrivateApi extends java.lang.Object implements PrivateApi
-
-
Constructor Summary
Constructors Constructor Description NoOpPrivateApi()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddCustomAttribute(java.lang.String key, java.lang.Number value)Add a key/value pair to the current transaction.voidaddCustomAttribute(java.lang.String key, java.lang.String value)Add a key/value pair to the current transaction.voidaddCustomAttribute(java.lang.String key, java.util.Map<java.lang.String,java.lang.String> values)Add a key with a map of values to the current transaction.voidaddMBeanServer(javax.management.MBeanServer server)Call if you want to pull JMX metrics from this server instead of the default MBeanServers.java.io.CloseableaddSampler(java.lang.Runnable sampler, int period, java.util.concurrent.TimeUnit minutes)Adds a sampler to be called at a given frequency.voidaddTracerParameter(java.lang.String key, java.lang.Number value)voidaddTracerParameter(java.lang.String key, java.lang.String value)voidaddTracerParameter(java.lang.String key, java.lang.String value, boolean addToSpan)voidaddTracerParameter(java.lang.String key, java.util.Map<java.lang.String,java.lang.String> values)voidremoveMBeanServer(javax.management.MBeanServer serverToRemove)Call if you want to remove a particular MBeanServer.voidreportException(java.lang.Throwable throwable)Report an exception.voidreportHTTPError(java.lang.String message, int statusCode, java.lang.String uri)Report an HTTP errorvoidsetAppServerPort(int port)Set the app server port which is reported to RPM.voidsetInstanceName(java.lang.String instanceName)Set the instance name in the environment.voidsetServerInfo(java.lang.String serverInfo)voidsetServerInfo(java.lang.String dispatcherName, java.lang.String version)Set the dispatcher name and version which is reported to RPM.
-
-
-
Method Detail
-
addSampler
public java.io.Closeable addSampler(java.lang.Runnable sampler, int period, java.util.concurrent.TimeUnit minutes)Description copied from interface:PrivateApiAdds a sampler to be called at a given frequency.- Specified by:
addSamplerin interfacePrivateApi- Returns:
- a Closeable which when executed will cancel the sampler execution.
-
setServerInfo
public void setServerInfo(java.lang.String serverInfo)
- Specified by:
setServerInfoin interfacePrivateApi
-
addCustomAttribute
public void addCustomAttribute(java.lang.String key, java.lang.Number value)Description copied from interface:PrivateApiAdd a key/value pair to the current transaction. These are reported in errors and transaction traces. This will add the parameter even if high_security is set. Use with caution.- Specified by:
addCustomAttributein interfacePrivateApi- Parameters:
key- Custom parameter key.value- Custom parameter value. @
-
addCustomAttribute
public void addCustomAttribute(java.lang.String key, java.lang.String value)Description copied from interface:PrivateApiAdd a key/value pair to the current transaction. These are reported in errors and transaction traces. This will add the parameter even if high_security is set. Use with caution.- Specified by:
addCustomAttributein interfacePrivateApi- Parameters:
key- Custom parameter key.value- Custom parameter value. @
-
addCustomAttribute
public void addCustomAttribute(java.lang.String key, java.util.Map<java.lang.String,java.lang.String> values)Description copied from interface:PrivateApiAdd a key with a map of values to the current transaction. These are reported in errors and transaction traces. This will add the parameter even if high_security is set. Use with caution.- Specified by:
addCustomAttributein interfacePrivateApi- Parameters:
key- Custom parameter key.values- Custom parameter values. @
-
addMBeanServer
public void addMBeanServer(javax.management.MBeanServer server)
Description copied from interface:PrivateApiCall if you want to pull JMX metrics from this server instead of the default MBeanServers.- Specified by:
addMBeanServerin interfacePrivateApi- Parameters:
server- The server to use for pulling MBeans.
-
removeMBeanServer
public void removeMBeanServer(javax.management.MBeanServer serverToRemove)
Description copied from interface:PrivateApiCall if you want to remove a particular MBeanServer.- Specified by:
removeMBeanServerin interfacePrivateApi- Parameters:
serverToRemove- The desired server to remove from the JMXService.
-
addTracerParameter
public void addTracerParameter(java.lang.String key, java.lang.Number value)- Specified by:
addTracerParameterin interfacePrivateApi
-
reportHTTPError
public void reportHTTPError(java.lang.String message, int statusCode, java.lang.String uri)Description copied from interface:PrivateApiReport an HTTP error- Specified by:
reportHTTPErrorin interfacePrivateApi- Parameters:
message- Error messagestatusCode- HTTP status codeuri- Request URI
-
reportException
public void reportException(java.lang.Throwable throwable)
Description copied from interface:PrivateApiReport an exception. Checks if throwable should be ignored before reporting it.- Specified by:
reportExceptionin interfacePrivateApi
-
setAppServerPort
public void setAppServerPort(int port)
Description copied from interface:PrivateApiSet the app server port which is reported to RPM.- Specified by:
setAppServerPortin interfacePrivateApi
-
setServerInfo
public void setServerInfo(java.lang.String dispatcherName, java.lang.String version)Description copied from interface:PrivateApiSet the dispatcher name and version which is reported to RPM.- Specified by:
setServerInfoin interfacePrivateApi
-
setInstanceName
public void setInstanceName(java.lang.String instanceName)
Description copied from interface:PrivateApiSet the instance name in the environment. A single host:port may support multiple JVM instances. The instance name is intended to help the customer identify the specific JVM instance.- Specified by:
setInstanceNamein interfacePrivateApi
-
addTracerParameter
public void addTracerParameter(java.lang.String key, java.lang.String value)- Specified by:
addTracerParameterin interfacePrivateApi
-
addTracerParameter
public void addTracerParameter(java.lang.String key, java.lang.String value, boolean addToSpan)- Specified by:
addTracerParameterin interfacePrivateApi
-
addTracerParameter
public void addTracerParameter(java.lang.String key, java.util.Map<java.lang.String,java.lang.String> values)- Specified by:
addTracerParameterin interfacePrivateApi
-
-