com.distinct.rpc.yp
Class yp

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

public class yp
extends JRPCClient

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

See Also:
Serialized Form

Field Summary
static int YP_BADARGS
          Constant for enum ypstat
static int YP_BADDB
          Constant for enum ypstat
static int YP_BADOP
          Constant for enum ypstat
static int YP_FALSE
          Constant for enum ypstat
static int YP_NODOM
          Constant for enum ypstat
static int YP_NOKEY
          Constant for enum ypstat
static int YP_NOMAP
          Constant for enum ypstat
static int YP_NOMORE
          Constant for enum ypstat
static int YP_TRUE
          Constant for enum ypstat
static int YP_VERS
          Constant for enum ypstat
static int YP_YPERR
          Constant for enum ypstat
static int YPBIND_ERR_ERR
           
static int YPBIND_ERR_NOSERV
           
static int YPBIND_ERR_RESC
           
static int YPBIND_FAIL_VAL
          Constant for enum ypbind_resptype
static int YPBIND_SUCC_VAL
          Constant for enum ypbind_resptype
static int YPMAXDOMAIN
           
static int YPMAXMAP
           
static int YPMAXPEER
           
static int YPMAXRECORD
           
static int YPPROC_ALL
           
static int YPPROC_CLEAR
           
static int YPPROC_DOMAIN
           
static int YPPROC_DOMAIN_NONACK
           
static int YPPROC_FIRST
           
static int YPPROC_MAPLIST
           
static int YPPROC_MASTER
           
static int YPPROC_MATCH
           
static int YPPROC_NEXT
           
static int YPPROC_NULL
           
static int YPPROC_ORDER
           
static int YPPROC_XFR
           
static int YPPROG
          Program ID of the interface.
static int YPPUSH_AGE
          Constant for enum yppush_status
static int YPPUSH_BADARGS
          Constant for enum yppush_status
static int YPPUSH_CLEAR
          Constant for enum yppush_status
static int YPPUSH_DBM
          Constant for enum yppush_status
static int YPPUSH_FILE
          Constant for enum yppush_status
static int YPPUSH_FORCE
          Constant for enum yppush_status
static int YPPUSH_MADDR
          Constant for enum yppush_status
static int YPPUSH_NODOM
          Constant for enum yppush_status
static int YPPUSH_NOMAP
          Constant for enum yppush_status
static int YPPUSH_REFUSED
          Constant for enum yppush_status
static int YPPUSH_RPC
          Constant for enum yppush_status
static int YPPUSH_RSRC
          Constant for enum yppush_status
static int YPPUSH_SKEW
          Constant for enum yppush_status
static int YPPUSH_SUCC
          Constant for enum yppush_status
static int YPPUSH_XFRERR
          Constant for enum yppush_status
static int YPPUSH_YPERR
          Constant for enum yppush_status
static int YPVERS
          Version ID of the interface.
static int YPXFR_AGE
          Constant for enum ypxfrstat
static int YPXFR_BADARGS
          Constant for enum ypxfrstat
static int YPXFR_CLEAR
          Constant for enum ypxfrstat
static int YPXFR_DBM
          Constant for enum ypxfrstat
static int YPXFR_FILE
          Constant for enum ypxfrstat
static int YPXFR_FORCE
          Constant for enum ypxfrstat
static int YPXFR_MADDR
          Constant for enum ypxfrstat
static int YPXFR_NODOM
          Constant for enum ypxfrstat
static int YPXFR_NOMAP
          Constant for enum ypxfrstat
static int YPXFR_REFUSED
          Constant for enum ypxfrstat
static int YPXFR_RPC
          Constant for enum ypxfrstat
static int YPXFR_RSRC
          Constant for enum ypxfrstat
static int YPXFR_SKEW
          Constant for enum ypxfrstat
static int YPXFR_SUCC
          Constant for enum ypxfrstat
static int YPXFR_XFRERR
          Constant for enum ypxfrstat
static int YPXFR_YPERR
          Constant for enum ypxfrstat
 
Constructor Summary
yp(ClientGeneric protocol)
          Creates an RPC client for a server that implements the "yp" interface.
yp(java.net.InetAddress host, boolean stream)
          Creates and connects an RPC client for a server that implements the "yp" interface.
yp(java.net.InetAddress host, int port, boolean stream)
          Creates and connects an RPC client for a server that implements the "yp" interface.
 
