@NotThreadSafe @Path(value="paths") @Produces(value="application/json") @Consumes(value="application/json") public final class PathsRestServiceHandler extends Object
Modifier and Type | Field and Description |
---|---|
static String |
CREATE_DIRECTORY |
static String |
CREATE_FILE |
static String |
DELETE |
static String |
DOWNLOAD_FILE |
static String |
EXISTS |
static String |
FREE |
static String |
GET_STATUS |
static String |
LIST_STATUS |
static String |
MOUNT |
static String |
OPEN_FILE |
static String |
PATH_PARAM |
static String |
RENAME |
static String |
SERVICE_PREFIX |
static String |
SET_ATTRIBUTE |
static String |
UNMOUNT |
Constructor and Description |
---|
PathsRestServiceHandler(javax.servlet.ServletContext context)
Constructs a new
PathsRestServiceHandler . |
Modifier and Type | Method and Description |
---|---|
javax.ws.rs.core.Response |
createDirectory(String path,
CreateDirectoryPOptions options) |
javax.ws.rs.core.Response |
createFile(String path,
CreateFilePOptions options) |
javax.ws.rs.core.Response |
delete(String path,
DeletePOptions options) |
javax.ws.rs.core.Response |
downloadFile(String path) |
javax.ws.rs.core.Response |
exists(String path,
ExistsPOptions options) |
javax.ws.rs.core.Response |
free(String path,
FreePOptions options) |
javax.ws.rs.core.Response |
getStatus(String path,
GetStatusPOptions options) |
javax.ws.rs.core.Response |
listStatus(String path,
ListStatusPOptions options) |
javax.ws.rs.core.Response |
mount(String path,
String src,
MountPOptions options) |
javax.ws.rs.core.Response |
openFile(String path,
OpenFilePOptions options) |
javax.ws.rs.core.Response |
rename(String path,
String dst,
RenamePOptions options) |
javax.ws.rs.core.Response |
setAttribute(String path,
SetAttributePOptions options) |
javax.ws.rs.core.Response |
unmount(String path,
UnmountPOptions options) |
public static final String SERVICE_PREFIX
public static final String PATH_PARAM
public static final String CREATE_DIRECTORY
public static final String CREATE_FILE
public static final String DELETE
public static final String DOWNLOAD_FILE
public static final String EXISTS
public static final String FREE
public static final String GET_STATUS
public static final String LIST_STATUS
public static final String MOUNT
public static final String OPEN_FILE
public static final String RENAME
public static final String SET_ATTRIBUTE
public static final String UNMOUNT
public PathsRestServiceHandler(@Context javax.servlet.ServletContext context)
PathsRestServiceHandler
.context
- context for the servlet@POST @Path(value="{path:.*}/create-directory") @Consumes(value="application/json") public javax.ws.rs.core.Response createDirectory(@PathParam(value="path") String path, CreateDirectoryPOptions options)
path
- the Alluxio pathoptions
- method options@POST @Path(value="{path:.*}/create-file") @Consumes(value="application/json") public javax.ws.rs.core.Response createFile(@PathParam(value="path") String path, CreateFilePOptions options)
path
- the Alluxio pathoptions
- method options@POST @Path(value="{path:.*}/delete") public javax.ws.rs.core.Response delete(@PathParam(value="path") String path, DeletePOptions options)
path
- the Alluxio pathoptions
- method options@GET @Path(value="{path:.*}/download-file") @Produces(value="application/octet-stream") public javax.ws.rs.core.Response downloadFile(@PathParam(value="path") String path)
path
- the path@POST @Path(value="{path:.*}/exists") public javax.ws.rs.core.Response exists(@PathParam(value="path") String path, ExistsPOptions options)
path
- the Alluxio pathoptions
- method options@POST @Path(value="{path:.*}/free") public javax.ws.rs.core.Response free(@PathParam(value="path") String path, FreePOptions options)
path
- the Alluxio pathoptions
- method options@POST @Path(value="{path:.*}/get-status") public javax.ws.rs.core.Response getStatus(@PathParam(value="path") String path, GetStatusPOptions options)
path
- the Alluxio pathoptions
- method options@POST @Path(value="{path:.*}/list-status") public javax.ws.rs.core.Response listStatus(@PathParam(value="path") String path, ListStatusPOptions options)
path
- the Alluxio pathoptions
- method options@POST @Path(value="{path:.*}/mount") public javax.ws.rs.core.Response mount(@PathParam(value="path") String path, @QueryParam(value="src") String src, MountPOptions options)
path
- the Alluxio pathsrc
- the UFS source to mountoptions
- method options@POST @Path(value="{path:.*}/open-file") @Produces(value="application/json") public javax.ws.rs.core.Response openFile(@PathParam(value="path") String path, OpenFilePOptions options)
path
- the Alluxio pathoptions
- method options@POST @Path(value="{path:.*}/rename") public javax.ws.rs.core.Response rename(@PathParam(value="path") String path, @QueryParam(value="dst") String dst, RenamePOptions options)
path
- the Alluxio pathdst
- the destination pathoptions
- method options@POST @Path(value="{path:.*}/set-attribute") public javax.ws.rs.core.Response setAttribute(@PathParam(value="path") String path, SetAttributePOptions options)
path
- the Alluxio pathoptions
- method options@POST @Path(value="{path:.*}/unmount") public javax.ws.rs.core.Response unmount(@PathParam(value="path") String path, UnmountPOptions options)
path
- the Alluxio pathoptions
- method optionsCopyright © 2023. All Rights Reserved.