Click here to Skip to main content
15,896,154 members
Articles / Programming Languages / C++

A Namespace Extension Toolkit

Rate me:
Please Sign up or sign in to vote.
4.78/5 (10 votes)
21 Mar 2006CPOL12 min read 85K   1.7K   42  
This article shows you how to build your own Windows Explorer interfaces to custom data.
/*
 * Automatically generated by jrpcgen 1.0.5 on 6/20/05 4:27 PM
 * jrpcgen is part of the "Remote Tea" ONC/RPC package for Java
 * See http://remotetea.sourceforge.net for details
 */
package galaxy.nfs.v2;
import org.acplt.oncrpc.*;
import java.io.IOException;

import java.net.InetAddress;

/**
 * The class <code>nfsClient</code> implements the client stub proxy
 * for the NFS_PROGRAM remote program. It provides method stubs
 * which, when called, in turn call the appropriate remote method (procedure).
 */
public class nfsClient extends OncRpcClientStub {

    /**
     * Constructs a <code>nfsClient</code> client stub proxy object
     * from which the NFS_PROGRAM remote program can be accessed.
     * @param host Internet address of host where to contact the remote program.
     * @param protocol {@link org.acplt.oncrpc.OncRpcProtocols Protocol} to be
     *   used for ONC/RPC calls.
     * @throws OncRpcException if an ONC/RPC error occurs.
     * @throws IOException if an I/O error occurs.
     */
    public nfsClient(InetAddress host, int protocol)
           throws OncRpcException, IOException {
        super(host, nfs.NFS_PROGRAM, 2, 0, protocol);
    }

    /**
     * Constructs a <code>nfsClient</code> client stub proxy object
     * from which the NFS_PROGRAM remote program can be accessed.
     * @param host Internet address of host where to contact the remote program.
     * @param port Port number at host where the remote program can be reached.
     * @param protocol {@link org.acplt.oncrpc.OncRpcProtocols Protocol} to be
     *   used for ONC/RPC calls.
     * @throws OncRpcException if an ONC/RPC error occurs.
     * @throws IOException if an I/O error occurs.
     */
    public nfsClient(InetAddress host, int port, int protocol)
           throws OncRpcException, IOException {
        super(host, nfs.NFS_PROGRAM, 2, port, protocol);
    }

    /**
     * Constructs a <code>nfsClient</code> client stub proxy object
     * from which the NFS_PROGRAM remote program can be accessed.
     * @param client ONC/RPC client connection object implementing a particular
     *   protocol.
     * @throws OncRpcException if an ONC/RPC error occurs.
     * @throws IOException if an I/O error occurs.
     */
    public nfsClient(OncRpcClient client)
           throws OncRpcException, IOException {
        super(client);
    }

    /**
     * Constructs a <code>nfsClient</code> client stub proxy object
     * from which the NFS_PROGRAM remote program can be accessed.
     * @param host Internet address of host where to contact the remote program.
     * @param program Remote program number.
     * @param version Remote program version number.
     * @param protocol {@link org.acplt.oncrpc.OncRpcProtocols Protocol} to be
     *   used for ONC/RPC calls.
     * @throws OncRpcException if an ONC/RPC error occurs.
     * @throws IOException if an I/O error occurs.
     */
    public nfsClient(InetAddress host, int program, int version, int protocol)
           throws OncRpcException, IOException {
        super(host, program, version, 0, protocol);
    }

    /**
     * Constructs a <code>nfsClient</code> client stub proxy object
     * from which the NFS_PROGRAM remote program can be accessed.
     * @param host Internet address of host where to contact the remote program.
     * @param program Remote program number.
     * @param version Remote program version number.
     * @param port Port number at host where the remote program can be reached.
     * @param protocol {@link org.acplt.oncrpc.OncRpcProtocols Protocol} to be
     *   used for ONC/RPC calls.
     * @throws OncRpcException if an ONC/RPC error occurs.
     * @throws IOException if an I/O error occurs.
     */
    public nfsClient(InetAddress host, int program, int version, int port, int protocol)
           throws OncRpcException, IOException {
        super(host, program, version, port, protocol);
    }

    /**
     * Call remote procedure NFSPROC_NULL_2.
     * @throws OncRpcException if an ONC/RPC error occurs.
     * @throws IOException if an I/O error occurs.
     */
    public void NFSPROC_NULL_2()
           throws OncRpcException, IOException {
        XdrVoid args$ = XdrVoid.XDR_VOID;
        XdrVoid result$ = XdrVoid.XDR_VOID;
        client.call(nfs.NFSPROC_NULL_2, nfs.NFS_VERSION, args$, result$);
    }

    /**
     * Call remote procedure NFSPROC_GETATTR_2.
     * @param arg1 parameter (of type nfs_fh) to the remote procedure call.
     * @return Result from remote procedure call (of type attrstat).
     * @throws OncRpcException if an ONC/RPC error occurs.
     * @throws IOException if an I/O error occurs.
     */
    public attrstat NFSPROC_GETATTR_2(nfs_fh arg1)
           throws OncRpcException, IOException {
        attrstat result$ = new attrstat();
        client.call(nfs.NFSPROC_GETATTR_2, nfs.NFS_VERSION, arg1, result$);
        return result$;
    }

