com.distinct.rpc.rpcbind
Class rpcbcl

java.lang.Object
  |
  +--com.distinct.rpc.JRPCClient
        |
        +--com.distinct.rpc.rpcbind.rpcbcl
All Implemented Interfaces:
java.io.Serializable

public class rpcbcl
extends JRPCClient

This class was automatically generated by Jrpcgen from the RPC/XDR file "rpcbind.x"
. It defines the client interface to a server implementing the "RPCBPROG" interface.

See Also:
Serialized Form

Field Summary
static int RPCB_PORT
           
static int RPCBPROC_BCAST
           
static int RPCBPROC_CALLIT
           
static int RPCBPROC_DUMP
           
static int RPCBPROC_GETADDR
           
static int RPCBPROC_GETADDRLIST
           
static int RPCBPROC_GETSTAT
           
static int RPCBPROC_GETTIME
           
static int RPCBPROC_GETVERSADDR
           
static int RPCBPROC_INDIRECT
           
static int RPCBPROC_SET
           
static int RPCBPROC_TADDR2UADDR
           
static int RPCBPROC_UADDR2TADDR
           
static int RPCBPROC_UNSET
           
static int RPCBPROG
          Program ID of the interface.
static int RPCBSTAT_HIGHPROC
           
static int RPCBVERS
          Version ID of the interface.
static int RPCBVERS_2_STAT
           
static int RPCBVERS_3_STAT
           
static int RPCBVERS_4_STAT
           
static int RPCBVERS_STAT
           
static int RPCBVERS4
          Version ID of the interface.
 
Constructor Summary
rpcbcl(ClientGeneric protocol)
          Creates an RPC client for a server that implements the "rpcbcl" interface.
rpcbcl(int vers, java.net.InetAddress host, boolean stream)
          Creates and connects an RPC client for a server that implements the "rpcbcl" interface.
rpcbcl(int vers, java.net.InetAddress host, int port, boolean stream)
          Creates and connects an RPC client for a server that implements the "rpcbcl" interface.
 
Method Summary
 rpcb_rmtcallres RPCBPROC_BCAST_4(rpcb_rmtcallargs arg)
          Stub method that invokes the server function "RPCBPROC_BCAST" (version 4).
 rpcb_rmtcallres RPCBPROC_CALLIT_3(rpcb_rmtcallargs arg)
          Stub method that invokes the server function "RPCBPROC_CALLIT" (version 3).
 rpcblist_ptr RPCBPROC_DUMP_3()
          Stub method that invokes the server function "RPCBPROC_DUMP" (version 3).
 rpcblist_ptr RPCBPROC_DUMP_4()
          Stub method that invokes the server function "RPCBPROC_DUMP" (version 4).
 java.lang.String RPCBPROC_GETADDR_3(rpcb arg)
          Stub method that invokes the server function "RPCBPROC_GETADDR" (version 3).
 java.lang.String RPCBPROC_GETADDR_4(rpcb arg)
          Stub method that invokes the server function "RPCBPROC_GETADDR" (version 4).
 rpcb_entry_list_ptr RPCBPROC_GETADDRLIST_4(rpcb arg)
          Stub method that invokes the server function "RPCBPROC_GETADDRLIST" (version 4).
 rpcb_stat_byvers RPCBPROC_GETSTAT_4()
          Stub method that invokes the server function "RPCBPROC_GETSTAT" (version 4).
 int RPCBPROC_GETTIME_3()
          Stub method that invokes the server function "RPCBPROC_GETTIME" (version 3).
 int RPCBPROC_GETTIME_4()
          Stub method that invokes the server function "RPCBPROC_GETTIME" (version 4).
 java.lang.String RPCBPROC_GETVERSADDR_4(rpcb arg)
          Stub method that invokes the server function "RPCBPROC_GETVERSADDR" (version 4).
 rpcb_rmtcallres RPCBPROC_INDIRECT_4(rpcb_rmtcallargs arg)
          Stub method that invokes the server function "RPCBPROC_INDIRECT" (version 4).
 boolean RPCBPROC_SET_3(rpcb arg)
          Stub method that invokes the server function "RPCBPROC_SET" (version 3).
 boolean RPCBPROC_SET_4(rpcb arg)
          Stub method that invokes the server function "RPCBPROC_SET" (version 4).
 java.lang.String RPCBPROC_TADDR2UADDR_3(netbuf arg)
          Stub method that invokes the server function "RPCBPROC_TADDR2UADDR" (version 3).
 java.lang.String RPCBPROC_TADDR2UADDR_4(netbuf arg)
          Stub method that invokes the server function "RPCBPROC_TADDR2UADDR" (version 4).
 netbuf RPCBPROC_UADDR2TADDR_3(java.lang.String arg)
          Stub method that invokes the server function "RPCBPROC_UADDR2TADDR" (version 3).
 netbuf RPCBPROC_UADDR2TADDR_4(java.lang.String arg)
          Stub method that invokes the server function "RPCBPROC_UADDR2TADDR" (version 4).
 boolean RPCBPROC_UNSET_3(rpcb arg)
          Stub method that invokes the server function "RPCBPROC_UNSET" (version 3).
 boolean RPCBPROC_UNSET_4(rpcb arg)
          Stub method that invokes the server function "RPCBPROC_UNSET" (version 4).
 
