/** * Initializes the flex cache configuration with required parameters.<p> * * @param enabled enables or disable the flexcache * @param offline enable the flexcache for the offline project * @param maxCacheBytes the max bytes for cache * @param avgCacheBytes the average bytes for cache * @param maxEntryBytes the max bytes for entry * @param maxKeys the max keys */ public void initialize( String enabled, String offline, String maxCacheBytes, String avgCacheBytes, String maxEntryBytes, String maxKeys) { setCacheEnabled(Boolean.valueOf(enabled).booleanValue()); setCacheOffline(Boolean.valueOf(offline).booleanValue()); setMaxCacheBytes(Long.parseLong(maxCacheBytes)); setAvgCacheBytes(Long.parseLong(avgCacheBytes)); setMaxEntryBytes(Integer.parseInt(maxEntryBytes)); setMaxKeys(Integer.parseInt(maxKeys)); }
m_enabled = configuration.isCacheEnabled(); m_cacheOffline = configuration.isCacheOffline(); long maxCacheBytes = configuration.getMaxCacheBytes(); long avgCacheBytes = configuration.getAvgCacheBytes(); int maxEntryBytes = configuration.getMaxEntryBytes(); int maxKeys = configuration.getMaxKeys();
m_enabled = configuration.isCacheEnabled(); m_cacheOffline = configuration.isCacheOffline(); long maxCacheBytes = configuration.getMaxCacheBytes(); long avgCacheBytes = configuration.getAvgCacheBytes(); int maxEntryBytes = configuration.getMaxEntryBytes(); int maxKeys = configuration.getMaxKeys();
String.valueOf(m_cmsFlexCacheConfiguration.isCacheEnabled())); flexcacheElement.addElement(N_CACHE_OFFLINE).addText( String.valueOf(m_cmsFlexCacheConfiguration.isCacheOffline())); flexcacheElement.addElement(N_MAXCACHEBYTES).addText( String.valueOf(m_cmsFlexCacheConfiguration.getMaxCacheBytes())); flexcacheElement.addElement(N_AVGCACHEBYTES).addText( String.valueOf(m_cmsFlexCacheConfiguration.getAvgCacheBytes())); flexcacheElement.addElement(N_MAXENTRYBYTES).addText( String.valueOf(m_cmsFlexCacheConfiguration.getMaxEntryBytes())); flexcacheElement.addElement(N_MAXKEYS).addText(String.valueOf(m_cmsFlexCacheConfiguration.getMaxKeys()));
/** * Initializes the flex cache configuration with required parameters.<p> * * @param enabled enables or disable the flexcache * @param offline enable the flexcache for the offline project * @param maxCacheBytes the max bytes for cache * @param avgCacheBytes the average bytes for cache * @param maxEntryBytes the max bytes for entry * @param maxKeys the max keys */ public void initialize( String enabled, String offline, String maxCacheBytes, String avgCacheBytes, String maxEntryBytes, String maxKeys) { setCacheEnabled(Boolean.valueOf(enabled).booleanValue()); setCacheOffline(Boolean.valueOf(offline).booleanValue()); setMaxCacheBytes(Long.parseLong(maxCacheBytes)); setAvgCacheBytes(Long.parseLong(avgCacheBytes)); setMaxEntryBytes(Integer.parseInt(maxEntryBytes)); setMaxKeys(Integer.parseInt(maxKeys)); }
String.valueOf(m_cmsFlexCacheConfiguration.isCacheEnabled())); flexcacheElement.addElement(N_CACHE_OFFLINE).addText( String.valueOf(m_cmsFlexCacheConfiguration.isCacheOffline())); flexcacheElement.addElement(N_MAXCACHEBYTES).addText( String.valueOf(m_cmsFlexCacheConfiguration.getMaxCacheBytes())); flexcacheElement.addElement(N_AVGCACHEBYTES).addText( String.valueOf(m_cmsFlexCacheConfiguration.getAvgCacheBytes())); flexcacheElement.addElement(N_MAXENTRYBYTES).addText( String.valueOf(m_cmsFlexCacheConfiguration.getMaxEntryBytes())); flexcacheElement.addElement(N_MAXKEYS).addText(String.valueOf(m_cmsFlexCacheConfiguration.getMaxKeys())); if (m_cmsFlexCacheConfiguration.getDeviceSelectorConfiguration() != null) { Element flexcacheDeviceSelectorElement = flexcacheElement.addElement(N_DEVICESELECTOR); flexcacheDeviceSelectorElement.addAttribute( A_CLASS, m_cmsFlexCacheConfiguration.getDeviceSelectorConfiguration());