@Override public final int getSyncBackupCount() { return cache != null ? cache.getConfig().getBackupCount() : 0; }
@Override public final int getSyncBackupCount() { return cache != null ? cache.getConfig().getBackupCount() : 0; }
@Override public final int getSyncBackupCount() { return cache != null ? cache.getConfig().getBackupCount() : 0; }
@Override public final int getSyncBackupCount() { return cache.getConfig().getBackupCount(); }
@Override public final int getSyncBackupCount() { return cache != null ? cache.getConfig().getBackupCount() : 0; }
@Override public final int getSyncBackupCount() { return cache.getConfig().getBackupCount(); }
public final int getSyncBackupCount() { return recordStore != null ? recordStore.getConfig().getBackupCount() : 0; }
public final int getSyncBackupCount() { return recordStore != null ? recordStore.getConfig().getBackupCount() : 0; }
System.out.println("backup count: " + cacheConfig.getBackupCount()); System.out.println("async backup count: " + cacheConfig.getAsyncBackupCount());
/** * {@inheritDoc} * * @throws CacheNotExistsException if the cache configuration was not found */ @Override public RingbufferConfig toRingbufferConfig(EventJournalConfig config, ObjectNamespace namespace) { CacheConfig cacheConfig = getCacheService().getCacheConfig(namespace.getObjectName()); if (cacheConfig == null) { throw new CacheNotExistsException("Cache " + namespace.getObjectName() + " is already destroyed or not created yet, on " + nodeEngine.getLocalMember()); } int partitionCount = nodeEngine.getPartitionService().getPartitionCount(); return new RingbufferConfig() .setAsyncBackupCount(cacheConfig.getAsyncBackupCount()) .setBackupCount(cacheConfig.getBackupCount()) .setInMemoryFormat(InMemoryFormat.OBJECT) .setCapacity(config.getCapacity() / partitionCount) .setTimeToLiveSeconds(config.getTimeToLiveSeconds()); }
/** * {@inheritDoc} * * @throws CacheNotExistsException if the cache configuration was not found */ @Override public RingbufferConfig toRingbufferConfig(EventJournalConfig config, ObjectNamespace namespace) { CacheConfig cacheConfig = getCacheService().getCacheConfig(namespace.getObjectName()); if (cacheConfig == null) { throw new CacheNotExistsException("Cache " + namespace.getObjectName() + " is already destroyed or not created yet, on " + nodeEngine.getLocalMember()); } int partitionCount = nodeEngine.getPartitionService().getPartitionCount(); return new RingbufferConfig() .setAsyncBackupCount(cacheConfig.getAsyncBackupCount()) .setBackupCount(cacheConfig.getBackupCount()) .setInMemoryFormat(InMemoryFormat.OBJECT) .setCapacity(config.getCapacity() / partitionCount) .setTimeToLiveSeconds(config.getTimeToLiveSeconds()); }
out.writeUTF(config.getManagerPrefix()); out.writeUTF(config.getUriString()); out.writeInt(config.getBackupCount()); out.writeInt(config.getAsyncBackupCount());
out.writeUTF(config.getManagerPrefix()); out.writeUTF(config.getUriString()); out.writeInt(config.getBackupCount()); out.writeInt(config.getAsyncBackupCount());
target.setBackupCount(getBackupCount()); target.setDisablePerEntryInvalidationEvents(isDisablePerEntryInvalidationEvents()); target.setEvictionConfig(getEvictionConfig());
target.setBackupCount(getBackupCount()); target.setDisablePerEntryInvalidationEvents(isDisablePerEntryInvalidationEvents()); target.setEvictionConfig(getEvictionConfig());