![JAR search and dependency download from the Maven repository](/logo.png)
com.github.agfsapi4j.GlusterFsApi Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of agfsapi4j Show documentation
Show all versions of agfsapi4j Show documentation
An alternative Gluster FS API for Java.
package com.github.agfsapi4j;
public class GlusterFsApi
{
public static final int DEFAULT_PORT = 24007;
public static final int O_RDONLY = 0x0000;
public static final int O_WRONLY = 0x0001;
public static final int O_RDWR = 0x0002;
public static final int O_CREAT = 0x0100;
public static final int O_EXCL = 0x0200;
public static final int O_TRUNC = 0x0800;
public static final int O_APPEND = 0x1000;
public static GlusterFsApi newInstance()
{
return new GlusterFsApi();
}
GlusterFsApi()
{
}
public GlusterFsSession connect(String hostName, int port, String volName)
{
GlusterFsSession session = new GlusterFsSession();
session.connect(hostName, port, volName);
return session;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy