@NotThreadSafe @Path(value="master/file") @Produces(value="application/json") @Deprecated public final class FileSystemMasterClientRestServiceHandler extends Object
Modifier and Type | Field and Description |
---|---|
static String |
COMPLETE_FILE
Deprecated.
|
static String |
CREATE_DIRECTORY
Deprecated.
|
static String |
CREATE_FILE
Deprecated.
|
static String |
FREE
Deprecated.
|
static String |
GET_MOUNT_POINTS
Deprecated.
|
static String |
GET_NEW_BLOCK_ID_FOR_FILE
Deprecated.
|
static String |
GET_STATUS
Deprecated.
|
static String |
LIST_STATUS
Deprecated.
|
static String |
MOUNT
Deprecated.
|
static String |
REMOVE
Deprecated.
|
static String |
RENAME
Deprecated.
|
static String |
SCHEDULE_ASYNC_PERSIST
Deprecated.
|
static String |
SERVICE_NAME
Deprecated.
|
static String |
SERVICE_PREFIX
Deprecated.
|
static String |
SERVICE_VERSION
Deprecated.
|
static String |
SET_ATTRIBUTE
Deprecated.
|
static String |
UNMOUNT
Deprecated.
|
Constructor and Description |
---|
FileSystemMasterClientRestServiceHandler(javax.servlet.ServletContext context)
Deprecated.
Constructs a new
FileSystemMasterClientRestServiceHandler . |
Modifier and Type | Method and Description |
---|---|
javax.ws.rs.core.Response |
completeFile(String path,
Long ufsLength)
Deprecated.
|
javax.ws.rs.core.Response |
createDirectory(String path,
Boolean persisted,
Boolean recursive,
Boolean allowExists)
Deprecated.
|
javax.ws.rs.core.Response |
createFile(String path,
Boolean persisted,
Boolean recursive,
Long blockSizeBytes,
Long ttl,
TtlAction ttlAction)
Deprecated.
|
javax.ws.rs.core.Response |
free(String path,
boolean recursive)
Deprecated.
|
javax.ws.rs.core.Response |
getMountPoints()
Deprecated.
|
javax.ws.rs.core.Response |
getNewBlockIdForFile(String path)
Deprecated.
|
javax.ws.rs.core.Response |
getServiceName()
Deprecated.
|
javax.ws.rs.core.Response |
getServiceVersion()
Deprecated.
|
javax.ws.rs.core.Response |
getStatus(String path)
Deprecated.
|
javax.ws.rs.core.Response |
listStatus(String path,
boolean loadDirectChildren,
String loadMetadataType)
Deprecated.
|
javax.ws.rs.core.Response |
mount(String path,
String ufsPath,
Boolean readOnly,
Boolean shared)
Deprecated.
|
javax.ws.rs.core.Response |
remove(String path,
boolean recursive)
Deprecated.
|
javax.ws.rs.core.Response |
rename(String srcPath,
String dstPath)
Deprecated.
|
javax.ws.rs.core.Response |
scheduleAsyncPersist(String path)
Deprecated.
|
javax.ws.rs.core.Response |
setAttribute(String path,
Boolean pinned,
Long ttl,
Boolean persisted,
String owner,
String group,
Short permission,
Boolean recursive,
TtlAction ttlAction)
Deprecated.
|
javax.ws.rs.core.Response |
unmount(String path)
Deprecated.
|
public static final String SERVICE_PREFIX
public static final String SERVICE_NAME
public static final String SERVICE_VERSION
public static final String COMPLETE_FILE
public static final String CREATE_DIRECTORY
public static final String CREATE_FILE
public static final String FREE
public static final String GET_MOUNT_POINTS
public static final String GET_NEW_BLOCK_ID_FOR_FILE
public static final String GET_STATUS
public static final String LIST_STATUS
public static final String MOUNT
public static final String REMOVE
public static final String RENAME
public static final String SCHEDULE_ASYNC_PERSIST
public static final String SET_ATTRIBUTE
public static final String UNMOUNT
public FileSystemMasterClientRestServiceHandler(@Context javax.servlet.ServletContext context)
FileSystemMasterClientRestServiceHandler
.context
- context for the servlet@GET @Path(value="service_name") public javax.ws.rs.core.Response getServiceName()
@GET @Path(value="service_version") public javax.ws.rs.core.Response getServiceVersion()
@POST @Path(value="complete_file") public javax.ws.rs.core.Response completeFile(@QueryParam(value="path") String path, @QueryParam(value="ufsLength") Long ufsLength)
path
- the file pathufsLength
- the length of the file in under file system@POST @Path(value="create_directory") public javax.ws.rs.core.Response createDirectory(@QueryParam(value="path") String path, @QueryParam(value="persisted") Boolean persisted, @QueryParam(value="recursive") Boolean recursive, @QueryParam(value="allowExists") Boolean allowExists)
path
- the file pathpersisted
- whether directory should be persistedrecursive
- whether parent directories should be created if they do not already existallowExists
- whether the operation should succeed even if the directory already exists@POST @Path(value="create_file") public javax.ws.rs.core.Response createFile(@QueryParam(value="path") String path, @QueryParam(value="persisted") Boolean persisted, @QueryParam(value="recursive") Boolean recursive, @QueryParam(value="blockSizeBytes") Long blockSizeBytes, @QueryParam(value="ttl") Long ttl, @QueryParam(value="ttlAction") TtlAction ttlAction)
path
- the file pathpersisted
- whether directory should be persistedrecursive
- whether parent directories should be created if they do not already existblockSizeBytes
- the target block size in bytesttl
- the time-to-live (in milliseconds)ttlAction
- action to take after TTL is expired@POST @Path(value="new_block_id_for_file") public javax.ws.rs.core.Response getNewBlockIdForFile(@QueryParam(value="path") String path)
path
- the file path@GET @Path(value="status") public javax.ws.rs.core.Response getStatus(@QueryParam(value="path") String path)
path
- the file path@POST @Path(value="free") public javax.ws.rs.core.Response free(@QueryParam(value="path") String path, @QueryParam(value="recursive") boolean recursive)
path
- the pathrecursive
- whether the path should be freed recursively@GET @Path(value="list_status") public javax.ws.rs.core.Response listStatus(@QueryParam(value="path") String path, @Deprecated @QueryParam(value="loadDirectChildren") boolean loadDirectChildren, @DefaultValue(value="") @QueryParam(value="loadMetadataType") String loadMetadataType)
path
- the file pathloadDirectChildren
- whether to load direct children of pathloadMetadataType
- the LoadMetadataType
. It overrides loadDirectChildren if it
is set.@POST @Path(value="mount") public javax.ws.rs.core.Response mount(@QueryParam(value="path") String path, @QueryParam(value="ufsPath") String ufsPath, @QueryParam(value="readOnly") Boolean readOnly, @QueryParam(value="shared") Boolean shared)
path
- the alluxio mount pointufsPath
- the UFS path to mountreadOnly
- whether to make the mount option read onlyshared
- whether to make the mount option shared with all Alluxio users@GET @Path(value="mount_points") public javax.ws.rs.core.Response getMountPoints()
@POST @Path(value="remove") public javax.ws.rs.core.Response remove(@QueryParam(value="path") String path, @QueryParam(value="recursive") boolean recursive)
path
- the path to removerecursive
- whether to remove paths recursively@POST @Path(value="rename") public javax.ws.rs.core.Response rename(@QueryParam(value="srcPath") String srcPath, @QueryParam(value="dstPath") String dstPath)
srcPath
- the source pathdstPath
- the destination path@POST @Path(value="schedule_async_persist") public javax.ws.rs.core.Response scheduleAsyncPersist(@QueryParam(value="path") String path)
path
- the file path@POST @Path(value="set_attribute") public javax.ws.rs.core.Response setAttribute(@QueryParam(value="path") String path, @QueryParam(value="pinned") Boolean pinned, @QueryParam(value="ttl") Long ttl, @QueryParam(value="persisted") Boolean persisted, @QueryParam(value="owner") String owner, @QueryParam(value="group") String group, @QueryParam(value="permission") Short permission, @QueryParam(value="recursive") Boolean recursive, @QueryParam(value="ttxAction") TtlAction ttlAction)
path
- the file pathpinned
- the pinned flag value to usettl
- the time-to-live (in seconds) to usepersisted
- the persisted flag value to useowner
- the file ownergroup
- the file grouppermission
- the file permission bitsrecursive
- whether the attribute should be set recursivelyttlAction
- action to take after TTL is expired@POST @Path(value="unmount") public javax.ws.rs.core.Response unmount(@QueryParam(value="path") String path)
path
- the file pathCopyright © 2023. All Rights Reserved.