@Test public void testSetComplete() { TransferStatus status = new TransferStatus(); status.setLength(1L); assertFalse(status.isComplete()); status.setOffset(1L); assertFalse(status.isComplete()); status.setComplete(); assertTrue(status.isComplete()); assertTrue(status.await()); }
@Override public void setComplete() { complete.set(true); done.countDown(); }
TransferStatus implements StreamCancelation, StreamProgress { @Override public void setComplete() { complete.set(true); done.countDown(); } }
TransferStatus implements StreamCancelation, StreamProgress { @Override public void setComplete() { complete.set(true); done.countDown(); } TransferStatus();  TransferStatus(final TransferStatus copy); }
TransferStatus implements StreamCancelation, StreamProgress { @Override public void setComplete() { complete.set(true); done.countDown(); } TransferStatus();  TransferStatus(final TransferStatus copy); boolean await(); boolean isComplete(); @Override void setComplete(); TransferStatus complete(); void setFailure(); void setCanceled(); @Override void validate(); long getOffset(); void setOffset(final long bytes); @Override void progress(final long bytes); TransferStatus skip(final long bytes); long getLength(); void setLength(final long bytes); TransferStatus length(final long bytes); boolean isExists(); void setExists(final boolean exists); TransferStatus exists(boolean exists); boolean isAppend(); void setAppend(final boolean append); TransferStatus append(final boolean append); boolean isSegment(); void setSegment(final boolean segment); TransferStatus segment(final boolean segment); void setRejected(boolean rejected); TransferStatus reject(final boolean rejected); boolean isRejected(); boolean isHidden(); void setHidden(final boolean hidden); TransferStatus hidden(final boolean hidden); Rename getRename(); Displayname getDisplayname(); TransferStatus rename(final Path renamed); TransferStatus temporary(final Path temporary); TransferStatus withDisplayname(final Path finalname); TransferStatus rename(final Local renamed); TransferStatus withDisplayname(final Local finalname); void setRename(final Rename rename); String getMime(); void setMime(final String type); TransferStatus withMime(final String type); Checksum getChecksum(); void setChecksum(final Checksum checksum); TransferStatus withChecksum(final Checksum checksum); PathAttributes getRemote(); void setRemote(PathAttributes remote); Permission getPermission(); void setPermission(Permission permission); Acl getAcl(); void setAcl(Acl acl); Encryption.Algorithm getEncryption(); void setEncryption(final Encryption.Algorithm encryption); String getStorageClass(); void setStorageClass(final String storageClass); Long getTimestamp(); void setTimestamp(Long timestamp); TransferStatus withTimestamp(Long timestamp); Map<String, String> getParameters(); void setParameters(final Map<String, String> parameters); TransferStatus withParameters(final Map<String, String> parameters); Map<String, String> getMetadata(); void setMetadata(final Map<String, String> metadata); TransferStatus withMetadata(final Map<String, String> metadata); Integer getPart(); void setPart(final Integer part); String getUrl(); void setUrl(final String url); List<TransferStatus> getSegments(); TransferStatus withSegments(final List<TransferStatus> segments); boolean isSegmented(); ByteBuffer getHeader(); void setHeader(final ByteBuffer header); TransferStatus withHeader(final ByteBuffer header); ByteBuffer getFilekey(); void setFilekey(final ByteBuffer filekey); TransferStatus withFileKey(final ByteBuffer filekey); NonceGenerator getNonces(); void setNonces(final NonceGenerator nonces); TransferStatus withNonces(final NonceGenerator nonces); Object getLockId(); void setLockId(final Object lockId); TransferStatus withLockId(final Object lockId); VersionId getVersion(); void setVersion(final VersionId version); TransferStatus withVersion(final VersionId version); @Override boolean equals(final Object o); @Override int hashCode(); @Override String toString(); }
TransferStatus implements StreamCancelation, StreamProgress { @Override public void setComplete() { complete.set(true); done.countDown(); } TransferStatus();  TransferStatus(final TransferStatus copy); boolean await(); boolean isComplete(); @Override void setComplete(); TransferStatus complete(); void setFailure(); void setCanceled(); @Override void validate(); long getOffset(); void setOffset(final long bytes); @Override void progress(final long bytes); TransferStatus skip(final long bytes); long getLength(); void setLength(final long bytes); TransferStatus length(final long bytes); boolean isExists(); void setExists(final boolean exists); TransferStatus exists(boolean exists); boolean isAppend(); void setAppend(final boolean append); TransferStatus append(final boolean append); boolean isSegment(); void setSegment(final boolean segment); TransferStatus segment(final boolean segment); void setRejected(boolean rejected); TransferStatus reject(final boolean rejected); boolean isRejected(); boolean isHidden(); void setHidden(final boolean hidden); TransferStatus hidden(final boolean hidden); Rename getRename(); Displayname getDisplayname(); TransferStatus rename(final Path renamed); TransferStatus temporary(final Path temporary); TransferStatus withDisplayname(final Path finalname); TransferStatus rename(final Local renamed); TransferStatus withDisplayname(final Local finalname); void setRename(final Rename rename); String getMime(); void setMime(final String type); TransferStatus withMime(final String type); Checksum getChecksum(); void setChecksum(final Checksum checksum); TransferStatus withChecksum(final Checksum checksum); PathAttributes getRemote(); void setRemote(PathAttributes remote); Permission getPermission(); void setPermission(Permission permission); Acl getAcl(); void setAcl(Acl acl); Encryption.Algorithm getEncryption(); void setEncryption(final Encryption.Algorithm encryption); String getStorageClass(); void setStorageClass(final String storageClass); Long getTimestamp(); void setTimestamp(Long timestamp); TransferStatus withTimestamp(Long timestamp); Map<String, String> getParameters(); void setParameters(final Map<String, String> parameters); TransferStatus withParameters(final Map<String, String> parameters); Map<String, String> getMetadata(); void setMetadata(final Map<String, String> metadata); TransferStatus withMetadata(final Map<String, String> metadata); Integer getPart(); void setPart(final Integer part); String getUrl(); void setUrl(final String url); List<TransferStatus> getSegments(); TransferStatus withSegments(final List<TransferStatus> segments); boolean isSegmented(); ByteBuffer getHeader(); void setHeader(final ByteBuffer header); TransferStatus withHeader(final ByteBuffer header); ByteBuffer getFilekey(); void setFilekey(final ByteBuffer filekey); TransferStatus withFileKey(final ByteBuffer filekey); NonceGenerator getNonces(); void setNonces(final NonceGenerator nonces); TransferStatus withNonces(final NonceGenerator nonces); Object getLockId(); void setLockId(final Object lockId); TransferStatus withLockId(final Object lockId); VersionId getVersion(); void setVersion(final VersionId version); TransferStatus withVersion(final VersionId version); @Override boolean equals(final Object o); @Override int hashCode(); @Override String toString(); static final long KILO; static final long MEGA; static final long GIGA; }