@Override public IdentifiedDataSerializable createNew(Integer arg) { return new HotRestartConfig(); } };
@Override public IdentifiedDataSerializable createNew(Integer arg) { return new HotRestartConfig(); } };
@SuppressWarnings("checkstyle:executablestatementcount") public CacheSimpleConfig(CacheSimpleConfig cacheSimpleConfig) { this.name = cacheSimpleConfig.name; this.keyType = cacheSimpleConfig.keyType; this.valueType = cacheSimpleConfig.valueType; this.statisticsEnabled = cacheSimpleConfig.statisticsEnabled; this.managementEnabled = cacheSimpleConfig.managementEnabled; this.readThrough = cacheSimpleConfig.readThrough; this.writeThrough = cacheSimpleConfig.writeThrough; this.cacheLoaderFactory = cacheSimpleConfig.cacheLoaderFactory; this.cacheWriterFactory = cacheSimpleConfig.cacheWriterFactory; this.expiryPolicyFactoryConfig = cacheSimpleConfig.expiryPolicyFactoryConfig; this.cacheEntryListeners = cacheSimpleConfig.cacheEntryListeners; this.asyncBackupCount = cacheSimpleConfig.asyncBackupCount; this.backupCount = cacheSimpleConfig.backupCount; this.inMemoryFormat = cacheSimpleConfig.inMemoryFormat; // eviction config cannot be null if (cacheSimpleConfig.evictionConfig != null) { this.evictionConfig = cacheSimpleConfig.evictionConfig; } this.wanReplicationRef = cacheSimpleConfig.wanReplicationRef; this.partitionLostListenerConfigs = new ArrayList<CachePartitionLostListenerConfig>(cacheSimpleConfig.getPartitionLostListenerConfigs()); this.quorumName = cacheSimpleConfig.quorumName; this.mergePolicy = cacheSimpleConfig.mergePolicy; this.hotRestartConfig = new HotRestartConfig(cacheSimpleConfig.hotRestartConfig); this.disablePerEntryInvalidationEvents = cacheSimpleConfig.disablePerEntryInvalidationEvents; }
@SuppressWarnings("checkstyle:executablestatementcount") public CacheSimpleConfig(CacheSimpleConfig cacheSimpleConfig) { this.name = cacheSimpleConfig.name; this.keyType = cacheSimpleConfig.keyType; this.valueType = cacheSimpleConfig.valueType; this.statisticsEnabled = cacheSimpleConfig.statisticsEnabled; this.managementEnabled = cacheSimpleConfig.managementEnabled; this.readThrough = cacheSimpleConfig.readThrough; this.writeThrough = cacheSimpleConfig.writeThrough; this.cacheLoaderFactory = cacheSimpleConfig.cacheLoaderFactory; this.cacheWriterFactory = cacheSimpleConfig.cacheWriterFactory; this.expiryPolicyFactoryConfig = cacheSimpleConfig.expiryPolicyFactoryConfig; this.cacheEntryListeners = cacheSimpleConfig.cacheEntryListeners; this.asyncBackupCount = cacheSimpleConfig.asyncBackupCount; this.backupCount = cacheSimpleConfig.backupCount; this.inMemoryFormat = cacheSimpleConfig.inMemoryFormat; // eviction config cannot be null if (cacheSimpleConfig.evictionConfig != null) { this.evictionConfig = cacheSimpleConfig.evictionConfig; } this.wanReplicationRef = cacheSimpleConfig.wanReplicationRef; this.partitionLostListenerConfigs = new ArrayList<CachePartitionLostListenerConfig>(cacheSimpleConfig.getPartitionLostListenerConfigs()); this.quorumName = cacheSimpleConfig.quorumName; this.mergePolicy = cacheSimpleConfig.mergePolicy; this.hotRestartConfig = new HotRestartConfig(cacheSimpleConfig.hotRestartConfig); this.disablePerEntryInvalidationEvents = cacheSimpleConfig.disablePerEntryInvalidationEvents; }
public CacheConfig(CompleteConfiguration<K, V> configuration) { super(configuration); if (configuration instanceof CacheConfig) { final CacheConfig config = (CacheConfig) configuration; this.name = config.name; this.managerPrefix = config.managerPrefix; this.uriString = config.uriString; this.asyncBackupCount = config.asyncBackupCount; this.backupCount = config.backupCount; this.inMemoryFormat = config.inMemoryFormat; this.hotRestartConfig = new HotRestartConfig(config.hotRestartConfig); // eviction config is not allowed to be null if (config.evictionConfig != null) { this.evictionConfig = new CacheEvictionConfig(config.evictionConfig); } if (config.wanReplicationRef != null) { this.wanReplicationRef = new WanReplicationRef(config.wanReplicationRef); } if (config.partitionLostListenerConfigs != null) { this.partitionLostListenerConfigs = new ArrayList<CachePartitionLostListenerConfig>( config.partitionLostListenerConfigs); } this.quorumName = config.quorumName; this.mergePolicy = config.mergePolicy; this.disablePerEntryInvalidationEvents = config.disablePerEntryInvalidationEvents; this.serializationService = config.serializationService; this.classLoader = config.classLoader; } }
public CacheConfig(CompleteConfiguration<K, V> configuration) { super(configuration); if (configuration instanceof CacheConfig) { final CacheConfig config = (CacheConfig) configuration; this.name = config.name; this.managerPrefix = config.managerPrefix; this.uriString = config.uriString; this.asyncBackupCount = config.asyncBackupCount; this.backupCount = config.backupCount; this.inMemoryFormat = config.inMemoryFormat; this.hotRestartConfig = new HotRestartConfig(config.hotRestartConfig); // eviction config is not allowed to be null if (config.evictionConfig != null) { this.evictionConfig = new CacheEvictionConfig(config.evictionConfig); } if (config.wanReplicationRef != null) { this.wanReplicationRef = new WanReplicationRef(config.wanReplicationRef); } if (config.partitionLostListenerConfigs != null) { this.partitionLostListenerConfigs = new ArrayList<CachePartitionLostListenerConfig>( config.partitionLostListenerConfigs); } this.quorumName = config.quorumName; this.mergePolicy = config.mergePolicy; this.disablePerEntryInvalidationEvents = config.disablePerEntryInvalidationEvents; this.serializationService = config.serializationService; this.classLoader = config.classLoader; } }
private HotRestartConfig createHotRestartConfig(Node node) { HotRestartConfig hotRestartConfig = new HotRestartConfig(); Node attrEnabled = node.getAttributes().getNamedItem("enabled"); boolean enabled = getBooleanValue(getTextContent(attrEnabled)); hotRestartConfig.setEnabled(enabled); for (Node n : childElements(node)) { String name = cleanNodeName(n); if ("fsync".equals(name)) { hotRestartConfig.setFsync(getBooleanValue(getTextContent(n))); } } return hotRestartConfig; }
public static HotRestartConfig decode(ClientMessage clientMessage) { boolean enabled = clientMessage.getBoolean(); boolean fsync = clientMessage.getBoolean(); HotRestartConfig config = new HotRestartConfig(); config.setEnabled(enabled); config.setFsync(fsync); return config; }
public static HotRestartConfig decode(ClientMessage clientMessage) { boolean enabled = clientMessage.getBoolean(); boolean fsync = clientMessage.getBoolean(); HotRestartConfig config = new HotRestartConfig(); config.setEnabled(enabled); config.setFsync(fsync); return config; }
public static HotRestartConfig decode(ClientMessage clientMessage) { boolean enabled = clientMessage.getBoolean(); boolean fsync = clientMessage.getBoolean(); HotRestartConfig config = new HotRestartConfig(); config.setEnabled(enabled); config.setFsync(fsync); return config; }
private HotRestartConfig createHotRestartConfig(Node node) { HotRestartConfig hotRestartConfig = new HotRestartConfig(); Node attrEnabled = node.getAttributes().getNamedItem("enabled"); boolean enabled = getBooleanValue(getTextContent(attrEnabled)); hotRestartConfig.setEnabled(enabled); for (Node n : childElements(node)) { String name = cleanNodeName(n); if ("fsync".equals(name)) { hotRestartConfig.setFsync(getBooleanValue(getTextContent(n))); } } return hotRestartConfig; }
? new PartitioningStrategyConfig(config.getPartitioningStrategyConfig()) : null; this.quorumName = config.quorumName; this.hotRestartConfig = new HotRestartConfig(config.hotRestartConfig);
public MapConfig(MapConfig config) { this.name = config.name; this.backupCount = config.backupCount; this.asyncBackupCount = config.asyncBackupCount; this.evictionPercentage = config.evictionPercentage; this.minEvictionCheckMillis = config.minEvictionCheckMillis; this.timeToLiveSeconds = config.timeToLiveSeconds; this.maxIdleSeconds = config.maxIdleSeconds; this.maxSizeConfig = config.maxSizeConfig != null ? new MaxSizeConfig(config.maxSizeConfig) : null; this.evictionPolicy = config.evictionPolicy; this.mapEvictionPolicy = config.mapEvictionPolicy; this.inMemoryFormat = config.inMemoryFormat; this.mapStoreConfig = config.mapStoreConfig != null ? new MapStoreConfig(config.mapStoreConfig) : null; this.nearCacheConfig = config.nearCacheConfig != null ? new NearCacheConfig(config.nearCacheConfig) : null; this.readBackupData = config.readBackupData; this.cacheDeserializedValues = config.cacheDeserializedValues; this.statisticsEnabled = config.statisticsEnabled; this.mergePolicyConfig = config.mergePolicyConfig; this.wanReplicationRef = config.wanReplicationRef != null ? new WanReplicationRef(config.wanReplicationRef) : null; this.entryListenerConfigs = new ArrayList<EntryListenerConfig>(config.getEntryListenerConfigs()); this.partitionLostListenerConfigs = new ArrayList<MapPartitionLostListenerConfig>(config.getPartitionLostListenerConfigs()); this.mapIndexConfigs = new ArrayList<MapIndexConfig>(config.getMapIndexConfigs()); this.mapAttributeConfigs = new ArrayList<MapAttributeConfig>(config.getMapAttributeConfigs()); this.queryCacheConfigs = new ArrayList<QueryCacheConfig>(config.getQueryCacheConfigs()); this.partitioningStrategyConfig = config.partitioningStrategyConfig != null ? new PartitioningStrategyConfig(config.getPartitioningStrategyConfig()) : null; this.quorumName = config.quorumName; this.hotRestartConfig = new HotRestartConfig(config.hotRestartConfig); }
this.quorumName = simpleConfig.getQuorumName(); this.mergePolicy = simpleConfig.getMergePolicy(); this.hotRestartConfig = new HotRestartConfig(simpleConfig.getHotRestartConfig()); this.disablePerEntryInvalidationEvents = simpleConfig.isDisablePerEntryInvalidationEvents();
this.quorumName = simpleConfig.getQuorumName(); this.mergePolicy = simpleConfig.getMergePolicy(); this.hotRestartConfig = new HotRestartConfig(simpleConfig.getHotRestartConfig()); this.disablePerEntryInvalidationEvents = simpleConfig.isDisablePerEntryInvalidationEvents();