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
IOException
public void close() throws IOException
IOException
public <V> FutureResponse<V> send(Operation<V> operation)
operation
- The operation to be performedpublic List<String> dirList(String path) throws IOException
IOException
public void ping() throws IOException
IOException
public void remove(String path) throws IOException
IOException
public FileStatus stat(String path) throws IOException
IOException
public String query(int queryType, String path) throws IOException
IOException
public String prepare(String[] path, int options, int priority) throws IOException
IOException
public String[] locate(String path, boolean noWait, boolean refresh) throws IOException
IOException
public String protocol() throws IOException
IOException
public OpenFile open(String path, int mode, int options) throws IOException
IOException
public void close(OpenFile file) throws IOException
IOException
public int read(OpenFile file, long fileOffset, byte[] buffer) throws IOException
IOException
public int read(OpenFile file, long fileOffset, byte[] buffer, int bufOffset, int size) throws IOException
IOException
public void write(OpenFile file, long fileOffset, byte[] buffer, int offset, int length) throws IOException
IOException
Jas4pp 1.5 © Java Analysis Studio for Particle Physics