Method Summary
 ypresp_all YPPROC_ALL_2(ypreq_nokey arg)
          Stub method that invokes the server function "YPPROC_ALL" (version 2).
 void YPPROC_CLEAR_2()
          Stub method that invokes the server function "YPPROC_CLEAR" (version 2).
 boolean YPPROC_DOMAIN_2(domainname arg)
          Stub method that invokes the server function "YPPROC_DOMAIN" (version 2).
 boolean YPPROC_DOMAIN_NONACK_2(domainname arg)
          Stub method that invokes the server function "YPPROC_DOMAIN_NONACK" (version 2).
 ypresp_key_val YPPROC_FIRST_2(ypreq_key arg)
          Stub method that invokes the server function "YPPROC_FIRST" (version 2).
 ypresp_maplist YPPROC_MAPLIST_2(domainname arg)
          Stub method that invokes the server function "YPPROC_MAPLIST" (version 2).
 ypresp_master YPPROC_MASTER_2(ypreq_nokey arg)
          Stub method that invokes the server function "YPPROC_MASTER" (version 2).
 ypresp_val YPPROC_MATCH_2(ypreq_key arg)
          Stub method that invokes the server function "YPPROC_MATCH" (version 2).
 ypresp_key_val YPPROC_NEXT_2(ypreq_key arg)
          Stub method that invokes the server function "YPPROC_NEXT" (version 2).
 void YPPROC_NULL_2()
          Stub method that invokes the server function "YPPROC_NULL" (version 2).
 ypresp_order YPPROC_ORDER_2(ypreq_nokey arg)
          Stub method that invokes the server function "YPPROC_ORDER" (version 2).
 ypresp_xfr YPPROC_XFR_2(ypreq_xfr arg)
          Stub method that invokes the server function "YPPROC_XFR" (version 2).
 
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

YPMAXRECORD

public static final int YPMAXRECORD
See Also:
Constant Field Values

YPMAXDOMAIN

public static final int YPMAXDOMAIN
See Also:
Constant Field Values

YPMAXMAP

public static final int YPMAXMAP
See Also:
Constant Field Values

YPMAXPEER

public static final int YPMAXPEER
See Also:
Constant Field Values

YP_TRUE

public static final int YP_TRUE
Constant for enum ypstat

See Also:
Constant Field Values

YP_NOMORE

public static final int YP_NOMORE
Constant for enum ypstat

See Also:
Constant Field Values

YP_FALSE

public static final int YP_FALSE
Constant for enum ypstat

See Also:
Constant Field Values

YP_NOMAP

public static final int YP_NOMAP
Constant for enum ypstat

See Also:
Constant Field Values

YP_NODOM

public static final int YP_NODOM
Constant for enum ypstat

See Also:
Constant Field Values

YP_NOKEY

public static final int YP_NOKEY
Constant for enum ypstat

See Also:
Constant Field Values

YP_BADOP

public static final int YP_BADOP
Constant for enum ypstat

See Also:
Constant Field Values

YP_BADDB

public static final int YP_BADDB
Constant for enum ypstat

See Also:
Constant Field Values

YP_YPERR

public static final int YP_YPERR
Constant for enum ypstat

See Also:
Constant Field Values

YP_BADARGS

public static final int YP_BADARGS
Constant for enum ypstat

See Also:
Constant Field Values

YP_VERS

public static final int YP_VERS
Constant for enum ypstat

See Also:
Constant Field Values

YPXFR_SUCC

public static final int YPXFR_SUCC
Constant for enum ypxfrstat

See Also:
Constant Field Values

YPXFR_AGE

public static final int YPXFR_AGE
Constant for enum ypxfrstat

See Also:
Constant Field Values

YPXFR_NOMAP

public static final int YPXFR_NOMAP
Constant for enum ypxfrstat

See Also:
Constant Field Values

YPXFR_NODOM

public static final int YPXFR_NODOM
Constant for enum ypxfrstat

See Also:
Constant Field Values

YPXFR_RSRC

public static final int YPXFR_RSRC
Constant for enum ypxfrstat

See Also:
Constant Field Values

YPXFR_RPC

public static final int YPXFR_RPC
Constant for enum ypxfrstat

See Also:
Constant Field Values

YPXFR_MADDR

