Package org.apache.archiva.configuration

Examples of org.apache.archiva.configuration.CacheConfiguration


   
    private ArchivaRuntimeConfiguration readArchivaRuntimeConfiguration( String prefix, Registry registry )
    {
        ArchivaRuntimeConfiguration value = new ArchivaRuntimeConfiguration();

        CacheConfiguration urlFailureCacheConfiguration = readCacheConfiguration( prefix + "urlFailureCacheConfiguration.", registry );
        value.setUrlFailureCacheConfiguration( urlFailureCacheConfiguration );
        FileLockConfiguration fileLockConfiguration = readFileLockConfiguration( prefix + "fileLockConfiguration.", registry );
        value.setFileLockConfiguration( fileLockConfiguration );

        return value;
View Full Code Here


        value.setLdapGroupMappings( ldapGroupMappings );
        java.util.Map configurationProperties = registry.getProperties( prefix + "configurationProperties" );
        value.setConfigurationProperties( configurationProperties );
        boolean useUsersCache = registry.getBoolean( prefix + "useUsersCache", value.isUseUsersCache() );
        value.setUseUsersCache( useUsersCache );
        CacheConfiguration usersCacheConfiguration = readCacheConfiguration( prefix + "usersCacheConfiguration.", registry );
        value.setUsersCacheConfiguration( usersCacheConfiguration );

        return value;
    }
View Full Code Here

        return value;
    }
   
    private CacheConfiguration readCacheConfiguration( String prefix, Registry registry )
    {
        CacheConfiguration value = new CacheConfiguration();

    int timeToIdleSeconds = registry.getInt( prefix + "timeToIdleSeconds", value.getTimeToIdleSeconds() );
        value.setTimeToIdleSeconds( timeToIdleSeconds );
    int timeToLiveSeconds = registry.getInt( prefix + "timeToLiveSeconds", value.getTimeToLiveSeconds() );
        value.setTimeToLiveSeconds( timeToLiveSeconds );
    int maxElementsInMemory = registry.getInt( prefix + "maxElementsInMemory", value.getMaxElementsInMemory() );
        value.setMaxElementsInMemory( maxElementsInMemory );
    int maxElementsOnDisk = registry.getInt( prefix + "maxElementsOnDisk", value.getMaxElementsOnDisk() );
        value.setMaxElementsOnDisk( maxElementsOnDisk );

        return value;
    }
View Full Code Here

   
    private ArchivaRuntimeConfiguration readArchivaRuntimeConfiguration( String prefix, Registry registry )
    {
        ArchivaRuntimeConfiguration value = new ArchivaRuntimeConfiguration();

        CacheConfiguration urlFailureCacheConfiguration = readCacheConfiguration( prefix + "urlFailureCacheConfiguration.", registry );
        value.setUrlFailureCacheConfiguration( urlFailureCacheConfiguration );

        return value;
    }
View Full Code Here

        value.setLdapGroupMappings( ldapGroupMappings );
        java.util.Map configurationProperties = registry.getProperties( prefix + "configurationProperties" );
        value.setConfigurationProperties( configurationProperties );
        boolean useUsersCache = registry.getBoolean( prefix + "useUsersCache", value.isUseUsersCache() );
        value.setUseUsersCache( useUsersCache );
        CacheConfiguration usersCacheConfiguration = readCacheConfiguration( prefix + "usersCacheConfiguration.", registry );
        value.setUsersCacheConfiguration( usersCacheConfiguration );

        return value;
    }
View Full Code Here

        return value;
    }
   
    private CacheConfiguration readCacheConfiguration( String prefix, Registry registry )
    {
        CacheConfiguration value = new CacheConfiguration();

    int timeToIdleSeconds = registry.getInt( prefix + "timeToIdleSeconds", value.getTimeToIdleSeconds() );
        value.setTimeToIdleSeconds( timeToIdleSeconds );
    int timeToLiveSeconds = registry.getInt( prefix + "timeToLiveSeconds", value.getTimeToLiveSeconds() );
        value.setTimeToLiveSeconds( timeToLiveSeconds );
    int maxElementsInMemory = registry.getInt( prefix + "maxElementsInMemory", value.getMaxElementsInMemory() );
        value.setMaxElementsInMemory( maxElementsInMemory );
    int maxElementsOnDisk = registry.getInt( prefix + "maxElementsOnDisk", value.getMaxElementsOnDisk() );
        value.setMaxElementsOnDisk( maxElementsOnDisk );

        return value;
    }
View Full Code Here

TOP

Related Classes of org.apache.archiva.configuration.CacheConfiguration

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.