@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 |
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,
CreateDirectoryOptions options) |
javax.ws.rs.core.Response |
createFile(String path,
CreateFileOptions options) |
javax.ws.rs.core.Response |
delete(String path,
DeleteOptions options) |
javax.ws.rs.core.Response |
exists(String path,
ExistsOptions options) |
javax.ws.rs.core.Response |
free(String path,
FreeOptions options) |
javax.ws.rs.core.Response |
getStatus(String path,
GetStatusOptions options) |
javax.ws.rs.core.Response |
listStatus(String path,
ListStatusOptions options) |
javax.ws.rs.core.Response |
mount(String path,
String src,
MountOptions options) |
javax.ws.rs.core.Response |
openFile(String path,
OpenFileOptions options) |
javax.ws.rs.core.Response |
rename(String path,
String dst,
RenameOptions options) |
javax.ws.rs.core.Response |
setAttribute(String path,
SetAttributeOptions options) |
javax.ws.rs.core.Response |
unmount(String path,
UnmountOptions 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 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, CreateDirectoryOptions 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, CreateFileOptions options)
path
- the Alluxio pathoptions
- method options@POST @Path(value="{path:.*}/delete") public javax.ws.rs.core.Response delete(@PathParam(value="path") String path, DeleteOptions options)
path
- the Alluxio pathoptions
- method options@POST @Path(value="{path:.*}/exists") public javax.ws.rs.core.Response exists(@PathParam(value="path") String path, ExistsOptions options)
path
- the Alluxio pathoptions
- method options@POST @Path(value="{path:.*}/free") public javax.ws.rs.core.Response free(@PathParam(value="path") String path, FreeOptions 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, GetStatusOptions 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, ListStatusOptions 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, MountOptions 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, OpenFileOptions 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, RenameOptions 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, SetAttributeOptions options)
path
- the Alluxio pathoptions
- method options@POST @Path(value="{path:.*}/unmount") public javax.ws.rs.core.Response unmount(@PathParam(value="path") String path, UnmountOptions options)
path
- the Alluxio pathoptions
- method optionsCopyright © 2023. All Rights Reserved.