/** * Returns the port of the proxy to use to connect to igniterealtime.org or -1 if no * proxy is being used. * * @return the port of the proxy to use to connect to igniterealtime.org or -1 if no * proxy is being used. */ public int getProxyPort() { return JiveGlobals.getIntProperty("update.proxy.port", -1); }
@Override int getMaxIdleTime() { return JiveGlobals.getIntProperty("xmpp.multiplex.idle", 5 * 60 * 1000) / 1000; } }
/** * Returns the HTTP binding port which uses SSL. * * @return the HTTP binding port which uses SSL. */ public int getHttpBindSecurePort() { return JiveGlobals.getIntProperty(HTTP_BIND_SECURE_PORT, HTTP_BIND_SECURE_PORT_DEFAULT); }
/** * Returns the number of milliseconds to elapse between clearing of idle server sessions. * * @return the number of milliseconds to elapse between clearing of idle server sessions. */ public int getServerSessionTimeout() { return JiveGlobals.getIntProperty("xmpp.server.session.timeout", 5 * 60 * 1000); }
@Override int getMaxIdleTime() { return JiveGlobals.getIntProperty("xmpp.component.idle", 6 * 60 * 1000) / 1000; } }
/** * Returns the maximum length of a temporary session pause (in seconds) that the client MAY * request. * * @return the maximum length of a temporary session pause (in seconds) that the client MAY * request. */ public int getMaxPause() { return JiveGlobals.getIntProperty("xmpp.httpbind.client.maxpause", 300); }
/** * Returns the port that the file transfer proxy is opertating on. * * @return Returns the port that the file transfer proxy is opertating on. */ public int getProxyPort() { return JiveGlobals.getIntProperty(JIVEPROPERTY_PORT, DEFAULT_PORT); }
@Override int getMaxIdleTime() { return JiveGlobals.getIntProperty( "xmpp.server.idle", 6 * 60 * 1000 ) / 1000; } }
/** * The maximum amount of stanzas we keep, waiting for ack. * @return The maximum number of stanzas. */ private int getMaximumUnacknowledgedStanzas() { return JiveGlobals.getIntProperty( "stream.management.max-unacked", 10000 ); } }
/** * Openfire MAY limit the number of simultaneous requests the client makes with the 'requests' * attribute. The RECOMMENDED value is "2". Servers that only support polling behavior MUST * prevent clients from making simultaneous requests by setting the 'requests' attribute to a * value of "1" (however, polling is NOT RECOMMENDED). In any case, clients MUST NOT make more * simultaneous requests than specified by the Openfire. * * @return the number of simultaneous requests allowable. */ public int getMaxRequests() { return JiveGlobals.getIntProperty("xmpp.httpbind.client.requests.max", 2); }
/** * Returns the HTTP binding port which does not use SSL. * * @return the HTTP binding port which does not use SSL. */ public int getHttpBindUnsecurePort() { return JiveGlobals.getIntProperty(HTTP_BIND_PORT, HTTP_BIND_PORT_DEFAULT); }
/** * Returns the number of milliseconds to wait to connect to a remote server or read * data from a remote server. Default timeout value is 120 seconds. Configure the * <tt>xmpp.server.read.timeout</tt> global property to override the default value. * * @return the number of milliseconds to wait to connect to a remote server or read * data from a remote server. */ public static int getSocketTimeout() { return JiveGlobals.getIntProperty(ConnectionSettings.Server.SOCKET_READ_TIMEOUT, 120000); }
@Override int getMaxIdleTime() { return JiveGlobals.getIntProperty(ConnectionSettings.Client.IDLE_TIMEOUT, 6 * 60 * 1000) / 1000; }
/** * Openfire SHOULD include two additional attributes in the session creation response element, * specifying the shortest allowable polling interval and the longest allowable inactivity * period (both in seconds). Communication of these parameters enables the client to engage in * appropriate behavior (e.g., not sending empty request elements more often than desired, and * ensuring that the periods with no requests pending are never too long). * * @return the maximum allowable period over which a client can send empty requests to the * server. */ public int getPollingInterval() { return JiveGlobals.getIntProperty("xmpp.httpbind.client.requests.polling", 5); }
/** * Returns the port number for the JMX connector. This option can * be configured via the admin console or by setting the following * system property: * <pre> * xmpp.jmx.port=[port] (default: 1099) * </pre> * * @return Port number for the JMX connector */ public static int getPort() { return JiveGlobals.getIntProperty(XMPP_JMX_PORT, DEFAULT_PORT); }
/** * Seconds a polling session has to be idle to be closed. Default is 60. Sending stanzas to the * client is not considered as activity. We are only considering the connection active when the * client sends some data or hearbeats (i.e. whitespaces) to the server. The reason for this is * that sending data will fail if the connection is closed. And if the thread is blocked while * sending data (because the socket is closed) then the clean up thread will close the socket * anyway. * * @return Seconds a polling session has to be idle to be closed. */ public int getPollingInactivityTimeout() { return JiveGlobals.getIntProperty("xmpp.httpbind.client.idle.polling", 60); }
/** * Retrieve the iteration count from the database for a given username. */ private int getIterations(final String username) { try { return AuthFactory.getIterations(username); } catch (UserNotFoundException e) { return JiveGlobals.getIntProperty("sasl.scram-sha-1.iteration-count", ScramUtils.DEFAULT_ITERATION_COUNT); } }
public SessionManager() { super("Session Manager"); if (JiveGlobals.getBooleanProperty("xmpp.audit.active")) { streamIDFactory = new AuditStreamIDFactory(); } else { streamIDFactory = new BasicStreamIDFactory(); } localSessionManager = new LocalSessionManager(); conflictLimit = JiveGlobals.getIntProperty("xmpp.session.conflict-limit", 0); }
/** * Constructs a new EmailService instance. */ private EmailService() { host = JiveGlobals.getProperty("mail.smtp.host", "localhost"); port = JiveGlobals.getIntProperty("mail.smtp.port", 25); username = JiveGlobals.getProperty("mail.smtp.username"); password = JiveGlobals.getProperty("mail.smtp.password"); sslEnabled = JiveGlobals.getBooleanProperty("mail.smtp.ssl"); debugEnabled = JiveGlobals.getBooleanProperty("mail.debug"); }
SMPPSessionPool() { super( new SMPPSessionFactory() ); setMaxTotal( JiveGlobals.getIntProperty( "sms.smpp.connections.maxAmount", 1 ) ); setNumTestsPerEvictionRun( getMaxTotal() ); setMinEvictableIdleTimeMillis( JiveGlobals.getLongProperty( "sms.smpp.connections.idleMillis", 1000 * 60 * 2 ) ); if ( getMinEvictableIdleTimeMillis() > 0 ) { setTimeBetweenEvictionRunsMillis( getMinEvictableIdleTimeMillis() / 10 ); } setTestOnBorrow( true ); setTestWhileIdle( true ); }