Package org.apache.flink.runtime.rest
Class RestServerEndpoint.RestHandlerUrlComparator
java.lang.Object
org.apache.flink.runtime.rest.RestServerEndpoint.RestHandlerUrlComparator
- All Implemented Interfaces:
Serializable,Comparator<org.apache.flink.api.java.tuple.Tuple2<RestHandlerSpecification,org.apache.flink.shaded.netty4.io.netty.channel.ChannelInboundHandler>>
- Enclosing class:
- RestServerEndpoint
public static final class RestServerEndpoint.RestHandlerUrlComparator
extends Object
implements Comparator<org.apache.flink.api.java.tuple.Tuple2<RestHandlerSpecification,org.apache.flink.shaded.netty4.io.netty.channel.ChannelInboundHandler>>, Serializable
Comparator for Rest URLs.
The comparator orders the Rest URLs such that URLs with path parameters are ordered behind those without parameters. E.g.: /jobs /jobs/overview /jobs/:jobid /jobs/:jobid/config /:*
IMPORTANT: This comparator is highly specific to how Netty path parameters are encoded. Namely with a preceding ':' character.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classComparator for Rest URLs. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintcompare(org.apache.flink.api.java.tuple.Tuple2<RestHandlerSpecification, org.apache.flink.shaded.netty4.io.netty.channel.ChannelInboundHandler> o1, org.apache.flink.api.java.tuple.Tuple2<RestHandlerSpecification, org.apache.flink.shaded.netty4.io.netty.channel.ChannelInboundHandler> o2) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.Comparator
equals, reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
-
Constructor Details
-
RestHandlerUrlComparator
public RestHandlerUrlComparator()
-
-
Method Details
-
compare
public int compare(org.apache.flink.api.java.tuple.Tuple2<RestHandlerSpecification, org.apache.flink.shaded.netty4.io.netty.channel.ChannelInboundHandler> o1, org.apache.flink.api.java.tuple.Tuple2<RestHandlerSpecification, org.apache.flink.shaded.netty4.io.netty.channel.ChannelInboundHandler> o2) - Specified by:
comparein interfaceComparator<org.apache.flink.api.java.tuple.Tuple2<RestHandlerSpecification,org.apache.flink.shaded.netty4.io.netty.channel.ChannelInboundHandler>>
-