Package org.openjdk.jmc.jdp.client
Class JDPClient
- java.lang.Object
-
- org.openjdk.jmc.jdp.client.JDPClient
-
public final class JDPClient extends Object
Client for discovering JVM services on the network.
Note: This client is also able to parse packets sent using the legacy JRockit Discovery Protocol.
-
-
Constructor Summary
Constructors Constructor Description JDPClient()
JDPClient(InetAddress address, int port, int heartBeatTimeout)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addDiscoveryListener(DiscoveryListener listener)
Set<Discoverable>
getDiscoverables()
void
removeDiscoveryListener(DiscoveryListener listener)
void
start()
void
stop()
-
-
-
Constructor Detail
-
JDPClient
public JDPClient()
-
JDPClient
public JDPClient(InetAddress address, int port, int heartBeatTimeout)
-
-
Method Detail
-
addDiscoveryListener
public void addDiscoveryListener(DiscoveryListener listener)
-
removeDiscoveryListener
public void removeDiscoveryListener(DiscoveryListener listener)
-
start
public void start() throws IOException
- Throws:
IOException
-
stop
public void stop()
-
getDiscoverables
public Set<Discoverable> getDiscoverables()
-
-