Class PluginRunProfile

java.lang.Object
org.hansken.plugin.extraction.runtime.grpc.client.PluginRunProfile

public final class PluginRunProfile extends Object
A plugin profile report from the plugin perspective.

Contains key/values for integers and doubles. Can be used by the plugin to report any kind of profile statistics, such as: number of searchers, time it took for these searchers, number of bytes read, process()-duration, etc.

  • Method Details

    • of

      public static PluginRunProfile of(RpcProfile profile)
      Constructs a PluginRunProfile from a RpcProfile.
      Parameters:
      profile - the original RpcProfile to convert
      Returns:
      the PluginRunProfile representation of the input profile
    • getIntegers

      public Map<String,Long> getIntegers()
      Returns all Long integers reported in the run profile.
      Returns:
      all long integers in the run profile
    • getDoubles

      public Map<String,Double> getDoubles()
      Returns all Double floating points reported in the run profile.
      Returns:
      all long integers in the run profile