OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
full:selectorprovider
(Results
1 - 25
of
37
) sorted by null
1
2
/libcore/luni/src/test/java/org/apache/harmony/nio/tests/java/nio/channels/spi/
SelectorProviderTest.java
19
import java.nio.channels.spi.
SelectorProvider
;
26
*
SelectorProvider
#openDatagramChannel()
27
*
SelectorProvider
#openPipe()
28
*
SelectorProvider
#openServerSocketChannel()
29
*
SelectorProvider
#openSocketChannel()
30
*
SelectorProvider
#openSelector()
34
assertNotNull(
SelectorProvider
.provider());
37
SelectorProvider
.provider().inheritedChannel();
39
assertNotNull(
SelectorProvider
.provider().openDatagramChannel());
40
assertNotNull(
SelectorProvider
.provider().openPipe())
[
all
...]
/libcore/luni/src/main/java/java/nio/
PipeImpl.java
24
import java.nio.channels.spi.
SelectorProvider
;
37
public PipeImpl(
SelectorProvider
selectorProvider
) throws IOException {
45
this.sink = new PipeSinkChannel(
selectorProvider
, fd1);
46
this.source = new PipeSourceChannel(
selectorProvider
, fd2);
64
private PipeSourceChannel(
SelectorProvider
selectorProvider
, FileDescriptor fd) throws IOException {
65
super(
selectorProvider
);
67
this.channel = new SocketChannelImpl(
selectorProvider
, fd);
99
private PipeSinkChannel(
SelectorProvider
selectorProvider, FileDescriptor fd) throws IOException
[
all
...]
SelectorProviderImpl.java
26
import java.nio.channels.spi.
SelectorProvider
;
29
* @hide for java.nio.channels.spi.
SelectorProvider
only.
31
public final class SelectorProviderImpl extends
SelectorProvider
{
SocketChannelImpl.java
43
import java.nio.channels.spi.
SelectorProvider
;
92
public SocketChannelImpl(
SelectorProvider
selectorProvider
) throws IOException {
93
this(
selectorProvider
, true);
99
public SocketChannelImpl(
SelectorProvider
selectorProvider
, boolean connect) throws IOException {
100
super(
selectorProvider
);
108
public SocketChannelImpl(
SelectorProvider
selectorProvider
, FileDescriptor existingFd) throws IOException {
109
super(
selectorProvider
);
[
all
...]
ServerSocketChannelImpl.java
33
import java.nio.channels.spi.
SelectorProvider
;
50
public ServerSocketChannelImpl(
SelectorProvider
sp) throws IOException {
SelectorImpl.java
30
import java.nio.channels.spi.
SelectorProvider
;
83
public SelectorImpl(
SelectorProvider
selectorProvider
) throws IOException {
84
super(
selectorProvider
);
DatagramChannelImpl.java
37
import java.nio.channels.spi.
SelectorProvider
;
73
protected DatagramChannelImpl(
SelectorProvider
selectorProvider
) throws IOException {
74
super(
selectorProvider
);
83
super(
SelectorProvider
.provider());
/libcore/harmony-tests/src/test/java/org/apache/harmony/nio/tests/java/nio/channels/spi/
AbstractSelectorTest.java
24
import java.nio.channels.spi.
SelectorProvider
;
37
Selector mockSelector = new MockAbstractSelector(
SelectorProvider
40
assertSame(
SelectorProvider
.provider(), mockSelector.provider());
50
SelectorProvider
.provider());
61
SelectorProvider
.provider());
68
mockSelector = new MockAbstractSelector(
SelectorProvider
.provider());
104
Selector acceptSelector =
SelectorProvider
.provider().openSelector();
114
Selector acceptSelector =
SelectorProvider
.provider().openSelector();
130
Selector acceptSelector =
SelectorProvider
.provider().openSelector();
AbstractSelectableChannelTest.java
28
import java.nio.channels.spi.
SelectorProvider
;
41
testChannel = new MockSelectableChannel(
SelectorProvider
.provider());
61
testChannel = new MockSelectableChannel(
SelectorProvider
.provider());
77
SelectorProvider
provider = testChannel.provider();
78
assertSame(
SelectorProvider
.provider(), provider);
109
Selector acceptSelector1 =
SelectorProvider
.provider().openSelector();
110
Selector acceptSelector2 = new MockAbstractSelector(
SelectorProvider
139
Selector acceptSelector =
SelectorProvider
.provider().openSelector();
141
MockSelectableChannel msc = new MockSelectableChannel(
SelectorProvider
179
acceptSelector =
SelectorProvider
.provider().openSelector()
[
all
...]
MockAbstractSelector.java
25
import java.nio.channels.spi.
SelectorProvider
;
32
public MockAbstractSelector(
SelectorProvider
arg0) {
37
return new MockAbstractSelector(
SelectorProvider
.provider());
/libcore/luni/src/main/java/java/nio/channels/spi/
SelectorProvider.java
30
* {@code
SelectorProvider
} is an abstract base class that declares methods for
39
public abstract class
SelectorProvider
{
41
private static
SelectorProvider
provider = null;
44
* Constructs a new {@code
SelectorProvider
}.
46
protected
SelectorProvider
() {
53
* <li> if the system property "java.nio.channels.spi.
SelectorProvider
" is
57
* "java.nio.channels.spi.
SelectorProvider
" in META-INF/services of a jar
65
synchronized public static
SelectorProvider
provider() {
67
provider = ServiceLoader.loadFromSystemProperty(
SelectorProvider
.class);
78
private static
SelectorProvider
loadProviderByJar()
[
all
...]
AbstractSelector.java
36
private
SelectorProvider
provider = null;
46
protected AbstractSelector(
SelectorProvider
selectorProvider
) {
47
provider =
selectorProvider
;
79
public final
SelectorProvider
provider() {
AbstractSelectableChannel.java
38
private final
SelectorProvider
provider;
52
* @param
selectorProvider
55
protected AbstractSelectableChannel(
SelectorProvider
selectorProvider
) {
56
provider =
selectorProvider
;
66
public final
SelectorProvider
provider() {
/libcore/luni/src/main/java/java/nio/channels/
Pipe.java
21
import java.nio.channels.spi.
SelectorProvider
;
41
protected SinkChannel(
SelectorProvider
provider) {
67
protected SourceChannel(
SelectorProvider
provider) {
83
* Returns a new pipe from the default {@see java.nio.channels.spi.
SelectorProvider
}.
89
return
SelectorProvider
.provider().openPipe();
ServerSocketChannel.java
23
import java.nio.channels.spi.
SelectorProvider
;
42
* @param
selectorProvider
43
* an instance of
SelectorProvider
.
45
protected ServerSocketChannel(
SelectorProvider
selectorProvider
) {
46
super(
selectorProvider
);
53
* of the default {@code
SelectorProvider
} instance.
60
return
SelectorProvider
.provider().openServerSocketChannel();
Selector.java
21
import java.nio.channels.spi.
SelectorProvider
;
40
* Returns a selector returned by {@link
SelectorProvider
#provider}'s
41
* {@link
SelectorProvider
#openSelector} method.
47
return
SelectorProvider
.provider().openSelector();
93
public abstract
SelectorProvider
provider();
DatagramChannel.java
25
import java.nio.channels.spi.
SelectorProvider
;
48
* @param
selectorProvider
49
* an instance of
SelectorProvider
.
51
protected DatagramChannel(
SelectorProvider
selectorProvider
) {
52
super(
selectorProvider
);
59
* method of the default {@link
SelectorProvider
} instance.
66
return
SelectorProvider
.provider().openDatagramChannel();
SocketChannel.java
25
import java.nio.channels.spi.
SelectorProvider
;
63
* @param
selectorProvider
64
* an instance of
SelectorProvider
.
66
protected SocketChannel(
SelectorProvider
selectorProvider
) {
67
super(
selectorProvider
);
74
* default {@link
SelectorProvider
} instance.
81
return
SelectorProvider
.provider().openSocketChannel();
/libcore/harmony-tests/src/test/java/org/apache/harmony/nio/tests/java/nio/channels/
MockServerSocketChannel.java
24
import java.nio.channels.spi.
SelectorProvider
;
28
protected MockServerSocketChannel(
SelectorProvider
arg0) {
MockDatagramChannel.java
25
import java.nio.channels.spi.
SelectorProvider
;
29
public MockDatagramChannel(
SelectorProvider
arg0) {
MockSocketChannel.java
25
import java.nio.channels.spi.
SelectorProvider
;
29
protected MockSocketChannel(
SelectorProvider
arg0) {
SelectableChannelTest.java
24
import java.nio.channels.spi.
SelectorProvider
;
69
public
SelectorProvider
provider() {
/libcore/luni/src/test/java/libcore/java/nio/channels/
OldSocketChannelTest.java
36
import java.nio.channels.spi.
SelectorProvider
;
93
SelectorProvider
.provider().openSocketChannel();
95
assertSame(
SelectorProvider
.provider(), channel.provider());
98
assertSame(
SelectorProvider
.provider(), channel.provider());
100
SelectorProvider
.provider());
115
SelectorProvider
.provider());
120
assertEquals(
SelectorProvider
.provider(), testSChannel.provider());
177
assertEquals(
SelectorProvider
.provider(), this.channel1.provider());
353
public MockSocketChannel(
SelectorProvider
provider) {
OldServerSocketChannelTest.java
26
import java.nio.channels.spi.
SelectorProvider
;
67
SelectorProvider
.provider().openServerSocketChannel();
69
assertSame(
SelectorProvider
.provider(),channel.provider());
/libcore/luni/src/test/java/libcore/java/lang/
OldSystemTest.java
22
import java.nio.channels.spi.
SelectorProvider
;
231
SelectorProvider
sp =
SelectorProvider
.provider();
Completed in 1004 milliseconds
1
2