All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.hyperic.sigar.NfsClientV3 Maven / Gradle / Ivy

There is a newer version: 1.6.6-rev002
Show newest version
/*****************************************************
 * WARNING: this file was generated by -e
 * on Mon May 24 16:26:06 2010.
 * Any changes made here will be LOST.
 *****************************************************/
package org.hyperic.sigar;

import java.util.HashMap;
import java.util.Map;

/**
 * NfsClientV3 sigar class.
 */
public class NfsClientV3 implements java.io.Serializable {

    private static final long serialVersionUID = 23335L;

    public NfsClientV3() { }

    public native void gather(Sigar sigar) throws SigarException;

    /**
     * This method is not intended to be called directly.
     * use Sigar.getNfsClientV3() instead.
     * @exception SigarException on failure.
     * @see org.hyperic.sigar.Sigar#getNfsClientV3
     */
    static NfsClientV3 fetch(Sigar sigar) throws SigarException {
        NfsClientV3 nfsClientV3 = new NfsClientV3();
        nfsClientV3.gather(sigar);
        return nfsClientV3;
    }

    long _null = 0;

    /**
     * Get the null.

* Supported Platforms: Undocumented. *

* @return null */ public long getNull() { return _null; } long getattr = 0; /** * Get the getattr.

* Supported Platforms: Undocumented. *

* @return getattr */ public long getGetattr() { return getattr; } long setattr = 0; /** * Get the setattr.

* Supported Platforms: Undocumented. *

* @return setattr */ public long getSetattr() { return setattr; } long lookup = 0; /** * Get the lookup.

* Supported Platforms: Undocumented. *

* @return lookup */ public long getLookup() { return lookup; } long access = 0; /** * Get the access.

* Supported Platforms: Undocumented. *

* @return access */ public long getAccess() { return access; } long readlink = 0; /** * Get the readlink.

* Supported Platforms: Undocumented. *

* @return readlink */ public long getReadlink() { return readlink; } long read = 0; /** * Get the read.

* Supported Platforms: Undocumented. *

* @return read */ public long getRead() { return read; } long write = 0; /** * Get the write.

* Supported Platforms: Undocumented. *

* @return write */ public long getWrite() { return write; } long create = 0; /** * Get the create.

* Supported Platforms: Undocumented. *

* @return create */ public long getCreate() { return create; } long mkdir = 0; /** * Get the mkdir.

* Supported Platforms: Undocumented. *

* @return mkdir */ public long getMkdir() { return mkdir; } long symlink = 0; /** * Get the symlink.

* Supported Platforms: Undocumented. *

* @return symlink */ public long getSymlink() { return symlink; } long mknod = 0; /** * Get the mknod.

* Supported Platforms: Undocumented. *

* @return mknod */ public long getMknod() { return mknod; } long remove = 0; /** * Get the remove.

* Supported Platforms: Undocumented. *

* @return remove */ public long getRemove() { return remove; } long rmdir = 0; /** * Get the rmdir.

* Supported Platforms: Undocumented. *

* @return rmdir */ public long getRmdir() { return rmdir; } long rename = 0; /** * Get the rename.

* Supported Platforms: Undocumented. *

* @return rename */ public long getRename() { return rename; } long link = 0; /** * Get the link.

* Supported Platforms: Undocumented. *

* @return link */ public long getLink() { return link; } long readdir = 0; /** * Get the readdir.

* Supported Platforms: Undocumented. *

* @return readdir */ public long getReaddir() { return readdir; } long readdirplus = 0; /** * Get the readdirplus.

* Supported Platforms: Undocumented. *

* @return readdirplus */ public long getReaddirplus() { return readdirplus; } long fsstat = 0; /** * Get the fsstat.

* Supported Platforms: Undocumented. *

* @return fsstat */ public long getFsstat() { return fsstat; } long fsinfo = 0; /** * Get the fsinfo.

* Supported Platforms: Undocumented. *

* @return fsinfo */ public long getFsinfo() { return fsinfo; } long pathconf = 0; /** * Get the pathconf.

* Supported Platforms: Undocumented. *

* @return pathconf */ public long getPathconf() { return pathconf; } long commit = 0; /** * Get the commit.

* Supported Platforms: Undocumented. *

* @return commit */ public long getCommit() { return commit; } void copyTo(NfsClientV3 copy) { copy._null = this._null; copy.getattr = this.getattr; copy.setattr = this.setattr; copy.lookup = this.lookup; copy.access = this.access; copy.readlink = this.readlink; copy.read = this.read; copy.write = this.write; copy.create = this.create; copy.mkdir = this.mkdir; copy.symlink = this.symlink; copy.mknod = this.mknod; copy.remove = this.remove; copy.rmdir = this.rmdir; copy.rename = this.rename; copy.link = this.link; copy.readdir = this.readdir; copy.readdirplus = this.readdirplus; copy.fsstat = this.fsstat; copy.fsinfo = this.fsinfo; copy.pathconf = this.pathconf; copy.commit = this.commit; } public Map toMap() { Map map = new HashMap(); String str_null = String.valueOf(this._null); if (!"-1".equals(str_null)) map.put("_null", str_null); String strgetattr = String.valueOf(this.getattr); if (!"-1".equals(strgetattr)) map.put("Getattr", strgetattr); String strsetattr = String.valueOf(this.setattr); if (!"-1".equals(strsetattr)) map.put("Setattr", strsetattr); String strlookup = String.valueOf(this.lookup); if (!"-1".equals(strlookup)) map.put("Lookup", strlookup); String straccess = String.valueOf(this.access); if (!"-1".equals(straccess)) map.put("Access", straccess); String strreadlink = String.valueOf(this.readlink); if (!"-1".equals(strreadlink)) map.put("Readlink", strreadlink); String strread = String.valueOf(this.read); if (!"-1".equals(strread)) map.put("Read", strread); String strwrite = String.valueOf(this.write); if (!"-1".equals(strwrite)) map.put("Write", strwrite); String strcreate = String.valueOf(this.create); if (!"-1".equals(strcreate)) map.put("Create", strcreate); String strmkdir = String.valueOf(this.mkdir); if (!"-1".equals(strmkdir)) map.put("Mkdir", strmkdir); String strsymlink = String.valueOf(this.symlink); if (!"-1".equals(strsymlink)) map.put("Symlink", strsymlink); String strmknod = String.valueOf(this.mknod); if (!"-1".equals(strmknod)) map.put("Mknod", strmknod); String strremove = String.valueOf(this.remove); if (!"-1".equals(strremove)) map.put("Remove", strremove); String strrmdir = String.valueOf(this.rmdir); if (!"-1".equals(strrmdir)) map.put("Rmdir", strrmdir); String strrename = String.valueOf(this.rename); if (!"-1".equals(strrename)) map.put("Rename", strrename); String strlink = String.valueOf(this.link); if (!"-1".equals(strlink)) map.put("Link", strlink); String strreaddir = String.valueOf(this.readdir); if (!"-1".equals(strreaddir)) map.put("Readdir", strreaddir); String strreaddirplus = String.valueOf(this.readdirplus); if (!"-1".equals(strreaddirplus)) map.put("Readdirplus", strreaddirplus); String strfsstat = String.valueOf(this.fsstat); if (!"-1".equals(strfsstat)) map.put("Fsstat", strfsstat); String strfsinfo = String.valueOf(this.fsinfo); if (!"-1".equals(strfsinfo)) map.put("Fsinfo", strfsinfo); String strpathconf = String.valueOf(this.pathconf); if (!"-1".equals(strpathconf)) map.put("Pathconf", strpathconf); String strcommit = String.valueOf(this.commit); if (!"-1".equals(strcommit)) map.put("Commit", strcommit); return map; } public String toString() { return toMap().toString(); } }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy