1 /* |
1 /* |
2 * Copyright (c) 2018, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 2018, 2019, Oracle and/or its affiliates. All rights reserved. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 * |
4 * |
5 * This code is free software; you can redistribute it and/or modify it |
5 * This code is free software; you can redistribute it and/or modify it |
6 * under the terms of the GNU General Public License version 2 only, as |
6 * under the terms of the GNU General Public License version 2 only, as |
7 * published by the Free Software Foundation. Oracle designates this |
7 * published by the Free Software Foundation. Oracle designates this |
23 * questions. |
23 * questions. |
24 */ |
24 */ |
25 |
25 |
26 package jdk.internal.net.rdma; |
26 package jdk.internal.net.rdma; |
27 |
27 |
28 import java.io.IOException; |
|
29 import java.net.ProtocolFamily; |
28 import java.net.ProtocolFamily; |
30 import java.nio.channels.DatagramChannel; |
29 import java.nio.channels.DatagramChannel; |
31 import java.nio.channels.Pipe; |
30 import java.nio.channels.Pipe; |
32 import java.nio.channels.ServerSocketChannel; |
31 import java.nio.channels.ServerSocketChannel; |
33 import java.nio.channels.SocketChannel; |
32 import java.nio.channels.SocketChannel; |
34 import java.nio.channels.spi.AbstractSelector; |
33 import java.nio.channels.spi.AbstractSelector; |
35 import java.nio.channels.spi.SelectorProvider; |
34 import java.nio.channels.spi.SelectorProvider; |
36 import sun.nio.ch.SelectorProviderImpl; |
|
37 |
35 |
38 public class RdmaPollSelectorProvider |
36 public class RdmaPollSelectorProvider |
39 extends SelectorProvider |
37 extends SelectorProvider |
40 { |
38 { |
41 public static SelectorProvider provider() { |
39 public static RdmaPollSelectorProvider provider() { |
42 throw new UnsupportedOperationException(); |
40 throw new UnsupportedOperationException(); |
43 } |
41 } |
44 |
42 |
45 public AbstractSelector openSelector() throws IOException { |
43 @Override |
|
44 public AbstractSelector openSelector() { |
46 throw new UnsupportedOperationException(); |
45 throw new UnsupportedOperationException(); |
47 } |
46 } |
48 |
47 |
49 public SocketChannel openSocketChannel() |
48 @Override |
50 throws IOException { |
49 public SocketChannel openSocketChannel() { |
51 throw new UnsupportedOperationException(); |
50 throw new UnsupportedOperationException(); |
52 } |
51 } |
53 |
52 |
54 public SocketChannel openSocketChannel(ProtocolFamily family) |
53 public SocketChannel openSocketChannel(ProtocolFamily family) { |
55 throws IOException { |
|
56 throw new UnsupportedOperationException(); |
54 throw new UnsupportedOperationException(); |
57 } |
55 } |
58 |
56 |
59 public ServerSocketChannel openServerSocketChannel() |
57 @Override |
60 throws IOException { |
58 public ServerSocketChannel openServerSocketChannel() { |
61 throw new UnsupportedOperationException(); |
59 throw new UnsupportedOperationException(); |
62 } |
60 } |
63 |
61 |
64 public ServerSocketChannel openServerSocketChannel(ProtocolFamily family) |
62 public ServerSocketChannel openServerSocketChannel(ProtocolFamily family) { |
65 throws IOException { |
|
66 throw new UnsupportedOperationException(); |
63 throw new UnsupportedOperationException(); |
67 } |
64 } |
68 |
65 |
69 public DatagramChannel openDatagramChannel() |
66 @Override |
70 throws IOException { |
67 public DatagramChannel openDatagramChannel() { |
71 throw new UnsupportedOperationException(); |
68 throw new UnsupportedOperationException(); |
72 } |
69 } |
73 |
70 |
74 public DatagramChannel openDatagramChannel(ProtocolFamily family) |
71 @Override |
75 throws IOException { |
72 public DatagramChannel openDatagramChannel(ProtocolFamily family) { |
76 throw new UnsupportedOperationException(); |
73 throw new UnsupportedOperationException(); |
77 } |
74 } |
78 |
75 |
79 public Pipe openPipe() throws IOException { |
76 @Override |
|
77 public Pipe openPipe() { |
80 throw new UnsupportedOperationException(); |
78 throw new UnsupportedOperationException(); |
81 } |
79 } |
82 } |
80 } |