protected void checkArguments() { if (stager != null && compressor != null) { throw new IllegalArgumentException( "Both a custom BlobStager and BlobCompressor were specified -- please specify only one of these."); } if (stager != null && stagingDir != null) { throw new IllegalArgumentException( "Both a custom BlobStager and a staging directory were specified -- please specify only one of these."); } if (this.stager == null) { BlobCompressor compressor = this.compressor != null ? this.compressor : BlobCompressor.NO_COMPRESSION; File stagingDir = this.stagingDir != null ? this.stagingDir : new File( System.getProperty("java.io.tmpdir")); this.stager = new HollowFilesystemBlobStager(stagingDir.toPath(), compressor); } }
@Deprecated public HollowProducer( Publisher publisher, Announcer announcer) { this(new HollowFilesystemBlobStager(), publisher, announcer, Collections.emptyList(), new VersionMinterWithCounter(), null, 0, DEFAULT_TARGET_MAX_TYPE_SHARD_SIZE, null, new DummyBlobStorageCleaner(), new BasicSingleProducerEnforcer()); }