public class Session extends Object
| Constructor and Description |
|---|
Session(String host,
int port,
String userName) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
close(OpenFile file) |
List<String> |
dirList(String path) |
String[] |
locate(String path,
boolean noWait,
boolean refresh) |
OpenFile |
open(String path,
int mode,
int options) |
void |
ping() |
String |
prepare(String[] path,
int options,
int priority) |
String |
protocol() |
String |
query(int queryType,
String path) |
int |
read(OpenFile file,
long fileOffset,
byte[] buffer) |
int |
read(OpenFile file,
long fileOffset,
byte[] buffer,
int bufOffset,
int size) |
void |
remove(String path) |
<V> FutureResponse<V> |
send(Operation<V> operation)
This method allows asynchronous execution of an operation.
|
FileStatus |
stat(String path) |
String |
toString() |
void |
write(OpenFile file,
long fileOffset,
byte[] buffer,
int offset,
int length) |
public Session(String host, int port, String userName) throws IOException
IOExceptionpublic void close()
throws IOException
IOExceptionpublic <V> FutureResponse<V> send(Operation<V> operation)
operation - The operation to be performedpublic List<String> dirList(String path) throws IOException
IOExceptionpublic void ping()
throws IOException
IOExceptionpublic void remove(String path) throws IOException
IOExceptionpublic FileStatus stat(String path) throws IOException
IOExceptionpublic String query(int queryType, String path) throws IOException
IOExceptionpublic String prepare(String[] path, int options, int priority) throws IOException
IOExceptionpublic String[] locate(String path, boolean noWait, boolean refresh) throws IOException
IOExceptionpublic String protocol() throws IOException
IOExceptionpublic OpenFile open(String path, int mode, int options) throws IOException
IOExceptionpublic void close(OpenFile file) throws IOException
IOExceptionpublic int read(OpenFile file, long fileOffset, byte[] buffer) throws IOException
IOExceptionpublic int read(OpenFile file, long fileOffset, byte[] buffer, int bufOffset, int size) throws IOException
IOExceptionpublic void write(OpenFile file, long fileOffset, byte[] buffer, int offset, int length) throws IOException
IOExceptionJas4pp 1.5 © Java Analysis Studio for Particle Physics