Package org.openjdk.jmc.jdp.client
Class DiscoveryEvent
- java.lang.Object
-
- org.openjdk.jmc.jdp.client.DiscoveryEvent
-
public final class DiscoveryEvent extends Object
A discovery event. These are triggered from theJDPClient
when aDiscoverable
is FOUND, LOST or CHANGED.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
DiscoveryEvent.Kind
-
Constructor Summary
Constructors Constructor Description DiscoveryEvent(DiscoveryEvent.Kind kind, Discoverable discoverable)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Discoverable
getDiscoverable()
DiscoveryEvent.Kind
getKind()
The kind of discovery.String
toString()
-
-
-
Constructor Detail
-
DiscoveryEvent
public DiscoveryEvent(DiscoveryEvent.Kind kind, Discoverable discoverable)
Constructor.- Parameters:
kind
- the type of discovery that was made.discoverable
- what was discovered.
-
-
Method Detail
-
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.
-
-