Uses of Class
net.jini.core.constraint.InvocationConstraints
Packages that use InvocationConstraints
Package
Description
-
Uses of InvocationConstraints in com.sun.jini.discovery
Methods in com.sun.jini.discovery that return InvocationConstraintsModifier and TypeMethodDescriptionDiscoveryConstraints.getUnfulfilledConstraints()Returns the constraints for this instance which are not, or do not contain as alternatives, instances of the "fulfillable" (by this layer) constraint typesDiscoveryProtocolVersion,ConnectionRelativeTime,MulticastMaxPacketSize,MulticastTimeToLive, andUnicastSocketTimeout.Methods in com.sun.jini.discovery with parameters of type InvocationConstraintsModifier and TypeMethodDescriptionvoidUnicastDiscoveryClient.checkUnicastDiscoveryConstraints(InvocationConstraints constraints) Checks and returns normally if this client is capable of fulfilling the given absolute constraints.voidUnicastDiscoveryServer.checkUnicastDiscoveryConstraints(InvocationConstraints constraints) Checks and returns normally if this server is capable of fulfilling the given absolute constraints.DelayedMulticastAnnouncementDecoder.decodeMulticastAnnouncement(ByteBuffer buf, InvocationConstraints constraints, boolean delayConstraintCheck) Decodes the multicast announcement data contained in the given buffer in a manner that satisfies the specified absolute constraints, returning aMulticastAnnouncementinstance that contains the decoded data, with constraint checking optionally delayed.abstract MulticastAnnouncementDiscovery.decodeMulticastAnnouncement(DatagramPacket packet, InvocationConstraints constraints) Decodes the multicast announcement data contained in the given datagram in a manner that satisfies the specified constraints, returning aMulticastAnnouncementinstance that contains the decoded data.Discovery.decodeMulticastAnnouncement(DatagramPacket packet, InvocationConstraints constraints, boolean delayConstraintCheck) Decodes the multicast announcement data contained in the given datagram in a manner that satisfies the specified constraints, returning aMulticastAnnouncementinstance that contains the decoded data, with constraint checking optionally delayed.MulticastAnnouncementDecoder.decodeMulticastAnnouncement(ByteBuffer buf, InvocationConstraints constraints) Decodes the multicast announcement data contained in the given buffer in a manner that satisfies the specified absolute constraints, returning aMulticastAnnouncementinstance that contains the decoded data.DelayedMulticastRequestDecoder.decodeMulticastRequest(ByteBuffer buf, InvocationConstraints constraints, ClientSubjectChecker checker, boolean delayConstraintCheck) Decodes the multicast request data contained in the given buffer in a manner that satisfies the specified absolute constraints and client subject checker (if any), returning aMulticastRequestinstance that contains the decoded data, with constraint checking optionally delayed.abstract MulticastRequestDiscovery.decodeMulticastRequest(DatagramPacket packet, InvocationConstraints constraints, ClientSubjectChecker checker) Decodes the multicast request data contained in the given datagram in a manner that satisfies the specified constraints and client subject checker (if any), returning aMulticastRequestinstance that contains the decoded data.Discovery.decodeMulticastRequest(DatagramPacket packet, InvocationConstraints constraints, ClientSubjectChecker checker, boolean delayConstraintCheck) Decodes the multicast request data contained in the given datagram in a manner that satisfies the specified constraints and client subject checker (if any), returning aMulticastRequestinstance that contains the decoded data, with constraint checking optionally delayed.MulticastRequestDecoder.decodeMulticastRequest(ByteBuffer buf, InvocationConstraints constraints, ClientSubjectChecker checker) Decodes the multicast request data contained in the given buffer in a manner that satisfies the specified absolute constraints and client subject checker (if any), returning aMulticastRequestinstance that contains the decoded data.abstract UnicastResponseDiscovery.doUnicastDiscovery(Socket socket, InvocationConstraints constraints, ClassLoader defaultLoader, ClassLoader verifierLoader, Collection context) Performs the client side of unicast discovery, obtaining the returned response data over the provided socket using the given default and codebase verifier class loaders and collection of object stream context objects in a manner that satisfies the specified constraints.UnicastDiscoveryClient.doUnicastDiscovery(Socket socket, InvocationConstraints constraints, ClassLoader defaultLoader, ClassLoader verifierLoader, Collection context, ByteBuffer sent, ByteBuffer received) Performs the client side of unicast discovery, obtaining the returned response data over the provided socket using the given default and codebase verifier class loaders and collection of object stream context objects in a manner that satisfies the specified absolute constraints.abstract EncodeIteratorDiscovery.encodeMulticastAnnouncement(MulticastAnnouncement announcement, int maxPacketSize, InvocationConstraints constraints) Returns an iterator which can be used to encode the given multicast announcement data into sets ofDatagramPackets, each bounded in length by the specified maximum packet size, in a manner that satisfies the given constraints.voidMulticastAnnouncementEncoder.encodeMulticastAnnouncement(MulticastAnnouncement announcement, DatagramBufferFactory bufs, InvocationConstraints constraints) Encodes the given multicast announcement data into byte buffers obtained from the provided datagram buffer factory, in a manner that satisfies the specified absolute constraints.abstract EncodeIteratorDiscovery.encodeMulticastRequest(MulticastRequest request, int maxPacketSize, InvocationConstraints constraints) Returns an iterator which can be used to encode the given multicast request data into sets ofDatagramPackets, each bounded in length by the specified maximum packet size, in a manner that satisfies the given constraints.voidMulticastRequestEncoder.encodeMulticastRequest(MulticastRequest request, DatagramBufferFactory bufs, InvocationConstraints constraints) Encodes the given multicast request data into byte buffers obtained from the provided datagram buffer factory, in a manner that satisfies the specified absolute constraints.abstract voidDiscovery.handleUnicastDiscovery(UnicastResponse response, Socket socket, InvocationConstraints constraints, ClientSubjectChecker checker, Collection context) Handles the server side of unicast discovery, transmitting the given response data over the provided socket using the given collection of object stream context objects in a manner that satisfies the specified constraints and client subject checker (if any).voidUnicastDiscoveryServer.handleUnicastDiscovery(UnicastResponse response, Socket socket, InvocationConstraints constraints, ClientSubjectChecker checker, Collection context, ByteBuffer received, ByteBuffer sent) Handles the server side of unicast discovery, transmitting the given response data over the provided socket using the given collection of object stream context objects in a manner that satisfies the specified absolute constraints and client subject checker (if any).static DiscoveryConstraintsDiscoveryConstraints.process(InvocationConstraints constraints) Processes the discovery-related constraints in the given set of constraints, returning aDiscoveryConstraintsinstance from which the constraint results can be queried. -
Uses of InvocationConstraints in com.sun.jini.discovery.internal
Methods in com.sun.jini.discovery.internal with parameters of type InvocationConstraintsModifier and TypeMethodDescriptionstatic voidPlaintext.checkConstraints(InvocationConstraints constraints) Returns normally if the given constraints can be satisfied by a plaintext-based format/protocol (such as net.jini.discovery.plaintext, or version 1 of the discovery protocols); otherwise, throws an UnsupportedConstraintException .MultiIPDiscovery.getResponse(String host, int port, InvocationConstraints constraints) -
Uses of InvocationConstraints in com.sun.jini.discovery.plaintext
Methods in com.sun.jini.discovery.plaintext with parameters of type InvocationConstraintsModifier and TypeMethodDescriptionvoidClient.checkUnicastDiscoveryConstraints(InvocationConstraints constraints) voidServer.checkUnicastDiscoveryConstraints(InvocationConstraints constraints) Client.decodeMulticastAnnouncement(ByteBuffer buf, InvocationConstraints constraints) Server.decodeMulticastRequest(ByteBuffer buf, InvocationConstraints constraints, ClientSubjectChecker checker) Client.doUnicastDiscovery(Socket socket, InvocationConstraints constraints, ClassLoader defaultLoader, ClassLoader verifierLoader, Collection context, ByteBuffer sent, ByteBuffer received) voidServer.encodeMulticastAnnouncement(MulticastAnnouncement announcement, DatagramBufferFactory bufs, InvocationConstraints constraints) voidClient.encodeMulticastRequest(MulticastRequest request, DatagramBufferFactory bufs, InvocationConstraints constraints) voidServer.handleUnicastDiscovery(UnicastResponse response, Socket socket, InvocationConstraints constraints, ClientSubjectChecker checker, Collection context, ByteBuffer received, ByteBuffer sent) -
Uses of InvocationConstraints in net.jini.constraint
Methods in net.jini.constraint that return InvocationConstraintsModifier and TypeMethodDescriptionBasicMethodConstraints.getConstraints(Method method) Returns the constraints for the specified remote method as a non-nullvalue.BasicMethodConstraints.MethodDesc.getConstraints()Returns the constraints as a non-nullvalue.Constructors in net.jini.constraint with parameters of type InvocationConstraintsModifierConstructorDescriptionBasicMethodConstraints(InvocationConstraints constraints) Creates an instance that maps all methods to the specified constraints.MethodDesc(String name, Class[] types, InvocationConstraints constraints) Creates a descriptor that only matches methods with exactly the specified name and parameter types.MethodDesc(String name, InvocationConstraints constraints) Creates a descriptor that matches all methods with names that equal the specified name or that match the specified pattern, regardless of their parameter types.MethodDesc(InvocationConstraints constraints) Creates a default descriptor that matches all methods. -
Uses of InvocationConstraints in net.jini.core.constraint
Fields in net.jini.core.constraint declared as InvocationConstraintsModifier and TypeFieldDescriptionstatic final InvocationConstraintsInvocationConstraints.EMPTYAn empty instance, one that has no requirements and no preferences.Methods in net.jini.core.constraint that return InvocationConstraintsModifier and TypeMethodDescriptionstatic InvocationConstraintsInvocationConstraints.combine(InvocationConstraints constraints1, InvocationConstraints constraints2) Returns an instance of this class that has all of the requirements from each non-nullargument added as requirements and has all of the preferences from each non-nullargument added as preferences.MethodConstraints.getConstraints(Method method) Returns the constraints for the specified method as a non-nullvalue.InvocationConstraints.makeAbsolute()Returns an instance of this class constructed from all of the same requirements and preferences as this instance, but with every constraint that is an instance ofRelativeTimeConstraintreplaced by the result of invoking the constraint'smakeAbsolutemethod with the current time (as given bySystem.currentTimeMillis).InvocationConstraints.makeAbsolute(long baseTime) Returns an instance of this class equal to the result of taking the requirements and preferences in this instance, replacing each constraint that is an instance ofRelativeTimeConstraintwith the result of invoking that constraint'smakeAbsolutemethod with the specified base time, and creating a new instance of this class with duplicate requirements, duplicate preferences, and preferences that are duplicates of requirements all removed.Methods in net.jini.core.constraint with parameters of type InvocationConstraintsModifier and TypeMethodDescriptionstatic InvocationConstraintsInvocationConstraints.combine(InvocationConstraints constraints1, InvocationConstraints constraints2) Returns an instance of this class that has all of the requirements from each non-nullargument added as requirements and has all of the preferences from each non-nullargument added as preferences.