/** * Sets the TCP port on which a listener accepts connections. * * @param type The connection type for which a listener is to be configured. * @param startInSslMode true when the listener to be configured is in legacy SSL mode, otherwise false. * @param port a port number. */ public void setPort( ConnectionType type, boolean startInSslMode, int port ) { getListener( type, startInSslMode ).setPort( port ); }
@Deprecated public void enableComponentListener( boolean enabled ) { enable( ConnectionType.COMPONENT, false, enabled ); }
@Deprecated public int getClientListenerPort() { return getPort( ConnectionType.SOCKET_C2S, false ); }
@Deprecated public boolean isConnectionManagerSslListenerEnabled() { return isEnabled( ConnectionType.CONNECTION_MANAGER, true ); }
@Deprecated public void setServerListenerPort( int port ) { setPort( ConnectionType.SOCKET_S2S, false, port ); }
@Deprecated public NioSocketAcceptor getComponentAcceptor() { return getSocketAcceptor( ConnectionType.COMPONENT, false ); }
/** * @deprecated use #getListeners */ @Deprecated public Collection<ServerPort> getPorts() { final Set<ServerPort> result = new LinkedHashSet<>(); for ( ConnectionListener listener : getListeners() ) { if (listener.getServerPort() != null) { result.add( listener.getServerPort() ); } } return result; } }
@Override public void xmlPropertySet( String property, Map<String, Object> params ) { processPropertyValueChange( property, params ); }
bindAddress = getListenAddress(); adminConsoleBindAddress = getAdminConsoleListenAddress(); if( adminConsoleBindAddress == null )
@Deprecated public boolean isClientListenerEnabled() { return isEnabled( ConnectionType.SOCKET_C2S, false ); }
@Deprecated public void setServerSslListenerPort( int port ) { setPort( ConnectionType.SOCKET_S2S, true, port ); }
@Deprecated public NioSocketAcceptor getComponentSslAcceptor() { return getSocketAcceptor( ConnectionType.COMPONENT, true); }
/** * Stops all listeners. This ensures no listener will accept new connections. */ private synchronized void stopListeners() { for ( final ConnectionListener listener : getListeners() ) { // TODO determine by purpose exactly what needs and what need not be restarted. try { listener.stop(); } catch ( RuntimeException ex ) { Log.error( "An exception occurred while stopping listener " + listener, ex ); } } // Stop the HTTP client listener. try { HttpBindManager.getInstance().stop(); } catch ( RuntimeException ex ) { Log.error( "An exception occurred while stopping HTTP Bind listener ", ex ); } }
@Override public void xmlPropertyDeleted( String property, Map<String, Object> params ) { processPropertyValueChange( property, params ); }
bindAddress = getListenAddress(); adminConsoleBindAddress = getAdminConsoleListenAddress(); if( adminConsoleBindAddress == null )
/** * Retrieves the configured TCP port on which a listener accepts connections. * * @param type The connection type for which a listener is to be configured. * @param startInSslMode true when the listener to be configured is in legacy SSL mode, otherwise false. * @return a port number. */ public int getPort( ConnectionType type, boolean startInSslMode ) { return getListener( type, startInSslMode ).getPort(); }
@Deprecated public boolean isClientSSLListenerEnabled() { return isEnabled( ConnectionType.SOCKET_C2S, true ); }
@Deprecated public int getClientSSLListenerPort() { return getPort( ConnectionType.SOCKET_C2S, true ); }
@Deprecated public void enableServerSslListener( boolean enabled ) { enable( ConnectionType.SOCKET_S2S, true, enabled ); }
@Deprecated public void setComponentListenerPort( int port ) { setPort( ConnectionType.COMPONENT, false, port ); }