Methods inherited from class com.distinct.rpc.JRPCClient
BroadcastCall, Call, CloseClient, GetClient, SetClient, SetResend, SetTimeout
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

RPCB_PORT

public static final int RPCB_PORT
See Also:
Constant Field Values

RPCBSTAT_HIGHPROC

public static final int RPCBSTAT_HIGHPROC
See Also:
Constant Field Values

RPCBVERS_STAT

public static final int RPCBVERS_STAT
See Also:
Constant Field Values

RPCBVERS_4_STAT

public static final int RPCBVERS_4_STAT
See Also:
Constant Field Values

RPCBVERS_3_STAT

public static final int RPCBVERS_3_STAT
See Also:
Constant Field Values

RPCBVERS_2_STAT

public static final int RPCBVERS_2_STAT
See Also:
Constant Field Values

RPCBPROG

public static final int RPCBPROG
Program ID of the interface.

See Also:
Constant Field Values

RPCBVERS

public static final int RPCBVERS
Version ID of the interface.

See Also:
Constant Field Values

RPCBPROC_SET

public static final int RPCBPROC_SET
See Also:
Constant Field Values

RPCBPROC_UNSET

public static final int RPCBPROC_UNSET
See Also:
Constant Field Values

RPCBPROC_GETADDR

public static final int RPCBPROC_GETADDR
See Also:
Constant Field Values

RPCBPROC_DUMP

public static final int RPCBPROC_DUMP
See Also:
Constant Field Values

RPCBPROC_CALLIT

public static final int RPCBPROC_CALLIT
See Also:
Constant Field Values

RPCBPROC_GETTIME

public static final int RPCBPROC_GETTIME
See Also:
Constant Field Values

RPCBPROC_UADDR2TADDR

public static final int RPCBPROC_UADDR2TADDR
See Also:
Constant Field Values

RPCBPROC_TADDR2UADDR

public static final int RPCBPROC_TADDR2UADDR
See Also:
Constant Field Values

RPCBVERS4

public static final int RPCBVERS4
Version ID of the interface.

See Also:
Constant Field Values

RPCBPROC_BCAST

public static final int RPCBPROC_BCAST
See Also:
Constant Field Values

RPCBPROC_GETVERSADDR

public static final int RPCBPROC_GETVERSADDR
See Also:
Constant Field Values

RPCBPROC_INDIRECT

public static final int RPCBPROC_INDIRECT
See Also:
Constant Field Values

RPCBPROC_GETADDRLIST

public static final int RPCBPROC_GETADDRLIST
See Also:
Constant Field Values

RPCBPROC_GETSTAT

public static final int RPCBPROC_GETSTAT
See Also:
Constant Field Values
Constructor Detail

rpcbcl

public rpcbcl(int vers,
              java.net.InetAddress host,
              boolean stream)
       throws RPCError
Creates and connects an RPC client for a server that implements the "rpcbcl" interface. Calls the remote Portmapper in order to get the port of the server.

Parameters:
vers - The program version of the server as defined in the .x IDL file.
host - The host on which the server lives.
stream - true for a TCP connection, false for UDP.
Throws:
RPCError - When the calls fails for any reason.

rpcbcl

public rpcbcl(int vers,
              java.net.InetAddress host,
              int port,
              boolean stream)
       throws RPCError
Creates and connects an RPC client for a server that implements the "rpcbcl" interface. The client is connected it to a server with a known port. (No interaction with a portmapper)

Parameters:
vers - The program version of the server as defined in the .x IDL file.
host - The host on which the server lives.
port - The port on which the server listens.
stream - true for a TCP connection, false for UDP.
Throws:
RPCError - When the calls fails for any reason.

rpcbcl

public rpcbcl(ClientGeneric protocol)
Creates an RPC client for a server that implements the "rpcbcl" interface. It initializes it with a externally created protocol client object.

Parameters:
protocol - The protocol object that implements the client connection.
Method Detail

