Interface IDeep


  • public interface IDeep
    This type describes the main API for Deep.

    This API can only be used after the agent has been loaded.

    • Method Detail

      • isEnabled

        boolean isEnabled()
        Get the current state of deep.
        Returns:
        true if deep is currently enabled and sending requests, else false
      • setEnabled

        void setEnabled​(boolean enabled)
        This method can be used to disabled or enable Deep.

        Changing the state to false (ie disabled) will cause deep to uninstall all the tracepoints and clear the current config. Meaning that when deep is enabled again it will have to reinstall the configuration. It is therefore advised to not call this function too frequently.

        Parameters:
        enabled - the new state to become
      • getVersion

        String getVersion()
        Get the version of deep being used.
        Returns:
        the sematic version of deep as a string e.g. 1.2.3
      • registerPlugin

        IRegistration<IDeepPlugin> registerPlugin​(IDeepPlugin plugin)
        This allows the registration of custom plugins.
        Parameters:
        plugin - the plugin that can be used to decorate snapshots
        Returns:
        a IRegistration that can be used to unregister the plugin