Class APIContainer


  • public class APIContainer
    extends Object
    Container for all Wavefront back-end API objects (proxy, source tag, event)
    Author:
    [email protected]
    • Constructor Detail

      • APIContainer

        public APIContainer​(ProxyConfig proxyConfig,
                            boolean discardData)
        Parameters:
        proxyConfig - proxy configuration settings
        discardData - 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 ProxyV2API
        sourceTagAPI - RESTeasy proxy for SourceTagAPI
        eventAPI - RESTeasy proxy for EventAPI
    • Method Detail

      • getProxyV2API

        public com.wavefront.api.ProxyV2API getProxyV2API()
        Get RESTeasy proxy for ProxyV2API.
        Returns:
        proxy object
      • getSourceTagAPI

        public com.wavefront.api.SourceTagAPI getSourceTagAPI()
        Get RESTeasy proxy for SourceTagAPI.
        Returns:
        proxy object
      • getEventAPI

        public com.wavefront.api.EventAPI getEventAPI()
        Get RESTeasy proxy for EventAPI.
        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.