|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.jini.jeri.tcp.Constraints
class Constraints
Constraint support for this transport provider. This code makes some significant simplifying assumptions: - The transport layer aspects of all constraints supported by this provider are always satisfied by all open connections and requests. - No combination of individual constraints supported by this provider can contain conflicting constraints.
Nested Class Summary | |
---|---|
(package private) static class |
Constraints.Distilled
A distillation of constraints to a form more directly usable by this provider. |
Field Summary | |
---|---|
private static int |
FULL_SUPPORT
indicates that this provider supports implementing all aspects of satisfying a given constraint |
private static int |
NO_SUPPORT
indicates that this provider does not support implementing (or does not understand how to implement) the transport layer aspects of satisfying a given constraint |
private static int |
PARTIAL_SUPPORT
indicates that this provider supports implementing the transport layer aspects of satisfying a given constraint, but at least partial implementation by higher layers is also needed in order to fully satisfy the constraint |
private static Map |
supportedClasses
maps constraint classes that are supported to Boolean indicating whether or not such constraints must be at least partially implemented by higher layers to be fully satisfied |
private static Map |
supportedValues
maps constraint values that are supported to Boolean indicating whether or not they must be at least partially implemented by higher layers to be fully satisfied |
Constructor Summary | |
---|---|
private |
Constraints()
|
Method Summary | |
---|---|
(package private) static InvocationConstraints |
check(InvocationConstraints constraints,
boolean relativeOK)
Checks that we support at least the transport layer aspects of the given requirements (and throws an UnsupportedConstraintException if not), and returns the requirements that must be at least partially implemented by higher layers and the supported preferences that must be at least partially implemented by higher layers. |
(package private) static Constraints.Distilled |
distill(InvocationConstraints constraints,
boolean relativeOK)
Distills the given constraints to a form more directly usable by this provider. |
private static int |
getSupport(InvocationConstraint c)
Returns this provider's general support for the given constraint. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private static final int NO_SUPPORT
private static final int FULL_SUPPORT
private static final int PARTIAL_SUPPORT
private static final Map supportedValues
private static final Map supportedClasses
Constructor Detail |
---|
private Constraints()
Method Detail |
---|
private static int getSupport(InvocationConstraint c)
static InvocationConstraints check(InvocationConstraints constraints, boolean relativeOK) throws UnsupportedConstraintException
UnsupportedConstraintException
static Constraints.Distilled distill(InvocationConstraints constraints, boolean relativeOK) throws UnsupportedConstraintException
UnsupportedConstraintException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |