public interface AtmosClient extends Closeable
Modifier and Type | Method and Description |
---|---|
URI |
createDirectory(String directoryName,
PutOptions... options) |
URI |
createFile(String parent,
AtmosObject object,
PutOptions... options) |
boolean |
deletePath(String path) |
SystemMetadata |
getSystemMetadata(String path) |
UserMetadata |
getUserMetadata(String path) |
AtmosObject |
headFile(String path) |
boolean |
isPublic(String path) |
BoundedSet<? extends DirectoryEntry> |
listDirectories(ListOptions... options) |
BoundedSet<? extends DirectoryEntry> |
listDirectory(String directoryName,
ListOptions... options) |
AtmosObject |
newObject() |
boolean |
pathExists(String path) |
AtmosObject |
readFile(String path,
GetOptions... options) |
void |
setGroupAcl(String path,
PutOptions options) |
void |
updateFile(String parent,
AtmosObject object,
PutOptions... options) |
@Provides AtmosObject newObject()
@Named(value="ListDirectory") BoundedSet<? extends DirectoryEntry> listDirectories(ListOptions... options)
@Named(value="ListDirectory") BoundedSet<? extends DirectoryEntry> listDirectory(String directoryName, ListOptions... options)
@Named(value="CreateDirectory") URI createDirectory(String directoryName, PutOptions... options)
@Nullable @Named(value="CreateObject") URI createFile(String parent, AtmosObject object, PutOptions... options)
@Named(value="UpdateObject") void updateFile(String parent, AtmosObject object, PutOptions... options)
@Named(value="ReadObject") AtmosObject readFile(String path, GetOptions... options)
@Named(value="GetObjectMetadata") AtmosObject headFile(String path)
@Named(value="GetSystemMetadata") SystemMetadata getSystemMetadata(String path)
@Named(value="GetUserMetadata") UserMetadata getUserMetadata(String path)
@Named(value="DeleteObject") boolean deletePath(String path)
@Named(value="GetObjectMetadata") boolean pathExists(String path)
@Named(value="GetObjectMetadata") boolean isPublic(String path)
@Named(value="SetObjectMetadata") void setGroupAcl(String path, PutOptions options)
Copyright © 2009-2016 The Apache Software Foundation. All Rights Reserved.