@NotThreadSafe
@Path(value="paths")
@Produces(value="application/json")
@Consumes(value="application/json")
public final class PathsRestServiceHandler
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
CREATE_DIRECTORY |
static java.lang.String |
CREATE_FILE |
static java.lang.String |
DELETE |
static java.lang.String |
DOWNLOAD_FILE |
static java.lang.String |
EXISTS |
static java.lang.String |
FREE |
static java.lang.String |
GET_STATUS |
static java.lang.String |
LIST_STATUS |
static java.lang.String |
MOUNT |
static java.lang.String |
OPEN_FILE |
static java.lang.String |
PATH_PARAM |
static java.lang.String |
RENAME |
static java.lang.String |
SERVICE_PREFIX |
static java.lang.String |
SET_ATTRIBUTE |
static java.lang.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(java.lang.String path,
CreateDirectoryPOptions options) |
javax.ws.rs.core.Response |
createFile(java.lang.String path,
CreateFilePOptions options) |
javax.ws.rs.core.Response |
delete(java.lang.String path,
DeletePOptions options) |
javax.ws.rs.core.Response |
downloadFile(java.lang.String path) |
javax.ws.rs.core.Response |
exists(java.lang.String path,
ExistsPOptions options) |
javax.ws.rs.core.Response |
free(java.lang.String path,
FreePOptions options) |
javax.ws.rs.core.Response |
getStatus(java.lang.String path,
GetStatusPOptions options) |
javax.ws.rs.core.Response |
listStatus(java.lang.String path,
ListStatusPOptions options) |
javax.ws.rs.core.Response |
mount(java.lang.String path,
java.lang.String src,
MountPOptions options) |
javax.ws.rs.core.Response |
openFile(java.lang.String path,
OpenFilePOptions options) |
javax.ws.rs.core.Response |
rename(java.lang.String path,
java.lang.String dst,
RenamePOptions options) |
javax.ws.rs.core.Response |
setAttribute(java.lang.String path,
SetAttributePOptions options) |
javax.ws.rs.core.Response |
unmount(java.lang.String path,
UnmountPOptions options) |
public static final java.lang.String SERVICE_PREFIX
public static final java.lang.String PATH_PARAM
public static final java.lang.String CREATE_DIRECTORY
public static final java.lang.String CREATE_FILE
public static final java.lang.String DELETE
public static final java.lang.String DOWNLOAD_FILE
public static final java.lang.String EXISTS
public static final java.lang.String FREE
public static final java.lang.String GET_STATUS
public static final java.lang.String LIST_STATUS
public static final java.lang.String MOUNT
public static final java.lang.String OPEN_FILE
public static final java.lang.String RENAME
public static final java.lang.String SET_ATTRIBUTE
public static final java.lang.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")
java.lang.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")
java.lang.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")
java.lang.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")
java.lang.String path)
path - the path@POST
@Path(value="{path:.*}/exists")
public javax.ws.rs.core.Response exists(@PathParam(value="path")
java.lang.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")
java.lang.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")
java.lang.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")
java.lang.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")
java.lang.String path,
@QueryParam(value="src")
java.lang.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")
java.lang.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")
java.lang.String path,
@QueryParam(value="dst")
java.lang.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")
java.lang.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")
java.lang.String path,
UnmountPOptions options)
path - the Alluxio pathoptions - method optionsCopyright © 2022. All Rights Reserved.