/openjdk7/jdk/test/java/nio/channels/Selector/ |
H A D | SelectAndCancel.java | 34 static SelectionKey sk; field in class:SelectAndCancel 53 sk = ssc.register(selector, SelectionKey.OP_ACCEPT); 72 sk.cancel();
|
H A D | SelectorTest.java | 175 SelectionKey sk = (SelectionKey)i.next(); 178 (ServerSocketChannel)sk.channel(); 349 SelectionKey sk = (SelectionKey)i.next(); 351 SocketChannel sc = (SocketChannel)sk.channel(); 353 read(sk, sc); 371 private void read(SelectionKey sk, SocketChannel sc) throws Exception { argument 387 sk.interestOps(0);
|
/openjdk7/jdk/src/share/sample/nio/server/ |
H A D | Handler.java | 52 void handle(SelectionKey sk) throws IOException; argument
|
H A D | AcceptHandler.java | 66 public void handle(SelectionKey sk) throws IOException { argument 68 if (!sk.isAcceptable())
|
H A D | RequestHandler.java | 81 private boolean receive(SelectionKey sk) throws IOException { argument 88 if (!cio.doHandshake(sk)) { 125 public void handle(SelectionKey sk) throws IOException { argument 129 if (!receive(sk)) 144 sk.interestOps(SelectionKey.OP_WRITE);
|
H A D | ChannelIO.java | 121 boolean doHandshake(SelectionKey sk) throws IOException { argument
|
H A D | ChannelIOSecure.java | 256 boolean doHandshake(SelectionKey sk) throws IOException { argument 286 if (sk != null) { 287 sk.interestOps(SelectionKey.OP_READ); 342 if (sk != null) { 343 sk.interestOps(SelectionKey.OP_READ); 385 if (sk != null) { 386 sk.interestOps(SelectionKey.OP_WRITE);
|
/openjdk7/jdk/test/java/nio/channels/SocketChannel/ |
H A D | Close.java | 42 static void check(SelectionKey sk) throws IOException { argument 43 if (sk.isValid()) 45 if (sk.channel().isOpen()) 47 // if (!((SocketChannel)sk.channel()).socket().isClosed()) 52 SelectionKey sk = open(); 53 //((SocketChannel)sk.channel()).socket().close(); 54 check(sk); 58 SelectionKey sk = open(); 60 sk.channel().close(); 61 check(sk); [all...] |
H A D | Hangup.java | 54 static void doSelect(Selector sel, SelectionKey sk, int count) argument 64 if (!sks.remove(sk)) 110 SelectionKey sk = sv.register(sel, SelectionKey.OP_READ); 125 doSelect(sel, sk, ++ns); 139 doSelect(sel, sk, ++ns); 152 doSelect(sel, sk, ++ns); 153 doSelect(sel, sk, ++ns);
|
/openjdk7/jdk/src/share/classes/sun/nio/ch/ |
H A D | SelChImpl.java | 49 * @return true iff the new value of sk.readyOps() set by this method 53 public boolean translateAndUpdateReadyOps(int ops, SelectionKeyImpl sk); argument 59 * @return true iff the new value of sk.readyOps() set by this method 63 public boolean translateAndSetReadyOps(int ops, SelectionKeyImpl sk); argument 65 void translateAndSetInterestOps(int ops, SelectionKeyImpl sk); argument
|
H A D | AbstractPollSelectorImpl.java | 70 void putEventOps(SelectionKeyImpl sk, int ops) { argument 74 pollWrapper.putEventOps(sk.getIndex(), ops); 122 SelectionKeyImpl sk = channelArray[i]; 124 if (selectedKeys.contains(sk)) { 125 if (sk.channel.translateAndSetReadyOps(rOps, sk)) { 129 sk.channel.translateAndSetReadyOps(rOps, sk); 130 if ((sk.nioReadyOps() & sk [all...] |
H A D | SelectorImpl.java | 122 void putEventOps(SelectionKeyImpl sk, int ops) { } argument
|
H A D | ServerSocketChannelImpl.java | 307 SelectionKeyImpl sk) { 308 int intOps = sk.nioInterestOps(); // Do this just once, it synchronizes 309 int oldOps = sk.nioReadyOps(); 322 sk.nioReadyOps(newOps); 330 sk.nioReadyOps(newOps); 334 public boolean translateAndUpdateReadyOps(int ops, SelectionKeyImpl sk) { argument 335 return translateReadyOps(ops, sk.nioReadyOps(), sk); 338 public boolean translateAndSetReadyOps(int ops, SelectionKeyImpl sk) { argument 339 return translateReadyOps(ops, 0, sk); 306 translateReadyOps(int ops, int initialOps, SelectionKeyImpl sk) argument 345 translateAndSetInterestOps(int ops, SelectionKeyImpl sk) argument [all...] |
H A D | SocketChannelImpl.java | 909 SelectionKeyImpl sk) { 910 int intOps = sk.nioInterestOps(); // Do this just once, it synchronizes 911 int oldOps = sk.nioReadyOps(); 924 sk.nioReadyOps(newOps); 948 sk.nioReadyOps(newOps); 952 public boolean translateAndUpdateReadyOps(int ops, SelectionKeyImpl sk) { argument 953 return translateReadyOps(ops, sk.nioReadyOps(), sk); 956 public boolean translateAndSetReadyOps(int ops, SelectionKeyImpl sk) { argument 957 return translateReadyOps(ops, 0, sk); 908 translateReadyOps(int ops, int initialOps, SelectionKeyImpl sk) argument 963 translateAndSetInterestOps(int ops, SelectionKeyImpl sk) argument [all...] |
/openjdk7/jdk/src/windows/classes/sun/nio/ch/ |
H A D | SinkChannelImpl.java | 76 SelectionKeyImpl sk) { 77 int intOps = sk.nioInterestOps(); // Do this just once, it synchronizes 78 int oldOps = sk.nioReadyOps(); 87 sk.nioReadyOps(newOps); 95 sk.nioReadyOps(newOps); 99 public boolean translateAndUpdateReadyOps(int ops, SelectionKeyImpl sk) { argument 100 return translateReadyOps(ops, sk.nioReadyOps(), sk); 103 public boolean translateAndSetReadyOps(int ops, SelectionKeyImpl sk) { argument 104 return translateReadyOps(ops, 0, sk); 75 translateReadyOps(int ops, int initialOps, SelectionKeyImpl sk) argument 107 translateAndSetInterestOps(int ops, SelectionKeyImpl sk) argument [all...] |
H A D | SourceChannelImpl.java | 75 SelectionKeyImpl sk) { 76 int intOps = sk.nioInterestOps(); // Do this just once, it synchronizes 77 int oldOps = sk.nioReadyOps(); 86 sk.nioReadyOps(newOps); 94 sk.nioReadyOps(newOps); 98 public boolean translateAndUpdateReadyOps(int ops, SelectionKeyImpl sk) { argument 99 return translateReadyOps(ops, sk.nioReadyOps(), sk); 102 public boolean translateAndSetReadyOps(int ops, SelectionKeyImpl sk) { argument 103 return translateReadyOps(ops, 0, sk); 74 translateReadyOps(int ops, int initialOps, SelectionKeyImpl sk) argument 106 translateAndSetInterestOps(int ops, SelectionKeyImpl sk) argument [all...] |
H A D | WindowsSelectorImpl.java | 355 SelectionKeyImpl sk = me.ski; 361 (sk.channel() instanceof SocketChannelImpl) && 367 if (selectedKeys.contains(sk)) { // Key in selected set 369 if (sk.channel.translateAndSetReadyOps(rOps, sk) && 375 if (sk.channel.translateAndUpdateReadyOps(rOps, sk) && 384 sk.channel.translateAndSetReadyOps(rOps, sk); 385 if ((sk 591 putEventOps(SelectionKeyImpl sk, int ops) argument [all...] |
/openjdk7/jdk/src/solaris/classes/sun/nio/ch/ |
H A D | DevPollSelectorImpl.java | 183 void putEventOps(SelectionKeyImpl sk, int ops) { argument 186 int fd = IOUtil.fdVal(sk.channel.getFD());
|
H A D | EventPortSelectorImpl.java | 154 public void putEventOps(SelectionKeyImpl sk, int ops) { argument 157 int fd = sk.channel.getFDVal();
|
H A D | SinkChannelImpl.java | 116 SelectionKeyImpl sk) { 117 int intOps = sk.nioInterestOps();// Do this just once, it synchronizes 118 int oldOps = sk.nioReadyOps(); 127 sk.nioReadyOps(newOps); 135 sk.nioReadyOps(newOps); 139 public boolean translateAndUpdateReadyOps(int ops, SelectionKeyImpl sk) { argument 140 return translateReadyOps(ops, sk.nioReadyOps(), sk); 143 public boolean translateAndSetReadyOps(int ops, SelectionKeyImpl sk) { argument 144 return translateReadyOps(ops, 0, sk); 115 translateReadyOps(int ops, int initialOps, SelectionKeyImpl sk) argument 147 translateAndSetInterestOps(int ops, SelectionKeyImpl sk) argument [all...] |
H A D | SourceChannelImpl.java | 116 SelectionKeyImpl sk) { 117 int intOps = sk.nioInterestOps(); // Do this just once, it synchronizes 118 int oldOps = sk.nioReadyOps(); 127 sk.nioReadyOps(newOps); 135 sk.nioReadyOps(newOps); 139 public boolean translateAndUpdateReadyOps(int ops, SelectionKeyImpl sk) { argument 140 return translateReadyOps(ops, sk.nioReadyOps(), sk); 143 public boolean translateAndSetReadyOps(int ops, SelectionKeyImpl sk) { argument 144 return translateReadyOps(ops, 0, sk); 115 translateReadyOps(int ops, int initialOps, SelectionKeyImpl sk) argument 147 translateAndSetInterestOps(int ops, SelectionKeyImpl sk) argument [all...] |
H A D | SctpServerChannelImpl.java | 303 SelectionKeyImpl sk) { 304 int intOps = sk.nioInterestOps(); 305 int oldOps = sk.nioReadyOps(); 318 sk.nioReadyOps(newOps); 326 sk.nioReadyOps(newOps); 331 public boolean translateAndUpdateReadyOps(int ops, SelectionKeyImpl sk) { argument 332 return translateReadyOps(ops, sk.nioReadyOps(), sk); 336 public boolean translateAndSetReadyOps(int ops, SelectionKeyImpl sk) { argument 337 return translateReadyOps(ops, 0, sk); 302 translateReadyOps(int ops, int initialOps, SelectionKeyImpl sk) argument 341 translateAndSetInterestOps(int ops, SelectionKeyImpl sk) argument [all...] |
/openjdk7/langtools/test/tools/javap/ |
H A D | TestSuperclass.java | 85 for (SuperKind sk: SuperKind.values()) { 86 errors += new TestSuperclass(ck, gk, sk).run(comp, fm); 97 final SuperKind sk; field in class:TestSuperclass 99 TestSuperclass(ClassKind ck, GenericKind gk, SuperKind sk) { argument 102 this.sk = sk; 106 System.err.println("test: ck:" + ck + " gk:" + gk + " sk:" + sk); 107 File testDir = new File(ck + "-" + gk + "-" + sk); 168 .replace("#EK", sk [all...] |
/openjdk7/hotspot/src/share/vm/oops/ |
H A D | objArrayKlassKlass.cpp | 100 klassOop sk = element_super->array_klass(CHECK_0); local 101 super_klass = KlassHandle(THREAD, sk);
|
/openjdk7/langtools/test/tools/javac/processing/model/util/elements/doccomments/ |
H A D | TestDocComments.java | 61 for (ScanKind sk: ScanKind.values()) { 63 test(ck, sk); 74 static void test(CompileKind ck, ScanKind sk) throws IOException { argument 77 File testDir = new File("test." + ck + "." + sk); 85 "-Ascan=" + sk
|