Class DiscoveryEvent

java.lang.Object
org.openjdk.jmc.jdp.client.DiscoveryEvent

public final class DiscoveryEvent extends Object
A discovery event. These are triggered from the JDPClient when a Discoverable is FOUND, LOST or CHANGED.
  • Constructor Details

    • DiscoveryEvent

      public DiscoveryEvent(DiscoveryEvent.Kind kind, Discoverable discoverable)
      Constructor.
      Parameters:
      kind - the type of discovery that was made.
      discoverable - what was discovered.
  • Method Details

    • getKind

      public DiscoveryEvent.Kind getKind()
      The kind of discovery. The discoverable was either FOUND, LOST or CHANGED.
      Returns:
      kind of discovery. The discoverable was either FOUND, LOST or CHANGED.
    • getDiscoverable

      public Discoverable getDiscoverable()
      Returns:
      the discoverable for which the status was updated.
    • toString

      public String toString()
      Overrides:
      toString in class Object