The primary PEPt server-side plug-in point and enabler for altenate encodings, protocols and transports.
Acceptor is a factory for client-side artifacts used to receive a message (and possibly send a response).
Acceptor
351352353354355356357358359360361
// REVISIT: see ORBD. make factory in TransportDefault. private void createAndRegisterAcceptor(ORB orb, ORBSocketFactory legacySocketFactory, int port, String name, String type) { Acceptor acceptor; if (legacySocketFactory == null) { acceptor = new SocketOrChannelAcceptorImpl(orb, port, name, type); } else { acceptor =
10581059106010611062106310641065106610671068
// if this class is one that would fail the class cast // to ORBInitializer anyway. if( Acceptor.class.isAssignableFrom( initClass ) ) { // Now that we have a class object, instantiate one and // remember it: Acceptor acceptor = null ; try { acceptor = (Acceptor)AccessController.doPrivileged( new PrivilegedExceptionAction() { public Object run()
211212213214215216217218219220221222223224225
// 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; }
433434435436437438439440441442443
private void createListenerThread(EventHandler eventHandler) { if (orb.transportDebugFlag) { dprint(".createListenerThread: " + eventHandler); } Acceptor acceptor = eventHandler.getAcceptor(); ListenerThread listenerThread = new ListenerThreadImpl(orb, acceptor, this); listenerThreads.put(eventHandler, listenerThread); Throwable throwable = null; try {
6869707172737475767778
protected void initializeBootNaming(ORB orb) { // create a bootstrap server initSvcPort = orb.getORBData().getORBInitialPort(); Acceptor acceptor; // REVISIT: see ORBConfigurator. use factory in TransportDefault. if (orb.getORBData().getLegacySocketFactory() == null) { acceptor = new SocketOrChannelAcceptorImpl( orb,
10231024102510261027102810291030103110321033