Package com.wavefront.agent.api
Class APIContainer
- java.lang.Object
-
- com.wavefront.agent.api.APIContainer
-
public class APIContainer extends Object
Container for all Wavefront back-end API objects (proxy, source tag, event)- Author:
- [email protected]
-
-
Constructor Summary
Constructors Constructor Description APIContainer(ProxyConfig proxyConfig, boolean discardData)
APIContainer(com.wavefront.api.ProxyV2API proxyV2API, com.wavefront.api.SourceTagAPI sourceTagAPI, com.wavefront.api.EventAPI eventAPI)
This is for testing only, as it loses ability to invoke updateServerEndpointURL().
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description com.wavefront.api.EventAPI
getEventAPI()
Get RESTeasy proxy forEventAPI
.com.wavefront.api.ProxyV2API
getProxyV2API()
Get RESTeasy proxy forProxyV2API
.com.wavefront.api.SourceTagAPI
getSourceTagAPI()
Get RESTeasy proxy forSourceTagAPI
.void
updateServerEndpointURL(String serverEndpointUrl)
Re-create RESTeasy proxies with new server endpoint URL (allows changing URL at runtime).
-
-
-
Constructor Detail
-
APIContainer
public APIContainer(ProxyConfig proxyConfig, boolean discardData)
- Parameters:
proxyConfig
- proxy configuration settingsdiscardData
- run proxy in test mode (don't actually send the data)
-
APIContainer
public APIContainer(com.wavefront.api.ProxyV2API proxyV2API, com.wavefront.api.SourceTagAPI sourceTagAPI, com.wavefront.api.EventAPI eventAPI)
This is for testing only, as it loses ability to invoke updateServerEndpointURL().- Parameters:
proxyV2API
- RESTeasy proxy for ProxyV2APIsourceTagAPI
- RESTeasy proxy for SourceTagAPIeventAPI
- RESTeasy proxy for EventAPI
-
-
Method Detail
-
getProxyV2API
public com.wavefront.api.ProxyV2API getProxyV2API()
Get RESTeasy proxy forProxyV2API
.- Returns:
- proxy object
-
getSourceTagAPI
public com.wavefront.api.SourceTagAPI getSourceTagAPI()
Get RESTeasy proxy forSourceTagAPI
.- Returns:
- proxy object
-
getEventAPI
public com.wavefront.api.EventAPI getEventAPI()
Get RESTeasy proxy forEventAPI
.- Returns:
- proxy object
-
updateServerEndpointURL
public void updateServerEndpointURL(String serverEndpointUrl)
Re-create RESTeasy proxies with new server endpoint URL (allows changing URL at runtime).- Parameters:
serverEndpointUrl
- new server endpoint URL.
-
-