public static final int YPXFR_MADDR
Constant for enum ypxfrstat

See Also:
Constant Field Values

YPXFR_YPERR

public static final int YPXFR_YPERR
Constant for enum ypxfrstat

See Also:
Constant Field Values

YPXFR_BADARGS

public static final int YPXFR_BADARGS
Constant for enum ypxfrstat

See Also:
Constant Field Values

YPXFR_DBM

public static final int YPXFR_DBM
Constant for enum ypxfrstat

See Also:
Constant Field Values

YPXFR_FILE

public static final int YPXFR_FILE
Constant for enum ypxfrstat

See Also:
Constant Field Values

YPXFR_SKEW

public static final int YPXFR_SKEW
Constant for enum ypxfrstat

See Also:
Constant Field Values

YPXFR_CLEAR

public static final int YPXFR_CLEAR
Constant for enum ypxfrstat

See Also:
Constant Field Values

YPXFR_FORCE

public static final int YPXFR_FORCE
Constant for enum ypxfrstat

See Also:
Constant Field Values

YPXFR_XFRERR

public static final int YPXFR_XFRERR
Constant for enum ypxfrstat

See Also:
Constant Field Values

YPXFR_REFUSED

public static final int YPXFR_REFUSED
Constant for enum ypxfrstat

See Also:
Constant Field Values

YPPUSH_SUCC

public static final int YPPUSH_SUCC
Constant for enum yppush_status

See Also:
Constant Field Values

YPPUSH_AGE

public static final int YPPUSH_AGE
Constant for enum yppush_status

See Also:
Constant Field Values

YPPUSH_NOMAP

public static final int YPPUSH_NOMAP
Constant for enum yppush_status

See Also:
Constant Field Values

YPPUSH_NODOM

public static final int YPPUSH_NODOM
Constant for enum yppush_status

See Also:
Constant Field Values

YPPUSH_RSRC

public static final int YPPUSH_RSRC
Constant for enum yppush_status

See Also:
Constant Field Values

YPPUSH_RPC

public static final int YPPUSH_RPC
Constant for enum yppush_status

See Also:
Constant Field Values

YPPUSH_MADDR

public static final int YPPUSH_MADDR
Constant for enum yppush_status

See Also:
Constant Field Values

YPPUSH_YPERR

public static final int YPPUSH_YPERR
Constant for enum yppush_status

See Also:
Constant Field Values

YPPUSH_BADARGS

public static final int YPPUSH_BADARGS
Constant for enum yppush_status

See Also:
Constant Field Values

YPPUSH_DBM

public static final int YPPUSH_DBM
Constant for enum yppush_status

See Also:
Constant Field Values

YPPUSH_FILE

public static final int YPPUSH_FILE
Constant for enum yppush_status

See Also:
Constant Field Values

YPPUSH_SKEW

public static final int YPPUSH_SKEW
Constant for enum yppush_status

See Also:
Constant Field Values

YPPUSH_CLEAR

public static final int YPPUSH_CLEAR
Constant for enum yppush_status

See Also:
Constant Field Values

YPPUSH_FORCE

public static final int YPPUSH_FORCE
Constant for enum yppush_status

See Also:
Constant Field Values

YPPUSH_XFRERR

public static final int YPPUSH_XFRERR
Constant for enum yppush_status

See Also:
Constant Field Values

YPPUSH_REFUSED

public static final int YPPUSH_REFUSED
Constant for enum yppush_status

See Also:
Constant Field Values

YPBIND_SUCC_VAL

public static final int YPBIND_SUCC_VAL
Constant for enum ypbind_resptype

See Also:
Constant Field Values

YPBIND_FAIL_VAL

public static final int YPBIND_FAIL_VAL
Constant for enum ypbind_resptype

See Also:
Constant Field Values

YPBIND_ERR_ERR

public static final int YPBIND_ERR_ERR
See Also:
Constant Field Values

YPBIND_ERR_NOSERV

public static final int YPBIND_ERR_NOSERV
See Also:
Constant Field Values

YPBIND_ERR_RESC

public static final int YPBIND_ERR_RESC
See Also:
Constant Field Values

YPPROG

public static final int YPPROG
Program ID of the interface.

See Also:
Constant Field Values

YPVERS

public static final int YPVERS
Version ID of the interface.

See Also:
Constant Field Values

YPPROC_NULL

