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 DiscoveryFormatProviderpublic void encodeMulticastRequest(MulticastRequest request, DatagramBufferFactory bufs, InvocationConstraints constraints) throws IOException
encodeMulticastRequest in interface MulticastRequestEncoderIOExceptionpublic MulticastAnnouncement decodeMulticastAnnouncement(ByteBuffer buf, InvocationConstraints constraints) throws IOException
decodeMulticastAnnouncement in interface MulticastAnnouncementDecoderIOExceptionpublic void checkUnicastDiscoveryConstraints(InvocationConstraints constraints) throws UnsupportedConstraintException
checkUnicastDiscoveryConstraints in interface UnicastDiscoveryClientUnsupportedConstraintExceptionpublic UnicastResponse doUnicastDiscovery(Socket socket, InvocationConstraints constraints, ClassLoader defaultLoader, ClassLoader verifierLoader, Collection context, ByteBuffer sent, ByteBuffer received) throws IOException, ClassNotFoundException
doUnicastDiscovery in interface UnicastDiscoveryClientIOExceptionClassNotFoundExceptionCopyright © 2016–2018. All rights reserved.