@Override public Response run() throws IOException, URISyntaxException { String absolutePath = path.getAbsolutePath() == null ? null : URLDecoder.decode(path.getAbsolutePath(), "UTF-8"); return get(ugi, delegation, username, doAsUser, absolutePath, op, offset, length, renewer, bufferSize, xattrNames, xattrEncoding, excludeDatanodes, fsAction, snapshotName, oldSnapshotName, tokenKind, tokenService, noredirect, startAfter); } });
/** @return the absolute path. */ public final String getAbsolutePath() { final String path = getValue(); //The first / has been stripped out. return path == null? null: "/" + path; } }
LoggerFactory.getLogger(NamenodeWebHdfsMethods.class); private static final UriFsPathParam ROOT = new UriFsPathParam("");
public static final Log LOG = LogFactory.getLog(NamenodeWebHdfsMethods.class); private static final UriFsPathParam ROOT = new UriFsPathParam("");
@Override public Response run() throws IOException, URISyntaxException { return put(ugi, delegation, username, doAsUser, path.getAbsolutePath(), op, destination, owner, group, permission, unmaskedPermission, overwrite, bufferSize, replication, blockSize, modificationTime, accessTime, renameOptions, createParent, delegationTokenArgument, aclPermission, xattrName, xattrValue, xattrSetFlag, snapshotName, oldSnapshotName, excludeDatanodes, createFlagParam, noredirect, policyName); } });
/** @return the absolute path. */ public final String getAbsolutePath() { final String path = getValue(); //The first / has been stripped out. return path == null? null: "/" + path; } }
public static final Log LOG = LogFactory.getLog(NamenodeWebHdfsMethods.class); private static final UriFsPathParam ROOT = new UriFsPathParam("");
@Override public Response run() throws IOException, URISyntaxException { return post(ugi, delegation, username, doAsUser, path.getAbsolutePath(), op, concatSrcs, bufferSize, excludeDatanodes, newLength, noredirect); } });
/** @return the absolute path. */ public final String getAbsolutePath() { final String path = getValue(); //The first / has been stripped out. return path == null? null: "/" + path; } }
@Override public Response run() throws IOException { return delete(ugi, delegation, username, doAsUser, path.getAbsolutePath(), op, recursive, snapshotName); } });
@Override public Response run() throws IOException { try { return delete(ugi, delegation, username, doAsUser, path.getAbsolutePath(), op, recursive, snapshotName); } finally { reset(); } } });
@Override public Response run() throws IOException, URISyntaxException { try { return post(ugi, delegation, username, doAsUser, path.getAbsolutePath(), op, concatSrcs, bufferSize, excludeDatanodes, newLength); } finally { reset(); } } });
@Override public Response run() throws IOException, URISyntaxException { try { return get(ugi, delegation, username, doAsUser, path.getAbsolutePath(), op, offset, length, renewer, bufferSize, xattrNames, xattrEncoding, excludeDatanodes, fsAction, tokenKind, tokenService); } finally { reset(); } } });
@Override public Response run() throws IOException, URISyntaxException { try { return post(ugi, delegation, username, doAsUser, path.getAbsolutePath(), op, concatSrcs, bufferSize, excludeDatanodes, newLength); } finally { reset(); } } });
@Override public Response run() throws IOException { try { return delete(ugi, delegation, username, doAsUser, path.getAbsolutePath(), op, recursive, snapshotName); } finally { reset(); } } });
@Override public Response run() throws IOException, URISyntaxException { try { return get(ugi, delegation, username, doAsUser, path.getAbsolutePath(), op, offset, length, renewer, bufferSize, xattrNames, xattrEncoding, excludeDatanodes, fsAction, tokenKind, tokenService); } finally { reset(); } } });
@Override public Response run() throws IOException, URISyntaxException { try { return put(ugi, delegation, username, doAsUser, path.getAbsolutePath(), op, destination, owner, group, permission, overwrite, bufferSize, replication, blockSize, modificationTime, accessTime, renameOptions, createParent, delegationTokenArgument, aclPermission, xattrName, xattrValue, xattrSetFlag, snapshotName, oldSnapshotName, excludeDatanodes); } finally { reset(); } } });
@Override public Response run() throws IOException, URISyntaxException { try { return put(ugi, delegation, username, doAsUser, path.getAbsolutePath(), op, destination, owner, group, permission, overwrite, bufferSize, replication, blockSize, modificationTime, accessTime, renameOptions, createParent, delegationTokenArgument, aclPermission, xattrName, xattrValue, xattrSetFlag, snapshotName, oldSnapshotName, excludeDatanodes); } finally { reset(); } } });