public static final int YPPROC_NULL
See Also:
Constant Field Values

YPPROC_DOMAIN

public static final int YPPROC_DOMAIN
See Also:
Constant Field Values

YPPROC_DOMAIN_NONACK

public static final int YPPROC_DOMAIN_NONACK
See Also:
Constant Field Values

YPPROC_MATCH

public static final int YPPROC_MATCH
See Also:
Constant Field Values

YPPROC_FIRST

public static final int YPPROC_FIRST
See Also:
Constant Field Values

YPPROC_NEXT

public static final int YPPROC_NEXT
See Also:
Constant Field Values

YPPROC_XFR

public static final int YPPROC_XFR
See Also:
Constant Field Values

YPPROC_CLEAR

public static final int YPPROC_CLEAR
See Also:
Constant Field Values

YPPROC_ALL

public static final int YPPROC_ALL
See Also:
Constant Field Values

YPPROC_MASTER

public static final int YPPROC_MASTER
See Also:
Constant Field Values

YPPROC_ORDER

public static final int YPPROC_ORDER
See Also:
Constant Field Values

YPPROC_MAPLIST

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

yp

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

Parameters:
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.

yp

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

Parameters:
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.

yp

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

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

YPPROC_NULL_2

public void YPPROC_NULL_2()
                   throws RPCError,
                          java.io.IOException
Stub method that invokes the server function "YPPROC_NULL" (version 2).

Throws:
java.io.IOException - When the RPC fails because the socket connetion fails.
RPCError - When the RPC fails for any other reason.

YPPROC_DOMAIN_2

public boolean YPPROC_DOMAIN_2(domainname arg)
                        throws RPCError,
                               java.io.IOException
Stub method that invokes the server function "YPPROC_DOMAIN" (version 2).

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.

YPPROC_DOMAIN_NONACK_2

public boolean YPPROC_DOMAIN_NONACK_2(domainname arg)
                               throws RPCError,
                                      java.io.IOException
Stub method that invokes the server function "YPPROC_DOMAIN_NONACK" (version 2).

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.

YPPROC_MATCH_2

public ypresp_val YPPROC_MATCH_2(ypreq_key arg)
                          throws RPCError,
                                 java.io.IOException
Stub method that invokes the server function "YPPROC_MATCH" (version 2).

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.

YPPROC_FIRST_2

public ypresp_key_val YPPROC_FIRST_2(ypreq_key arg)
                              throws RPCError,
                                     java.io.IOException
Stub method that invokes the server function "YPPROC_FIRST" (version 2).

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.

YPPROC_NEXT_2

public ypresp_key_val YPPROC_NEXT_2(ypreq_key arg)
                             throws RPCError,
                                    java.io.IOException
Stub method that invokes the server function "YPPROC_NEXT" (version 2).

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.

YPPROC_XFR_2

public ypresp_xfr YPPROC_XFR_2(ypreq_xfr arg)
                        throws RPCError,
                               java.io.IOException
Stub method that invokes the server function "YPPROC_XFR" (version 2).

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.

YPPROC_CLEAR_2

public void YPPROC_CLEAR_2()
                    throws RPCError,
                           java.io.IOException
Stub method that invokes the server function "YPPROC_CLEAR" (version 2).

Throws:
java.io.IOException - When the RPC fails because the socket connetion fails.
RPCError - When the RPC fails for any other reason.

YPPROC_ALL_2

public ypresp_all YPPROC_ALL_2(ypreq_nokey arg)
                        throws RPCError,
                               java.io.IOException
Stub method that invokes the server function "YPPROC_ALL" (version 2).

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.

YPPROC_MASTER_2

public ypresp_master YPPROC_MASTER_2(ypreq_nokey arg)
                              throws RPCError,
                                     java.io.IOException
Stub method that invokes the server function "YPPROC_MASTER" (version 2).

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.

YPPROC_ORDER_2

public ypresp_order YPPROC_ORDER_2(ypreq_nokey arg)
                            throws RPCError,
                                   java.io.IOException
Stub method that invokes the server function "YPPROC_ORDER" (version 2).

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.

YPPROC_MAPLIST_2

public ypresp_maplist YPPROC_MAPLIST_2(domainname arg)
                                throws RPCError,
                                       java.io.IOException
Stub method that invokes the server function "YPPROC_MAPLIST" (version 2).

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.