Package org.jclouds.atmos
Interface AtmosClient
-
- All Superinterfaces:
AutoCloseable
,Closeable
@Path("/rest/namespace") public interface AtmosClient extends Closeable
Provides access to EMC Atmos Online Storage resources via their REST API.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method 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)
-
-
-
Method Detail
-
newObject
@Provides AtmosObject newObject()
-
listDirectories
@Named("ListDirectory") @GET @Path("/") @Consumes("text/xml") BoundedSet<? extends DirectoryEntry> listDirectories(ListOptions... options)
-
listDirectory
@Named("ListDirectory") @GET @Path("/{directoryName}/") @Consumes("text/xml") BoundedSet<? extends DirectoryEntry> listDirectory(@PathParam("directoryName") String directoryName, ListOptions... options)
-
createDirectory
@Named("CreateDirectory") @POST @Path("/{directoryName}/") @Produces("application/octet-stream") @Consumes("*/*") URI createDirectory(@PathParam("directoryName") String directoryName, PutOptions... options)
-
createFile
@Nullable @Named("CreateObject") @POST @Path("/{parent}/{name}") @Consumes("*/*") URI createFile(@PathParam("parent") String parent, @PathParam("name") AtmosObject object, PutOptions... options)
-
updateFile
@Named("UpdateObject") @PUT @Path("/{parent}/{name}") @Consumes("*/*") void updateFile(@PathParam("parent") String parent, @PathParam("name") AtmosObject object, PutOptions... options)
-
readFile
@Named("ReadObject") @GET @Path("/{path}") @Consumes("*/*") AtmosObject readFile(@PathParam("path") String path, GetOptions... options)
-
headFile
@Named("GetObjectMetadata") @HEAD @Path("/{path}") @Consumes("*/*") AtmosObject headFile(@PathParam("path") String path)
-
getSystemMetadata
@Named("GetSystemMetadata") @HEAD @Path("/{path}") @Consumes("*/*") SystemMetadata getSystemMetadata(@PathParam("path") String path)
-
getUserMetadata
@Named("GetUserMetadata") @HEAD @Path("/{path}") @Consumes("*/*") UserMetadata getUserMetadata(@PathParam("path") String path)
-
deletePath
@Named("DeleteObject") @DELETE @Path("/{path}") @Consumes("*/*") boolean deletePath(@PathParam("path") String path)
-
pathExists
@Named("GetObjectMetadata") @HEAD @Path("/{path}") @Consumes("*/*") boolean pathExists(@PathParam("path") String path)
-
isPublic
@Named("GetObjectMetadata") @HEAD @Path("/{path}") @Consumes("*/*") boolean isPublic(@PathParam("path") String path)
-
setGroupAcl
@Named("SetObjectMetadata") @POST @Path("/{path}") @Produces("application/octet-stream") @Consumes("*/*") void setGroupAcl(@PathParam("path") String path, PutOptions options)
-
-