RPCBPROC_SET_3

public boolean RPCBPROC_SET_3(rpcb arg)
                       throws RPCError,
                              java.io.IOException
Stub method that invokes the server function "RPCBPROC_SET" (version 3).

Parameters:
arg - The input parameter of the RPC.
Returns:
The return value of the RPC.
Throws:
java.io.IOException - When the RPC fails because the socket connetion fails.
RPCError - When the RPC fails for any other reason.

RPCBPROC_UNSET_3

public boolean RPCBPROC_UNSET_3(rpcb arg)
                         throws RPCError,
                                java.io.IOException
Stub method that invokes the server function "RPCBPROC_UNSET" (version 3).

Parameters:
arg - The input parameter of the RPC.
Returns:
The return value of the RPC.
Throws:
java.io.IOException - When the RPC fails because the socket connetion fails.
RPCError - When the RPC fails for any other reason.

RPCBPROC_GETADDR_3

public java.lang.String RPCBPROC_GETADDR_3(rpcb arg)
                                    throws RPCError,
                                           java.io.IOException
Stub method that invokes the server function "RPCBPROC_GETADDR" (version 3).

Parameters:
arg - The input parameter of the RPC.
Returns:
The return value of the RPC.
Throws:
java.io.IOException - When the RPC fails because the socket connetion fails.
RPCError - When the RPC fails for any other reason.

RPCBPROC_DUMP_3

public rpcblist_ptr RPCBPROC_DUMP_3()
                             throws RPCError,
                                    java.io.IOException
Stub method that invokes the server function "RPCBPROC_DUMP" (version 3).

Returns:
The return value of the RPC.
Throws:
java.io.IOException - When the RPC fails because the socket connetion fails.
RPCError - When the RPC fails for any other reason.

RPCBPROC_CALLIT_3

public rpcb_rmtcallres RPCBPROC_CALLIT_3(rpcb_rmtcallargs arg)
                                  throws RPCError,
                                         java.io.IOException
Stub method that invokes the server function "RPCBPROC_CALLIT" (version 3).

Parameters:
arg - The input parameter of the RPC.
Returns:
The return value of the RPC.
Throws:
java.io.IOException - When the RPC fails because the socket connetion fails.
RPCError - When the RPC fails for any other reason.

RPCBPROC_GETTIME_3

public int RPCBPROC_GETTIME_3()
                       throws RPCError,
                              java.io.IOException
Stub method that invokes the server function "RPCBPROC_GETTIME" (version 3).

Returns:
The return value of the RPC.
Throws:
java.io.IOException - When the RPC fails because the socket connetion fails.
RPCError - When the RPC fails for any other reason.

RPCBPROC_UADDR2TADDR_3

public netbuf RPCBPROC_UADDR2TADDR_3(java.lang.String arg)
                              throws RPCError,
                                     java.io.IOException
Stub method that invokes the server function "RPCBPROC_UADDR2TADDR" (version 3).

Parameters:
arg - The input parameter of the RPC.
Returns:
The return value of the RPC.
Throws:
java.io.IOException - When the RPC fails because the socket connetion fails.
RPCError - When the RPC fails for any other reason.

RPCBPROC_TADDR2UADDR_3

public java.lang.String RPCBPROC_TADDR2UADDR_3(netbuf arg)
                                        throws RPCError,
                                               java.io.IOException
Stub method that invokes the server function "RPCBPROC_TADDR2UADDR" (version 3).

Parameters:
arg - The input parameter of the RPC.
Returns:
The return value of the RPC.
Throws:
java.io.IOException - When the RPC fails because the socket connetion fails.
RPCError - When the RPC fails for any other reason.

RPCBPROC_SET_4

public boolean RPCBPROC_SET_4(rpcb arg)
                       throws RPCError,
                              java.io.IOException
Stub method that invokes the server function "RPCBPROC_SET" (version 4).

Parameters:
arg - The input parameter of the RPC.
Returns:
The return value of the RPC.
Throws:
java.io.IOException - When the RPC fails because the socket connetion fails.
RPCError - When the RPC fails for any other reason.

RPCBPROC_UNSET_4

public boolean RPCBPROC_UNSET_4(rpcb arg)
                         throws RPCError,
                                java.io.IOException
Stub method that invokes the server function "RPCBPROC_UNSET" (version 4).

Parameters:
arg - The input parameter of the RPC.
Returns:
The return value of the RPC.
Throws:
java.io.IOException - When the RPC fails because the socket connetion fails.
RPCError - When the RPC fails for any other reason.

RPCBPROC_GETADDR_4

