com.sun.corba.se.pept.transport.Acceptor Java Examples
The following examples show how to use
com.sun.corba.se.pept.transport.Acceptor.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: CorbaTransportManagerImpl.java From jdk8u60 with GNU General Public License v2.0 | 6 votes |
public Collection getAcceptors(String objectAdapterManagerId, ObjectAdapterId objectAdapterId) { // REVISIT - need to filter based on arguments. // REVISIT - initialization will be moved to OA. // Lazy initialization of acceptors. Iterator iterator = acceptors.iterator(); while (iterator.hasNext()) { Acceptor acceptor = (Acceptor) iterator.next(); if (acceptor.initialize()) { if (acceptor.shouldRegisterAcceptEvent()) { orb.getTransportManager().getSelector(0) .registerForEvent(acceptor.getEventHandler()); } } } return acceptors; }
Example #2
Source File: CorbaTransportManagerImpl.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 6 votes |
public Collection getAcceptors(String objectAdapterManagerId, ObjectAdapterId objectAdapterId) { // REVISIT - need to filter based on arguments. // REVISIT - initialization will be moved to OA. // Lazy initialization of acceptors. Iterator iterator = acceptors.iterator(); while (iterator.hasNext()) { Acceptor acceptor = (Acceptor) iterator.next(); if (acceptor.initialize()) { if (acceptor.shouldRegisterAcceptEvent()) { orb.getTransportManager().getSelector(0) .registerForEvent(acceptor.getEventHandler()); } } } return acceptors; }
Example #3
Source File: CorbaTransportManagerImpl.java From jdk1.8-source-analysis with Apache License 2.0 | 6 votes |
public Collection getAcceptors(String objectAdapterManagerId, ObjectAdapterId objectAdapterId) { // REVISIT - need to filter based on arguments. // REVISIT - initialization will be moved to OA. // Lazy initialization of acceptors. Iterator iterator = acceptors.iterator(); while (iterator.hasNext()) { Acceptor acceptor = (Acceptor) iterator.next(); if (acceptor.initialize()) { if (acceptor.shouldRegisterAcceptEvent()) { orb.getTransportManager().getSelector(0) .registerForEvent(acceptor.getEventHandler()); } } } return acceptors; }
Example #4
Source File: CorbaTransportManagerImpl.java From openjdk-8 with GNU General Public License v2.0 | 6 votes |
public Collection getAcceptors(String objectAdapterManagerId, ObjectAdapterId objectAdapterId) { // REVISIT - need to filter based on arguments. // REVISIT - initialization will be moved to OA. // Lazy initialization of acceptors. Iterator iterator = acceptors.iterator(); while (iterator.hasNext()) { Acceptor acceptor = (Acceptor) iterator.next(); if (acceptor.initialize()) { if (acceptor.shouldRegisterAcceptEvent()) { orb.getTransportManager().getSelector(0) .registerForEvent(acceptor.getEventHandler()); } } } return acceptors; }
Example #5
Source File: ListenerThreadImpl.java From openjdk-jdk9 with GNU General Public License v2.0 | 5 votes |
public ListenerThreadImpl(ORB orb, Acceptor acceptor, Selector selector) { this.orb = orb; this.acceptor = acceptor; this.selector = selector; keepRunning = true; }
Example #6
Source File: CorbaTransportManagerImpl.java From openjdk-jdk8u with GNU General Public License v2.0 | 5 votes |
public synchronized void registerAcceptor(Acceptor acceptor) { if (orb.transportDebugFlag) { dprint(".registerAcceptor->: " + acceptor); } acceptors.add(acceptor); if (orb.transportDebugFlag) { dprint(".registerAcceptor<-: " + acceptor); } }
Example #7
Source File: CorbaInboundConnectionCacheImpl.java From JDKSourceCode1.8 with MIT License | 5 votes |
public CorbaInboundConnectionCacheImpl(ORB orb, Acceptor acceptor) { super(orb, acceptor.getConnectionCacheType(), ((CorbaAcceptor)acceptor).getMonitoringName()); this.connectionCache = new ArrayList(); this.acceptor = acceptor; if (orb.transportDebugFlag) { dprint(": " + acceptor ); } }
Example #8
Source File: CorbaInboundConnectionCacheImpl.java From jdk1.8-source-analysis with Apache License 2.0 | 5 votes |
public void put(Acceptor acceptor, Connection connection) { if (orb.transportDebugFlag) { dprint(".put: " + acceptor + " " + connection); } synchronized (backingStore()) { connectionCache.add(connection); connection.setConnectionCache(this); dprintStatistics(); } }
Example #9
Source File: DefaultSocketFactoryImpl.java From openjdk-8-source with GNU General Public License v2.0 | 5 votes |
public void setAcceptedSocketOptions(Acceptor acceptor, ServerSocket serverSocket, Socket socket) throws SocketException { // Disable Nagle's algorithm (i.e., always send immediately). socket.setTcpNoDelay(true); if (keepAlive) socket.setKeepAlive(true); }
Example #10
Source File: DefaultSocketFactoryImpl.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 5 votes |
public void setAcceptedSocketOptions(Acceptor acceptor, ServerSocket serverSocket, Socket socket) throws SocketException { // Disable Nagle's algorithm (i.e., always send immediately). socket.setTcpNoDelay(true); if (keepAlive) socket.setKeepAlive(true); }
Example #11
Source File: SocketOrChannelConnectionImpl.java From openjdk-8 with GNU General Public License v2.0 | 5 votes |
public SocketOrChannelConnectionImpl(ORB orb, Acceptor acceptor, Socket socket, boolean useSelectThreadToWait, boolean useWorkerThread) { this(orb, useSelectThreadToWait, useWorkerThread); this.socket = socket; socketChannel = socket.getChannel(); if (socketChannel != null) { // REVISIT try { boolean isBlocking = !useSelectThreadToWait; socketChannel.configureBlocking(isBlocking); } catch (IOException e) { RuntimeException rte = new RuntimeException(); rte.initCause(e); throw rte; } } this.acceptor = acceptor; serverRequestMap = Collections.synchronizedMap(new HashMap()); isServer = true; state = ESTABLISHED; }
Example #12
Source File: SocketOrChannelConnectionImpl.java From jdk1.8-source-analysis with Apache License 2.0 | 5 votes |
public SocketOrChannelConnectionImpl(ORB orb, Acceptor acceptor, Socket socket) { this(orb, acceptor, socket, (socket.getChannel() == null ? false : orb.getORBData().connectionSocketUseSelectThreadToWait()), (socket.getChannel() == null ? false : orb.getORBData().connectionSocketUseWorkerThreadForEvent())); }
Example #13
Source File: ListenerThreadImpl.java From openjdk-8-source with GNU General Public License v2.0 | 5 votes |
public ListenerThreadImpl(ORB orb, Acceptor acceptor, Selector selector) { this.orb = orb; this.acceptor = acceptor; this.selector = selector; keepRunning = true; }
Example #14
Source File: CorbaInboundConnectionCacheImpl.java From JDKSourceCode1.8 with MIT License | 5 votes |
public void put(Acceptor acceptor, Connection connection) { if (orb.transportDebugFlag) { dprint(".put: " + acceptor + " " + connection); } synchronized (backingStore()) { connectionCache.add(connection); connection.setConnectionCache(this); dprintStatistics(); } }
Example #15
Source File: SocketOrChannelConnectionImpl.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 5 votes |
public SocketOrChannelConnectionImpl(ORB orb, Acceptor acceptor, Socket socket, boolean useSelectThreadToWait, boolean useWorkerThread) { this(orb, useSelectThreadToWait, useWorkerThread); this.socket = socket; socketChannel = socket.getChannel(); if (socketChannel != null) { // REVISIT try { boolean isBlocking = !useSelectThreadToWait; socketChannel.configureBlocking(isBlocking); } catch (IOException e) { RuntimeException rte = new RuntimeException(); rte.initCause(e); throw rte; } } this.acceptor = acceptor; serverRequestMap = Collections.synchronizedMap(new HashMap()); isServer = true; state = ESTABLISHED; }
Example #16
Source File: CorbaInboundConnectionCacheImpl.java From openjdk-jdk8u with GNU General Public License v2.0 | 5 votes |
public CorbaInboundConnectionCacheImpl(ORB orb, Acceptor acceptor) { super(orb, acceptor.getConnectionCacheType(), ((CorbaAcceptor)acceptor).getMonitoringName()); this.connectionCache = new ArrayList(); this.acceptor = acceptor; if (orb.transportDebugFlag) { dprint(": " + acceptor ); } }
Example #17
Source File: ListenerThreadImpl.java From jdk8u60 with GNU General Public License v2.0 | 5 votes |
public ListenerThreadImpl(ORB orb, Acceptor acceptor, Selector selector) { this.orb = orb; this.acceptor = acceptor; this.selector = selector; keepRunning = true; }
Example #18
Source File: CorbaInboundConnectionCacheImpl.java From hottub with GNU General Public License v2.0 | 5 votes |
public CorbaInboundConnectionCacheImpl(ORB orb, Acceptor acceptor) { super(orb, acceptor.getConnectionCacheType(), ((CorbaAcceptor)acceptor).getMonitoringName()); this.connectionCache = new ArrayList(); this.acceptor = acceptor; if (orb.transportDebugFlag) { dprint(": " + acceptor ); } }
Example #19
Source File: CorbaTransportManagerImpl.java From openjdk-8-source with GNU General Public License v2.0 | 5 votes |
public synchronized void registerAcceptor(Acceptor acceptor) { if (orb.transportDebugFlag) { dprint(".registerAcceptor->: " + acceptor); } acceptors.add(acceptor); if (orb.transportDebugFlag) { dprint(".registerAcceptor<-: " + acceptor); } }
Example #20
Source File: CorbaTransportManagerImpl.java From TencentKona-8 with GNU General Public License v2.0 | 5 votes |
public synchronized void registerAcceptor(Acceptor acceptor) { if (orb.transportDebugFlag) { dprint(".registerAcceptor->: " + acceptor); } acceptors.add(acceptor); if (orb.transportDebugFlag) { dprint(".registerAcceptor<-: " + acceptor); } }
Example #21
Source File: CorbaInboundConnectionCacheImpl.java From jdk8u60 with GNU General Public License v2.0 | 5 votes |
public void put(Acceptor acceptor, Connection connection) { if (orb.transportDebugFlag) { dprint(".put: " + acceptor + " " + connection); } synchronized (backingStore()) { connectionCache.add(connection); connection.setConnectionCache(this); dprintStatistics(); } }
Example #22
Source File: DefaultSocketFactoryImpl.java From TencentKona-8 with GNU General Public License v2.0 | 5 votes |
public void setAcceptedSocketOptions(Acceptor acceptor, ServerSocket serverSocket, Socket socket) throws SocketException { // Disable Nagle's algorithm (i.e., always send immediately). socket.setTcpNoDelay(true); if (keepAlive) socket.setKeepAlive(true); }
Example #23
Source File: SocketOrChannelConnectionImpl.java From TencentKona-8 with GNU General Public License v2.0 | 5 votes |
public SocketOrChannelConnectionImpl(ORB orb, Acceptor acceptor, Socket socket, boolean useSelectThreadToWait, boolean useWorkerThread) { this(orb, useSelectThreadToWait, useWorkerThread); this.socket = socket; socketChannel = socket.getChannel(); if (socketChannel != null) { // REVISIT try { boolean isBlocking = !useSelectThreadToWait; socketChannel.configureBlocking(isBlocking); } catch (IOException e) { RuntimeException rte = new RuntimeException(); rte.initCause(e); throw rte; } } this.acceptor = acceptor; serverRequestMap = Collections.synchronizedMap(new HashMap()); isServer = true; state = ESTABLISHED; }
Example #24
Source File: SocketOrChannelConnectionImpl.java From TencentKona-8 with GNU General Public License v2.0 | 5 votes |
public SocketOrChannelConnectionImpl(ORB orb, Acceptor acceptor, Socket socket) { this(orb, acceptor, socket, (socket.getChannel() == null ? false : orb.getORBData().connectionSocketUseSelectThreadToWait()), (socket.getChannel() == null ? false : orb.getORBData().connectionSocketUseWorkerThreadForEvent())); }
Example #25
Source File: DefaultSocketFactoryImpl.java From jdk8u60 with GNU General Public License v2.0 | 5 votes |
public void setAcceptedSocketOptions(Acceptor acceptor, ServerSocket serverSocket, Socket socket) throws SocketException { // Disable Nagle's algorithm (i.e., always send immediately). socket.setTcpNoDelay(true); if (keepAlive) socket.setKeepAlive(true); }
Example #26
Source File: SocketOrChannelConnectionImpl.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 5 votes |
public SocketOrChannelConnectionImpl(ORB orb, Acceptor acceptor, Socket socket) { this(orb, acceptor, socket, (socket.getChannel() == null ? false : orb.getORBData().connectionSocketUseSelectThreadToWait()), (socket.getChannel() == null ? false : orb.getORBData().connectionSocketUseWorkerThreadForEvent())); }
Example #27
Source File: DefaultSocketFactoryImpl.java From openjdk-jdk9 with GNU General Public License v2.0 | 5 votes |
public void setAcceptedSocketOptions(Acceptor acceptor, ServerSocket serverSocket, Socket socket) throws SocketException { // Disable Nagle's algorithm (i.e., always send immediately). socket.setTcpNoDelay(true); if (keepAlive) socket.setKeepAlive(true); }
Example #28
Source File: ListenerThreadImpl.java From JDKSourceCode1.8 with MIT License | 5 votes |
public ListenerThreadImpl(ORB orb, Acceptor acceptor, Selector selector) { this.orb = orb; this.acceptor = acceptor; this.selector = selector; keepRunning = true; }
Example #29
Source File: CorbaInboundConnectionCacheImpl.java From hottub with GNU General Public License v2.0 | 4 votes |
public Acceptor getAcceptor () { return acceptor; }
Example #30
Source File: CorbaTransportManagerImpl.java From openjdk-8-source with GNU General Public License v2.0 | 4 votes |
public synchronized void unregisterAcceptor(Acceptor acceptor) { acceptors.remove(acceptor); }