SessionConfiguration implements Serializable { public int getTrackerLimits() { return trackerLimits; } SessionConfiguration(); void setEncryptionKey(String key); void initializeFrom(AttributeProvider provider); int getMaxInactiveInterval(); void setMaxInactiveInterval(int maxInactiveInterval); boolean isDistributable(); void setDistributable(boolean distributable); Set<String> getNonCacheable(); void setNonCacheable(Set<String> nonCacheable); void setNonCacheable(String nonCacheableAttributesCsv); ReplicationTrigger getReplicationTrigger(); void setReplicationTrigger(ReplicationTrigger replicationTrigger); boolean isLoggingMdcActive(); void setLoggingMdcActive(boolean loggingMdcActive); String getLoggingMdcKey(); void setLoggingMdcKey(String loggingMdcKey); boolean isSticky(); void setSticky(boolean sticky); boolean isTimestampSufix(); void setTimestampSufix(boolean timestamp); String getNode(); void setNode(String node); String getNamespace(); String getTrueNamespace(); void setNamespace(String namespace); String getProviderConfiguration(); void setProviderConfiguration(String providerConfiguration); String getRepositoryFactory(); void setRepositoryFactory(String repositoryFactory); String[] getSessionTracking(); void setSessionTracking(String... sessionTracking); String getSessionIdName(); void setSessionIdName(String sessionIdName); boolean isAllowedCachedSessionReuse(); void setAllowedCachedSessionReuse(boolean allowedCachedSessionReuse); static String getPropertySecured(String key, String def); String getAttribute(String key, String defaultValue); void setAttribute(String key, String value); boolean isInterceptListeners(); void setInterceptListeners(boolean interceptListeners); boolean isForceDistributable(); void setForceDistributable(boolean forceDistributable); boolean isCommitOnAllConcurrent(); void setCommitOnAllConcurrent(boolean commitOnAllConcurrent); boolean isUsingEncryption(); void setUsingEncryption(boolean usingEncryption); String getEncryptionKey(); boolean isDelegateWriter(); void setDelegateWriter(boolean delegateWriter); @Override String toString(); int getTrackerInterval(); void setTrackerInterval(int trackerInterval); int getTrackerLimits(); void setTrackerLimits(int trackerLimits); static final int DEFAULT_TRACKER_ERROR_INTERVAL_MILLISECONDS_NUM; static final String TRACKER_ERROR_INTERVAL_MILLISECONDS_KEY; static final int DEFAULT_TRACKER_ERROR_LIMITS_NUMBER; static final String TRACKER_ERROR_LIMITS_NUMBER_KEY; static final String DISTRIBUTABLE_SESSION; static final String FORCE_DISTRIBUTABLE; static final String DEFAULT_SESSION_TIMEOUT; static final String NON_CACHEABLE_ATTRIBUTES; static final String SESSION_REPLICATION_TRIGGER; static final ReplicationTrigger DEFAULT_REPLICATION_TRIGGER; static final String LOG_MDC_SESSION_ENABLED; static final String LOG_MDC_SESSION_NAME; static final String LOGGING_MDC_DEFAULT_KEY; static final String STICKY_SESSIONS; static final String DEFAULT_STICKY_SESSIONS; static final String SESSION_NAMESPACE; static final String DEFAULT_SESSION_NAMESPACE; static final String SESSION_TIMESTAMP; static final String DEFAULT_SESSION_TIMESTAMP; static final int DEFAULT_SESSION_TIMEOUT_VALUE_NUM; static final String SESSION_HOST; static final String PROVIDER_CONFIGURATION; static final String REPOSITORY_FACTORY_NAME; static final String SESSION_PROPAGATOR_NAME; static final String SESSION_ID_NAME; static final String DEFAULT_SESSION_ID_NAME; static final String NODE_ID; static final String DISABLED_SESSION; static final String REUSE_CONCURRENT_SESSION; static final String SESSION_ID_PROVIDER; static final String SESSION_ID_LENGTH; static final String DEFAULT_SESSION_ID_LENGTH; static final String INTERCEPT_LISTENERS; static final String COMMIT_ON_ALL_CONCURRENT; static final String SESSION_ENCRYPTION_KEY; static final String DELEGATE_WRITER; }
@Test public void testTrackerLimits() { System.setProperty(SessionConfiguration.TRACKER_ERROR_LIMITS_NUMBER_KEY, "1"); SessionConfiguration sc = new SessionConfiguration(); assertEquals(1, sc.getTrackerLimits()); System.getProperties().remove(SessionConfiguration.TRACKER_ERROR_LIMITS_NUMBER_KEY); }