public java.lang.String RPCBPROC_GETADDR_4(rpcb arg)
                                    throws RPCError,
                                           java.io.IOException
Stub method that invokes the server function "RPCBPROC_GETADDR" (version 4).

Parameters:
arg - The input parameter of the RPC.
Returns:
The return value of the RPC.
Throws:
java.io.IOException - When the RPC fails because the socket connetion fails.
RPCError - When the RPC fails for any other reason.

RPCBPROC_DUMP_4

public rpcblist_ptr RPCBPROC_DUMP_4()
                             throws RPCError,
                                    java.io.IOException
Stub method that invokes the server function "RPCBPROC_DUMP" (version 4).

Returns:
The return value of the RPC.
Throws:
java.io.IOException - When the RPC fails because the socket connetion fails.
RPCError - When the RPC fails for any other reason.

RPCBPROC_BCAST_4

public rpcb_rmtcallres RPCBPROC_BCAST_4(rpcb_rmtcallargs arg)
                                 throws RPCError,
                                        java.io.IOException
Stub method that invokes the server function "RPCBPROC_BCAST" (version 4).

Parameters:
arg - The input parameter of the RPC.
Returns:
The return value of the RPC.
Throws:
java.io.IOException - When the RPC fails because the socket connetion fails.
RPCError - When the RPC fails for any other reason.

RPCBPROC_GETTIME_4

public int RPCBPROC_GETTIME_4()
                       throws RPCError,
                              java.io.IOException
Stub method that invokes the server function "RPCBPROC_GETTIME" (version 4).

Returns:
The return value of the RPC.
Throws:
java.io.IOException - When the RPC fails because the socket connetion fails.
RPCError - When the RPC fails for any other reason.

RPCBPROC_UADDR2TADDR_4

public netbuf RPCBPROC_UADDR2TADDR_4(java.lang.String arg)
                              throws RPCError,
                                     java.io.IOException
Stub method that invokes the server function "RPCBPROC_UADDR2TADDR" (version 4).

Parameters:
arg - The input parameter of the RPC.
Returns:
The return value of the RPC.
Throws:
java.io.IOException - When the RPC fails because the socket connetion fails.
RPCError - When the RPC fails for any other reason.

RPCBPROC_TADDR2UADDR_4

public java.lang.String RPCBPROC_TADDR2UADDR_4(netbuf arg)
                                        throws RPCError,
                                               java.io.IOException
Stub method that invokes the server function "RPCBPROC_TADDR2UADDR" (version 4).

Parameters:
arg - The input parameter of the RPC.
Returns:
The return value of the RPC.
Throws:
java.io.IOException - When the RPC fails because the socket connetion fails.
RPCError - When the RPC fails for any other reason.

RPCBPROC_GETVERSADDR_4

public java.lang.String RPCBPROC_GETVERSADDR_4(rpcb arg)
                                        throws RPCError,
                                               java.io.IOException
Stub method that invokes the server function "RPCBPROC_GETVERSADDR" (version 4).

Parameters:
arg - The input parameter of the RPC.
Returns:
The return value of the RPC.
Throws:
java.io.IOException - When the RPC fails because the socket connetion fails.
RPCError - When the RPC fails for any other reason.

RPCBPROC_INDIRECT_4

public rpcb_rmtcallres RPCBPROC_INDIRECT_4(rpcb_rmtcallargs arg)
                                    throws RPCError,
                                           java.io.IOException
Stub method that invokes the server function "RPCBPROC_INDIRECT" (version 4).

Parameters:
arg - The input parameter of the RPC.
Returns:
The return value of the RPC.
Throws:
java.io.IOException - When the RPC fails because the socket connetion fails.
RPCError - When the RPC fails for any other reason.

RPCBPROC_GETADDRLIST_4

public rpcb_entry_list_ptr RPCBPROC_GETADDRLIST_4(rpcb arg)
                                           throws RPCError,
                                                  java.io.IOException
Stub method that invokes the server function "RPCBPROC_GETADDRLIST" (version 4).

Parameters:
arg - The input parameter of the RPC.
Returns:
The return value of the RPC.
Throws:
java.io.IOException - When the RPC fails because the socket connetion fails.
RPCError - When the RPC fails for any other reason.

RPCBPROC_GETSTAT_4

public rpcb_stat_byvers RPCBPROC_GETSTAT_4()
                                    throws RPCError,
                                           java.io.IOException
Stub method that invokes the server function "RPCBPROC_GETSTAT" (version 4).

Returns:
The return value of the RPC.
Throws:
java.io.IOException - When the RPC fails because the socket connetion fails.
RPCError - When the RPC fails for any other reason.