public class TrackingFileStoreClient extends Object implements com.atlassian.filestore.client.api.FileStoreClient
FileStoreClient
which publishes
a FileStoreEvent
after any FileStore operation is performed.Modifier and Type | Method and Description |
---|---|
com.atlassian.fugue.Either<com.atlassian.filestore.client.api.Failure,com.atlassian.filestore.client.api.Success<Boolean>> |
chunkExists(com.atlassian.filestore.client.api.entity.ClientIdentity clientIdentity,
com.atlassian.filestore.client.api.entity.ChunkETag chunkETag) |
void |
close() |
com.atlassian.fugue.Either<com.atlassian.filestore.client.api.Failure,com.atlassian.filestore.client.api.Success<com.atlassian.filestore.client.api.entity.File>> |
copyFile(com.atlassian.filestore.client.api.entity.ClientIdentity clientIdentity,
String fileStoreId) |
com.atlassian.fugue.Either<com.atlassian.filestore.client.api.Failure,com.atlassian.filestore.client.api.Success<com.atlassian.filestore.client.api.entity.File>> |
createFileFromChunks(com.atlassian.filestore.client.api.entity.ClientIdentity clientIdentity,
List<com.atlassian.filestore.client.api.entity.ChunkETag> list,
com.atlassian.fugue.Option<String> name) |
static com.atlassian.filestore.client.api.FileStoreClient |
decorate(com.atlassian.filestore.client.api.FileStoreClient delegate,
com.atlassian.event.api.EventPublisher eventPublisher) |
com.atlassian.fugue.Either<com.atlassian.filestore.client.api.Failure,com.atlassian.filestore.client.api.Success<Void>> |
deleteFile(com.atlassian.filestore.client.api.entity.ClientIdentity clientIdentity,
String fileStoreId) |
com.atlassian.fugue.Either<com.atlassian.filestore.client.api.Failure,com.atlassian.filestore.client.api.Success<com.atlassian.filestore.client.api.entity.FileResult>> |
downloadArtifact(com.atlassian.filestore.client.api.entity.ClientIdentity clientIdentity,
String fileStoreId,
com.atlassian.filestore.client.api.entity.ArtifactType artifactType) |
com.atlassian.fugue.Either<com.atlassian.filestore.client.api.Failure,com.atlassian.filestore.client.api.Success<com.atlassian.filestore.client.api.entity.FileResult>> |
downloadArtifact(com.atlassian.filestore.client.api.entity.ClientIdentity clientIdentity,
String fileStoreId,
com.atlassian.filestore.client.api.entity.ArtifactType artifactType,
com.atlassian.filestore.client.api.entity.ByteRange byteRange) |
com.atlassian.fugue.Either<com.atlassian.filestore.client.api.Failure,com.atlassian.filestore.client.api.Success<InputStream>> |
downloadChunk(com.atlassian.filestore.client.api.entity.ClientIdentity clientIdentity,
com.atlassian.filestore.client.api.entity.ChunkETag chunkETag) |
com.atlassian.fugue.Either<com.atlassian.filestore.client.api.Failure,com.atlassian.filestore.client.api.Success<com.atlassian.filestore.client.api.entity.FileResult>> |
downloadOriginalFile(com.atlassian.filestore.client.api.entity.ClientIdentity clientIdentity,
String fileStoreId) |
com.atlassian.fugue.Either<com.atlassian.filestore.client.api.Failure,com.atlassian.filestore.client.api.Success<com.atlassian.filestore.client.api.entity.FileResult>> |
downloadOriginalFile(com.atlassian.filestore.client.api.entity.ClientIdentity clientIdentity,
String fileStoreId,
com.atlassian.filestore.client.api.entity.ByteRange byteRange) |
com.atlassian.fugue.Either<com.atlassian.filestore.client.api.Failure,com.atlassian.filestore.client.api.Success<com.atlassian.filestore.client.api.entity.File>> |
getFile(com.atlassian.filestore.client.api.entity.ClientIdentity clientIdentity,
String fileStoreId) |
com.atlassian.fugue.Either<com.atlassian.filestore.client.api.Failure,com.atlassian.filestore.client.api.Success<com.atlassian.filestore.client.api.entity.ClientIdentity>> |
registerClient(String name,
String description) |
com.atlassian.fugue.Either<com.atlassian.filestore.client.api.Failure,com.atlassian.filestore.client.api.Success<com.atlassian.filestore.client.api.entity.ChunkETag>> |
uploadChunk(com.atlassian.filestore.client.api.entity.ClientIdentity clientIdentity,
byte[] data,
int length) |
com.atlassian.fugue.Either<com.atlassian.filestore.client.api.Failure,com.atlassian.filestore.client.api.Success<com.atlassian.filestore.client.api.entity.File>> |
uploadFile(com.atlassian.filestore.client.api.entity.ClientIdentity clientIdentity,
InputStream inputStream,
String name) |
public static com.atlassian.filestore.client.api.FileStoreClient decorate(com.atlassian.filestore.client.api.FileStoreClient delegate, com.atlassian.event.api.EventPublisher eventPublisher)
public com.atlassian.fugue.Either<com.atlassian.filestore.client.api.Failure,com.atlassian.filestore.client.api.Success<com.atlassian.filestore.client.api.entity.File>> getFile(com.atlassian.filestore.client.api.entity.ClientIdentity clientIdentity, String fileStoreId)
getFile
in interface com.atlassian.filestore.client.api.FileStoreClient
public com.atlassian.fugue.Either<com.atlassian.filestore.client.api.Failure,com.atlassian.filestore.client.api.Success<com.atlassian.filestore.client.api.entity.File>> uploadFile(com.atlassian.filestore.client.api.entity.ClientIdentity clientIdentity, InputStream inputStream, String name)
uploadFile
in interface com.atlassian.filestore.client.api.FileStoreClient
public com.atlassian.fugue.Either<com.atlassian.filestore.client.api.Failure,com.atlassian.filestore.client.api.Success<com.atlassian.filestore.client.api.entity.FileResult>> downloadOriginalFile(com.atlassian.filestore.client.api.entity.ClientIdentity clientIdentity, String fileStoreId)
downloadOriginalFile
in interface com.atlassian.filestore.client.api.FileStoreClient
public com.atlassian.fugue.Either<com.atlassian.filestore.client.api.Failure,com.atlassian.filestore.client.api.Success<com.atlassian.filestore.client.api.entity.FileResult>> downloadOriginalFile(com.atlassian.filestore.client.api.entity.ClientIdentity clientIdentity, String fileStoreId, com.atlassian.filestore.client.api.entity.ByteRange byteRange)
downloadOriginalFile
in interface com.atlassian.filestore.client.api.FileStoreClient
public com.atlassian.fugue.Either<com.atlassian.filestore.client.api.Failure,com.atlassian.filestore.client.api.Success<com.atlassian.filestore.client.api.entity.FileResult>> downloadArtifact(com.atlassian.filestore.client.api.entity.ClientIdentity clientIdentity, String fileStoreId, com.atlassian.filestore.client.api.entity.ArtifactType artifactType)
downloadArtifact
in interface com.atlassian.filestore.client.api.FileStoreClient
public com.atlassian.fugue.Either<com.atlassian.filestore.client.api.Failure,com.atlassian.filestore.client.api.Success<com.atlassian.filestore.client.api.entity.FileResult>> downloadArtifact(com.atlassian.filestore.client.api.entity.ClientIdentity clientIdentity, String fileStoreId, com.atlassian.filestore.client.api.entity.ArtifactType artifactType, com.atlassian.filestore.client.api.entity.ByteRange byteRange)
downloadArtifact
in interface com.atlassian.filestore.client.api.FileStoreClient
public com.atlassian.fugue.Either<com.atlassian.filestore.client.api.Failure,com.atlassian.filestore.client.api.Success<Void>> deleteFile(com.atlassian.filestore.client.api.entity.ClientIdentity clientIdentity, String fileStoreId)
deleteFile
in interface com.atlassian.filestore.client.api.FileStoreClient
public com.atlassian.fugue.Either<com.atlassian.filestore.client.api.Failure,com.atlassian.filestore.client.api.Success<com.atlassian.filestore.client.api.entity.File>> copyFile(com.atlassian.filestore.client.api.entity.ClientIdentity clientIdentity, String fileStoreId)
copyFile
in interface com.atlassian.filestore.client.api.FileStoreClient
public com.atlassian.fugue.Either<com.atlassian.filestore.client.api.Failure,com.atlassian.filestore.client.api.Success<com.atlassian.filestore.client.api.entity.ClientIdentity>> registerClient(String name, String description)
registerClient
in interface com.atlassian.filestore.client.api.FileStoreClient
public com.atlassian.fugue.Either<com.atlassian.filestore.client.api.Failure,com.atlassian.filestore.client.api.Success<Boolean>> chunkExists(com.atlassian.filestore.client.api.entity.ClientIdentity clientIdentity, com.atlassian.filestore.client.api.entity.ChunkETag chunkETag)
chunkExists
in interface com.atlassian.filestore.client.api.FileStoreClient
public com.atlassian.fugue.Either<com.atlassian.filestore.client.api.Failure,com.atlassian.filestore.client.api.Success<com.atlassian.filestore.client.api.entity.ChunkETag>> uploadChunk(com.atlassian.filestore.client.api.entity.ClientIdentity clientIdentity, byte[] data, int length)
uploadChunk
in interface com.atlassian.filestore.client.api.FileStoreClient
public com.atlassian.fugue.Either<com.atlassian.filestore.client.api.Failure,com.atlassian.filestore.client.api.Success<InputStream>> downloadChunk(com.atlassian.filestore.client.api.entity.ClientIdentity clientIdentity, com.atlassian.filestore.client.api.entity.ChunkETag chunkETag)
downloadChunk
in interface com.atlassian.filestore.client.api.FileStoreClient
public com.atlassian.fugue.Either<com.atlassian.filestore.client.api.Failure,com.atlassian.filestore.client.api.Success<com.atlassian.filestore.client.api.entity.File>> createFileFromChunks(com.atlassian.filestore.client.api.entity.ClientIdentity clientIdentity, List<com.atlassian.filestore.client.api.entity.ChunkETag> list, com.atlassian.fugue.Option<String> name)
createFileFromChunks
in interface com.atlassian.filestore.client.api.FileStoreClient
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
IOException
Copyright © 2003–2017 Atlassian. All rights reserved.