#include <jni.h>
#include "../../client/vdfs.hh"
#include "../../client/model/metadata.hh"
#include "../../client/model/block_metadata.hh"
#include <cstring>
#include <iostream>
Functions | |
JNIEXPORT jlong JNICALL | Java_com_dicl_velox_VeloxDFS_write__JJ_3BJJJ (JNIEnv *env, jobject obj, jlong fid, jlong pos, jbyteArray buf, jlong off, jlong len, jlong block_size) |
jobject | convert_jmetadata (JNIEnv *env, jobject &obj, velox::model::metadata &md) |
velox::vdfs * | get_vdfs (JNIEnv *env, jobject &obj) |
JNIEXPORT jlong JNICALL | Java_com_dicl_velox_VeloxDFS_constructVeloxDFS (JNIEnv *env, jobject obj) |
JNIEXPORT void JNICALL | Java_com_dicl_velox_VeloxDFS_destructVeloxDFS (JNIEnv *env, jobject obj) |
JNIEXPORT jlong JNICALL | Java_com_dicl_velox_VeloxDFS_open (JNIEnv *env, jobject obj, jstring str) |
JNIEXPORT jboolean JNICALL | Java_com_dicl_velox_VeloxDFS_close (JNIEnv *env, jobject obj, jlong fid) |
JNIEXPORT jboolean JNICALL | Java_com_dicl_velox_VeloxDFS_isOpen (JNIEnv *env, jobject obj, jlong fid) |
JNIEXPORT jlong JNICALL | Java_com_dicl_velox_VeloxDFS_write__JJ_3BJJ (JNIEnv *env, jobject obj, jlong fid, jlong pos, jbyteArray buf, jlong off, jlong len) |
JNIEXPORT jlong JNICALL | Java_com_dicl_velox_VeloxDFS_read (JNIEnv *env, jobject obj, jlong fid, jlong pos, jbyteArray buf, jlong off, jlong len) |
JNIEXPORT jobject JNICALL | Java_com_dicl_velox_VeloxDFS_getMetadata (JNIEnv *env, jobject obj, jlong fid, jbyte type) |
JNIEXPORT jboolean JNICALL | Java_com_dicl_velox_VeloxDFS_remove (JNIEnv *env, jobject obj, jstring fname) |
JNIEXPORT jboolean JNICALL | Java_com_dicl_velox_VeloxDFS_exists (JNIEnv *env, jobject obj, jstring fname) |
JNIEXPORT jobjectArray JNICALL | Java_com_dicl_velox_VeloxDFS_list (JNIEnv *env, jobject obj, jboolean all, jstring name) |
JNIEXPORT jboolean JNICALL | Java_com_dicl_velox_VeloxDFS_rename (JNIEnv *env, jobject obj, jstring src, jstring dst) |
JNIEXPORT jlong JNICALL | Java_com_dicl_velox_VeloxDFS_readChunk (JNIEnv *env, jobject obj, jstring chunk_name, jstring host, jbyteArray buf, jlong boff, jlong off, jlong len) |
jobject convert_jmetadata | ( | JNIEnv * | env, |
jobject & | obj, | ||
velox::model::metadata & | md | ||
) |
velox::vdfs* get_vdfs | ( | JNIEnv * | env, |
jobject & | obj | ||
) |
JNIEXPORT jboolean JNICALL Java_com_dicl_velox_VeloxDFS_close | ( | JNIEnv * | env, |
jobject | obj, | ||
jlong | fid | ||
) |
JNIEXPORT jlong JNICALL Java_com_dicl_velox_VeloxDFS_constructVeloxDFS | ( | JNIEnv * | env, |
jobject | obj | ||
) |
JNIEXPORT void JNICALL Java_com_dicl_velox_VeloxDFS_destructVeloxDFS | ( | JNIEnv * | env, |
jobject | obj | ||
) |
JNIEXPORT jboolean JNICALL Java_com_dicl_velox_VeloxDFS_exists | ( | JNIEnv * | env, |
jobject | obj, | ||
jstring | fname | ||
) |
JNIEXPORT jobject JNICALL Java_com_dicl_velox_VeloxDFS_getMetadata | ( | JNIEnv * | env, |
jobject | obj, | ||
jlong | fid, | ||
jbyte | type | ||
) |
JNIEXPORT jboolean JNICALL Java_com_dicl_velox_VeloxDFS_isOpen | ( | JNIEnv * | env, |
jobject | obj, | ||
jlong | fid | ||
) |
JNIEXPORT jobjectArray JNICALL Java_com_dicl_velox_VeloxDFS_list | ( | JNIEnv * | env, |
jobject | obj, | ||
jboolean | all, | ||
jstring | name | ||
) |
JNIEXPORT jlong JNICALL Java_com_dicl_velox_VeloxDFS_open | ( | JNIEnv * | env, |
jobject | obj, | ||
jstring | str | ||
) |
JNIEXPORT jlong JNICALL Java_com_dicl_velox_VeloxDFS_read | ( | JNIEnv * | env, |
jobject | obj, | ||
jlong | fid, | ||
jlong | pos, | ||
jbyteArray | buf, | ||
jlong | off, | ||
jlong | len | ||
) |
JNIEXPORT jlong JNICALL Java_com_dicl_velox_VeloxDFS_readChunk | ( | JNIEnv * | env, |
jobject | obj, | ||
jstring | chunk_name, | ||
jstring | host, | ||
jbyteArray | buf, | ||
jlong | boff, | ||
jlong | off, | ||
jlong | len | ||
) |
JNIEXPORT jboolean JNICALL Java_com_dicl_velox_VeloxDFS_remove | ( | JNIEnv * | env, |
jobject | obj, | ||
jstring | fname | ||
) |
JNIEXPORT jboolean JNICALL Java_com_dicl_velox_VeloxDFS_rename | ( | JNIEnv * | env, |
jobject | obj, | ||
jstring | src, | ||
jstring | dst | ||
) |
JNIEXPORT jlong JNICALL Java_com_dicl_velox_VeloxDFS_write__JJ_3BJJ | ( | JNIEnv * | env, |
jobject | obj, | ||
jlong | fid, | ||
jlong | pos, | ||
jbyteArray | buf, | ||
jlong | off, | ||
jlong | len | ||
) |
JNIEXPORT jlong JNICALL Java_com_dicl_velox_VeloxDFS_write__JJ_3BJJJ | ( | JNIEnv * | env, |
jobject | obj, | ||
jlong | fid, | ||
jlong | pos, | ||
jbyteArray | buf, | ||
jlong | off, | ||
jlong | len, | ||
jlong | block_size | ||
) |