    /**
     * Call remote procedure NFSPROC_SETATTR_2.
     * @param arg1 parameter (of type sattrargs) to the remote procedure call.
     * @return Result from remote procedure call (of type attrstat).
     * @throws OncRpcException if an ONC/RPC error occurs.
     * @throws IOException if an I/O error occurs.
     */
    public attrstat NFSPROC_SETATTR_2(sattrargs arg1)
           throws OncRpcException, IOException {
        attrstat result$ = new attrstat();
        client.call(nfs.NFSPROC_SETATTR_2, nfs.NFS_VERSION, arg1, result$);
        return result$;
    }

    /**
     * Call remote procedure NFSPROC_ROOT_2.
     * @throws OncRpcException if an ONC/RPC error occurs.
     * @throws IOException if an I/O error occurs.
     */
    public void NFSPROC_ROOT_2()
           throws OncRpcException, IOException {
        XdrVoid args$ = XdrVoid.XDR_VOID;
        XdrVoid result$ = XdrVoid.XDR_VOID;
        client.call(nfs.NFSPROC_ROOT_2, nfs.NFS_VERSION, args$, result$);
    }

    /**
     * Call remote procedure NFSPROC_LOOKUP_2.
     * @param arg1 parameter (of type diropargs) to the remote procedure call.
     * @return Result from remote procedure call (of type diropres).
     * @throws OncRpcException if an ONC/RPC error occurs.
     * @throws IOException if an I/O error occurs.
     */
    public diropres NFSPROC_LOOKUP_2(diropargs arg1)
           throws OncRpcException, IOException {
        diropres result$ = new diropres();
        client.call(nfs.NFSPROC_LOOKUP_2, nfs.NFS_VERSION, arg1, result$);
        return result$;
    }

    /**
     * Call remote procedure NFSPROC_READLINK_2.
     * @param arg1 parameter (of type nfs_fh) to the remote procedure call.
     * @return Result from remote procedure call (of type readlinkres).
     * @throws OncRpcException if an ONC/RPC error occurs.
     * @throws IOException if an I/O error occurs.
     */
    public readlinkres NFSPROC_READLINK_2(nfs_fh arg1)
           throws OncRpcException, IOException {
        readlinkres result$ = new readlinkres();
        client.call(nfs.NFSPROC_READLINK_2, nfs.NFS_VERSION, arg1, result$);
        return result$;
    }

    /**
     * Call remote procedure NFSPROC_READ_2.
     * @param arg1 parameter (of type readargs) to the remote procedure call.
     * @return Result from remote procedure call (of type readres).
     * @throws OncRpcException if an ONC/RPC error occurs.
     * @throws IOException if an I/O error occurs.
     */
    public readres NFSPROC_READ_2(readargs arg1)
           throws OncRpcException, IOException {
        readres result$ = new readres();
        client.call(nfs.NFSPROC_READ_2, nfs.NFS_VERSION, arg1, result$);
        return result$;
    }

    /**
     * Call remote procedure NFSPROC_WRITECACHE_2.
     * @throws OncRpcException if an ONC/RPC error occurs.
     * @throws IOException if an I/O error occurs.
     */
    public void NFSPROC_WRITECACHE_2()
           throws OncRpcException, IOException {
        XdrVoid args$ = XdrVoid.XDR_VOID;
        XdrVoid result$ = XdrVoid.XDR_VOID;
        client.call(nfs.NFSPROC_WRITECACHE_2, nfs.NFS_VERSION, args$, result$);
    }

    /**
     * Call remote procedure NFSPROC_WRITE_2.
     * @param arg1 parameter (of type writeargs) to the remote procedure call.
     * @return Result from remote procedure call (of type attrstat).
     * @throws OncRpcException if an ONC/RPC error occurs.
     * @throws IOException if an I/O error occurs.
     */
    public attrstat NFSPROC_WRITE_2(writeargs arg1)
           throws OncRpcException, IOException {
        attrstat result$ = new attrstat();
        client.call(nfs.NFSPROC_WRITE_2, nfs.NFS_VERSION, arg1, result$);
        return result$;
    }

    /**
     * Call remote procedure NFSPROC_CREATE_2.
     * @param arg1 parameter (of type createargs) to the remote procedure call.
     * @return Result from remote procedure call (of type diropres).
     * @throws OncRpcException if an ONC/RPC error occurs.
     * @throws IOException if an I/O error occurs.
     */
    public diropres NFSPROC_CREATE_2(createargs arg1)
           throws OncRpcException, IOException {
        diropres result$ = new diropres();
        client.call(nfs.NFSPROC_CREATE_2, nfs.NFS_VERSION, arg1, result$);
        return result$;
    }

