< prev index next >

src/jdk.net/share/classes/jdk/net/RdmaSockets.java

Print this page
rev 52803 : [mq]: API_Exceptions
rev 52801 : imported patch jdk12-8195160-version23.patch

*** 34,48 **** import java.nio.channels.Selector; import java.nio.channels.ServerSocketChannel; import java.nio.channels.SocketChannel; import java.nio.channels.spi.SelectorProvider; import java.io.IOException; ! import java.util.Collections; ! import java.util.HashMap; ! import java.util.HashSet; ! import java.util.Map; ! import java.util.Set; import jdk.internal.net.rdma.RdmaPollSelectorProvider; import jdk.internal.net.rdma.RdmaSocketProvider; /** * Factory methods for creating RDMA-based TCP sockets and channels. --- 34,44 ---- import java.nio.channels.Selector; import java.nio.channels.ServerSocketChannel; import java.nio.channels.SocketChannel; import java.nio.channels.spi.SelectorProvider; import java.io.IOException; ! import java.util.Objects; import jdk.internal.net.rdma.RdmaPollSelectorProvider; import jdk.internal.net.rdma.RdmaSocketProvider; /** * Factory methods for creating RDMA-based TCP sockets and channels.
*** 96,107 **** * suppose the parameter is specified as {@link * java.net.StandardProtocolFamily#INET6 StandardProtocolFamily.INET6} * but IPv6 is not enabled on the platform. */ public static Socket openSocket(ProtocolFamily family) throws IOException { ! if(family == null) ! throw new NullPointerException("protocol family is null"); return RdmaSocketProvider.openSocket(family); } /** * Creates an unbound RDMA server socket. --- 92,102 ---- * suppose the parameter is specified as {@link * java.net.StandardProtocolFamily#INET6 StandardProtocolFamily.INET6} * but IPv6 is not enabled on the platform. */ public static Socket openSocket(ProtocolFamily family) throws IOException { ! Objects.requireNonNull("protocol family is null"); return RdmaSocketProvider.openSocket(family); } /** * Creates an unbound RDMA server socket.
*** 126,137 **** * java.net.StandardProtocolFamily#INET6 StandardProtocolFamily.INET6} * but IPv6 is not enabled on the platform. */ public static ServerSocket openServerSocket(ProtocolFamily family) throws IOException { ! if(family == null) ! throw new NullPointerException("protocol family is null"); return RdmaSocketProvider.openServerSocket(family); } /** * Opens a socket channel to a RDMA socket. A newly created socket channel --- 121,131 ---- * java.net.StandardProtocolFamily#INET6 StandardProtocolFamily.INET6} * but IPv6 is not enabled on the platform. */ public static ServerSocket openServerSocket(ProtocolFamily family) throws IOException { ! Objects.requireNonNull("protocol family is null"); return RdmaSocketProvider.openServerSocket(family); } /** * Opens a socket channel to a RDMA socket. A newly created socket channel
*** 161,172 **** * java.net.StandardProtocolFamily#INET6 StandardProtocolFamily.INET6} * but IPv6 is not enabled on the platform. */ public static SocketChannel openSocketChannel(ProtocolFamily family) throws IOException { ! if(family == null) ! throw new NullPointerException("protocol family is null"); SelectorProvider provider = RdmaPollSelectorProvider.provider(); return ((RdmaPollSelectorProvider)provider).openSocketChannel(family); } /** --- 155,165 ---- * java.net.StandardProtocolFamily#INET6 StandardProtocolFamily.INET6} * but IPv6 is not enabled on the platform. */ public static SocketChannel openSocketChannel(ProtocolFamily family) throws IOException { ! Objects.requireNonNull("protocol family is null"); SelectorProvider provider = RdmaPollSelectorProvider.provider(); return ((RdmaPollSelectorProvider)provider).openSocketChannel(family); } /**
*** 192,203 **** * java.net.StandardProtocolFamily#INET6 StandardProtocolFamily.INET6} * but IPv6 is not enabled on the platform. */ public static ServerSocketChannel openServerSocketChannel( ProtocolFamily family) throws IOException { ! if(family == null) ! throw new NullPointerException("protocol family is null"); SelectorProvider provider = RdmaPollSelectorProvider.provider(); return ((RdmaPollSelectorProvider)provider) .openServerSocketChannel(family); } --- 185,195 ---- * java.net.StandardProtocolFamily#INET6 StandardProtocolFamily.INET6} * but IPv6 is not enabled on the platform. */ public static ServerSocketChannel openServerSocketChannel( ProtocolFamily family) throws IOException { ! Objects.requireNonNull("protocol family is null"); SelectorProvider provider = RdmaPollSelectorProvider.provider(); return ((RdmaPollSelectorProvider)provider) .openServerSocketChannel(family); }
< prev index next >