private GlassFishORBHelper getHelper() { IIOPUtils iiopUtils = IIOPUtils.getInstance(); return iiopUtils.getHabitat().getService( GlassFishORBHelper.class); }
public Collection<ServerRef> getServerRefs() { assertServer(); return serverRefs; }
IIOPUtils iiopUtils = IIOPUtils.getInstance(); if (iiopUtils.getProcessType().isServer()) { List<IiopListener> iiop_listener_list = IIOPUtils.getInstance() .getIiopService().getIiopListener() ; IiopListener[] iiopListenerBeans = iiop_listener_list .toArray(new IiopListener [iiop_listener_list.size()]) ;
private int getServerPort(String mech) { List<IiopListener> listenersList = IIOPUtils.getInstance(). getIiopService().getIiopListener(); IiopListener[] iiopListenerBeans = listenersList.toArray( new IiopListener[listenersList.size()]); for (IiopListener ilisten : iiopListenerBeans) { if (mech.equalsIgnoreCase("SSL")) { if (ilisten.getSecurityEnabled().equalsIgnoreCase("true") && ilisten.getSsl() != null && !ilisten.getSsl().getClientAuthEnabled().equalsIgnoreCase("true")) { return Integer.parseInt(ilisten.getPort()); } } else if (mech.equalsIgnoreCase("SSL_MUTUALAUTH")) { if (ilisten.getSecurityEnabled().equalsIgnoreCase("true") && ilisten.getSsl() != null && ilisten.getSsl().getClientAuthEnabled().equalsIgnoreCase("true")) { return Integer.parseInt(ilisten.getPort()); } } else if (!ilisten.getSecurityEnabled().equalsIgnoreCase("true")) { return Integer.parseInt(ilisten.getPort()); } } return -1; } }
codec = cf.create_codec(encoding); IIOPUtils iiopUtils = IIOPUtils.getInstance(); Collection<IIOPInterceptorFactory> interceptorFactories = iiopUtils.getAllIIOPInterceptrFactories();
iiopService = iiopUtils.getIiopService(); iiopListeners = iiopService.getIiopListener() ; assert iiopListeners != null ;
iiopUtils.getGlassFishORBLifeCycleListeners(); iiopUtils.setORB(orb);
S1ASThreadPoolManager() { try { _iiopUtils = Globals.getDefaultHabitat().getByType(IIOPUtils.class); Collection<com.sun.grizzly.config.dom.ThreadPool> tpCol = _iiopUtils.getAllThreadPools(); com.sun.grizzly.config.dom.ThreadPool[] allThreadPools = tpCol.toArray(new com.sun.grizzly.config.dom.ThreadPool[tpCol.size()]); for (int i = 0; i < allThreadPools.length; i++) { createThreadPools(allThreadPools[i], i); } defaultID = (String) indexToIdTable.get(new Integer(0)); } catch (NullPointerException npe) { _logger.log(Level.FINE, "Server Context is NULL. Ignoring and proceeding."); } }
threadPoolFactory.create(minThreads, maxThreads, idleTimeoutInSeconds * 1000, threadpoolId, _iiopUtils.getCommonClassLoader());
public void postConstruct() { processType = processEnv.getProcessType(); if( processEnv.getProcessType().isServer()) { iiopService = habitat.getComponent(IiopService.class); final Collection<ThreadPool> threadPool = iiopService.getParent(Config.class).getThreadPools().getThreadPool(); final Collection<NetworkListener> listeners = habitat.getAllByContract(NetworkListener.class); final Set<String> names = new TreeSet<String>(); threadPools = new ArrayList<ThreadPool>(); for (NetworkListener listener : listeners) { names.add(listener.getThreadPool()); } for (ThreadPool pool : threadPool) { if(!names.contains(pool.getName())) { threadPools.add(pool); } } serverRefs = habitat.getAllByContract(ServerRef.class); configs = habitat.getComponent(Configs.class); } IIOPUtils.initMe(this); }
public IiopService getIiopService() { assertServer(); return iiopService; }
public Collection<ThreadPool> getAllThreadPools() { assertServer(); return threadPools; }
public List<IiopListener> getIiopListeners() { assertServer(); return iiopService.getIiopListener(); }