public class Client extends Object implements MulticastRequestEncoder, MulticastAnnouncementDecoder, UnicastDiscoveryClient
net.jini.discovery.plaintext
discovery format.Constructor and Description |
---|
Client()
Constructs a new instance.
|
Modifier and Type | Method and Description |
---|---|
void |
checkUnicastDiscoveryConstraints(InvocationConstraints constraints) |
MulticastAnnouncement |
decodeMulticastAnnouncement(ByteBuffer buf,
InvocationConstraints constraints) |
UnicastResponse |
doUnicastDiscovery(Socket socket,
InvocationConstraints constraints,
ClassLoader defaultLoader,
ClassLoader verifierLoader,
Collection context,
ByteBuffer sent,
ByteBuffer received) |
void |
encodeMulticastRequest(MulticastRequest request,
DatagramBufferFactory bufs,
InvocationConstraints constraints) |
String |
getFormatName() |
public String getFormatName()
getFormatName
in interface DiscoveryFormatProvider
public void encodeMulticastRequest(MulticastRequest request, DatagramBufferFactory bufs, InvocationConstraints constraints) throws IOException
encodeMulticastRequest
in interface MulticastRequestEncoder
IOException
public MulticastAnnouncement decodeMulticastAnnouncement(ByteBuffer buf, InvocationConstraints constraints) throws IOException
decodeMulticastAnnouncement
in interface MulticastAnnouncementDecoder
IOException
public void checkUnicastDiscoveryConstraints(InvocationConstraints constraints) throws UnsupportedConstraintException
checkUnicastDiscoveryConstraints
in interface UnicastDiscoveryClient
UnsupportedConstraintException
public UnicastResponse doUnicastDiscovery(Socket socket, InvocationConstraints constraints, ClassLoader defaultLoader, ClassLoader verifierLoader, Collection context, ByteBuffer sent, ByteBuffer received) throws IOException, ClassNotFoundException
doUnicastDiscovery
in interface UnicastDiscoveryClient
IOException
ClassNotFoundException
Copyright © 2016–2018. All rights reserved.