    /**
     * Call remote procedure NFSPROC_REMOVE_2.
     * @param arg1 parameter (of type diropargs) to the remote procedure call.
     * @return Result from remote procedure call (of type nfsstat).
     * @throws OncRpcException if an ONC/RPC error occurs.
     * @throws IOException if an I/O error occurs.
     */
    public int NFSPROC_REMOVE_2(diropargs arg1)
           throws OncRpcException, IOException {
        XdrInt result$ = new XdrInt();
        client.call(nfs.NFSPROC_REMOVE_2, nfs.NFS_VERSION, arg1, result$);
        return result$.intValue();
    }

    /**
     * Call remote procedure NFSPROC_RENAME_2.
     * @param arg1 parameter (of type renameargs) to the remote procedure call.
     * @return Result from remote procedure call (of type nfsstat).
     * @throws OncRpcException if an ONC/RPC error occurs.
     * @throws IOException if an I/O error occurs.
     */
    public int NFSPROC_RENAME_2(renameargs arg1)
           throws OncRpcException, IOException {
        XdrInt result$ = new XdrInt();
        client.call(nfs.NFSPROC_RENAME_2, nfs.NFS_VERSION, arg1, result$);
        return result$.intValue();
    }

    /**
     * Call remote procedure NFSPROC_LINK_2.
     * @param arg1 parameter (of type linkargs) to the remote procedure call.
     * @return Result from remote procedure call (of type nfsstat).
     * @throws OncRpcException if an ONC/RPC error occurs.
     * @throws IOException if an I/O error occurs.
     */
    public int NFSPROC_LINK_2(linkargs arg1)
           throws OncRpcException, IOException {
        XdrInt result$ = new XdrInt();
        client.call(nfs.NFSPROC_LINK_2, nfs.NFS_VERSION, arg1, result$);
        return result$.intValue();
    }

    /**
     * Call remote procedure NFSPROC_SYMLINK_2.
     * @param arg1 parameter (of type symlinkargs) to the remote procedure call.
     * @return Result from remote procedure call (of type nfsstat).
     * @throws OncRpcException if an ONC/RPC error occurs.
     * @throws IOException if an I/O error occurs.
     */
    public int NFSPROC_SYMLINK_2(symlinkargs arg1)
           throws OncRpcException, IOException {
        XdrInt result$ = new XdrInt();
        client.call(nfs.NFSPROC_SYMLINK_2, nfs.NFS_VERSION, arg1, result$);
        return result$.intValue();
    }

    /**
     * Call remote procedure NFSPROC_MKDIR_2.
     * @param arg1 parameter (of type createargs) to the remote procedure call.
     * @return Result from remote procedure call (of type diropres).
     * @throws OncRpcException if an ONC/RPC error occurs.
     * @throws IOException if an I/O error occurs.
     */
    public diropres NFSPROC_MKDIR_2(createargs arg1)
           throws OncRpcException, IOException {
        diropres result$ = new diropres();
        client.call(nfs.NFSPROC_MKDIR_2, nfs.NFS_VERSION, arg1, result$);
        return result$;
    }

    /**
     * Call remote procedure NFSPROC_RMDIR_2.
     * @param arg1 parameter (of type diropargs) to the remote procedure call.
     * @return Result from remote procedure call (of type nfsstat).
     * @throws OncRpcException if an ONC/RPC error occurs.
     * @throws IOException if an I/O error occurs.
     */
    public int NFSPROC_RMDIR_2(diropargs arg1)
           throws OncRpcException, IOException {
        XdrInt result$ = new XdrInt();
        client.call(nfs.NFSPROC_RMDIR_2, nfs.NFS_VERSION, arg1, result$);
        return result$.intValue();
    }

    /**
     * Call remote procedure NFSPROC_READDIR_2.
     * @param arg1 parameter (of type readdirargs) to the remote procedure call.
     * @return Result from remote procedure call (of type readdirres).
     * @throws OncRpcException if an ONC/RPC error occurs.
     * @throws IOException if an I/O error occurs.
     */
    public readdirres NFSPROC_READDIR_2(readdirargs arg1)
           throws OncRpcException, IOException {
        readdirres result$ = new readdirres();
        client.call(nfs.NFSPROC_READDIR_2, nfs.NFS_VERSION, arg1, result$);
        return result$;
    }

    /**
     * Call remote procedure NFSPROC_STATFS_2.
     * @param arg1 parameter (of type nfs_fh) to the remote procedure call.
     * @return Result from remote procedure call (of type statfsres).
     * @throws OncRpcException if an ONC/RPC error occurs.
     * @throws IOException if an I/O error occurs.
     */
    public statfsres NFSPROC_STATFS_2(nfs_fh arg1)
           throws OncRpcException, IOException {
        statfsres result$ = new statfsres();
        client.call(nfs.NFSPROC_STATFS_2, nfs.NFS_VERSION, arg1, result$);
        return result$;
    }

}
// End of nfsClient.java

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
United States United States
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions