@NotThreadSafe 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 servletpublic javax.ws.rs.core.Response createDirectory(String path, CreateDirectoryPOptions options)
path
- the Alluxio pathoptions
- method optionspublic javax.ws.rs.core.Response createFile(String path, CreateFilePOptions options)
path
- the Alluxio pathoptions
- method optionspublic javax.ws.rs.core.Response delete(String path, DeletePOptions options)
path
- the Alluxio pathoptions
- method optionspublic javax.ws.rs.core.Response downloadFile(String path)
path
- the pathpublic javax.ws.rs.core.Response exists(String path, ExistsPOptions options)
path
- the Alluxio pathoptions
- method optionspublic javax.ws.rs.core.Response free(String path, FreePOptions options)
path
- the Alluxio pathoptions
- method optionspublic javax.ws.rs.core.Response getStatus(String path, GetStatusPOptions options)
path
- the Alluxio pathoptions
- method optionspublic javax.ws.rs.core.Response listStatus(String path, ListStatusPOptions options)
path
- the Alluxio pathoptions
- method optionspublic javax.ws.rs.core.Response mount(String path, String src, MountPOptions options)
path
- the Alluxio pathsrc
- the UFS source to mountoptions
- method optionspublic javax.ws.rs.core.Response openFile(String path, OpenFilePOptions options)
path
- the Alluxio pathoptions
- method optionspublic javax.ws.rs.core.Response rename(String path, String dst, RenamePOptions options)
path
- the Alluxio pathdst
- the destination pathoptions
- method optionspublic javax.ws.rs.core.Response setAttribute(String path, SetAttributePOptions options)
path
- the Alluxio pathoptions
- method optionspublic javax.ws.rs.core.Response unmount(String path, UnmountPOptions options)
path
- the Alluxio pathoptions
- method optionsCopyright © 2023. All Rights Reserved.