org.iids.aos.kernel.sunrpc
Class XDR2JavaVV

java.lang.Object
  extended by org.iids.aos.kernel.sunrpc.XDR2JavaVV

public class XDR2JavaVV
extends java.lang.Object

Utility class to convert XDR kernel types to Java types and vice versa.

Author:
arno

Constructor Summary
XDR2JavaVV()
           
 
Method Summary
static TransactionID convert(ACTP_XID xdr)
           
static TransactionID[] convert(ACTP_XIDS xdr)
           
static COOKIE convert(Cookie j)
           
static Cookie convert(COOKIE xdr)
          Cookie
static byte[] convert(DESCRIPTION xdr)
           
static ENDPOINT convert(Endpoint j)
           
static Endpoint convert(ENDPOINT xdr)
           
static KernelException convert(int xdr)
           
static SelectSets convert(int[] read_dsc, int[] write_dsc, int[] except_dsc)
           
static RoleBitmap convert(ROLE_BITMAP xdr)
           
static ROLE_BITMAP convert(RoleBitmap j)
           
static java.lang.String convert(SCID xdr)
           
static int convert(SelectSets j)
          Calculate number of ready descriptors
static int[] convert(SelectSets j, int set)
           
static SCID convert(java.lang.String j)
           
static TLS_SEC_SUITES convert(java.lang.String[] j)
           
static byte[] convert(SUBTYPE xdr)
           
static int convert(java.lang.Throwable e)
           
static int convert(TIME xdr)
           
static java.lang.String[] convert(TLS_SEC_SUITES sec_suites)
           
static TOCEntry convert(TOC_ENTRY xdr)
           
static TOCEntry[] convert(TOC_ENTRY[] xdr)
           
static TOC_ENTRY convert(TOCEntry j)
           
static TOC_ENTRY[] convert(TOCEntry[] toc)
           
static ACTP_XID convert(TransactionID j)
           
static ACTP_XIDS convert(TransactionID[] j)
           
static ACID convertACID(int j)
           
static DESCRIPTION convertDescription(byte[] j)
           
static java.lang.String convertParameterName(java.lang.String j)
           
static SEGMENT_ID convertSEGMENT_ID(int j)
           
static SUBTYPE convertSubtype(byte[] j)
           
static byte[] IPv4or6AddressTov6(byte[] ipaddr)
          Java's InetAddress class always returns V4 addresses as 4 bytes, not as a 16 byte "IPv4-Mapped IPv6 Address"
static ACTP_XID zeroACTP_XID()
           
static COOKIE zeroCOOKIE()
           
static ENDPOINT zeroENDPOINT()
           
static TOC_ENTRY zeroTOC_ENTRY()
           
static TOC_ENTRY[] zeroTOC_ENTRYArray()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XDR2JavaVV

public XDR2JavaVV()
Method Detail

convert

public static Cookie convert(COOKIE xdr)
                      throws IPCException
Cookie

Throws:
IPCException

convert

public static COOKIE convert(Cookie j)
                      throws IPCException
Throws:
IPCException

zeroCOOKIE

public static COOKIE zeroCOOKIE()

convert

public static RoleBitmap convert(ROLE_BITMAP xdr)
                          throws IPCException
Throws:
IPCException

convert

public static ROLE_BITMAP convert(RoleBitmap j)
                           throws IPCException
Throws:
IPCException

convert

public static java.lang.String[] convert(TLS_SEC_SUITES sec_suites)
                                  throws IPCException
Throws:
IPCException

convert

public static TLS_SEC_SUITES convert(java.lang.String[] j)
                              throws IPCException
Throws:
IPCException

convert

public static ENDPOINT convert(Endpoint j)
                        throws IPCException
Throws:
IPCException

IPv4or6AddressTov6

public static byte[] IPv4or6AddressTov6(byte[] ipaddr)
Java's InetAddress class always returns V4 addresses as 4 bytes, not as a 16 byte "IPv4-Mapped IPv6 Address"

See Also:
Inet6Address

convert

public static Endpoint convert(ENDPOINT xdr)
                        throws IPCException
Throws:
IPCException

zeroENDPOINT

public static ENDPOINT zeroENDPOINT()

convert

public static java.lang.String convert(SCID xdr)
                                throws IPCException
Throws:
IPCException

convert

public static SCID convert(java.lang.String j)
                    throws IPCException
Throws:
IPCException

convert

public static TransactionID[] convert(ACTP_XIDS xdr)
                               throws IPCException
Throws:
IPCException

convert

public static ACTP_XIDS convert(TransactionID[] j)
                         throws IPCException
Throws:
IPCException

convert

public static TransactionID convert(ACTP_XID xdr)
                             throws IPCException
Throws:
IPCException

convert

public static ACTP_XID convert(TransactionID j)
                        throws IPCException
Throws:
IPCException

zeroACTP_XID

public static ACTP_XID zeroACTP_XID()

convert

public static TOC_ENTRY[] convert(TOCEntry[] toc)

convert

public static TOCEntry[] convert(TOC_ENTRY[] xdr)

zeroTOC_ENTRYArray

public static TOC_ENTRY[] zeroTOC_ENTRYArray()

convert

public static TOC_ENTRY convert(TOCEntry j)

convert

public static TOCEntry convert(TOC_ENTRY xdr)

zeroTOC_ENTRY

public static TOC_ENTRY zeroTOC_ENTRY()

convertACID

public static ACID convertACID(int j)

convertSEGMENT_ID

public static SEGMENT_ID convertSEGMENT_ID(int j)

convert

public static SelectSets convert(int[] read_dsc,
                                 int[] write_dsc,
                                 int[] except_dsc)
                          throws IPCException
Throws:
IPCException

convert

public static int convert(SelectSets j)
Calculate number of ready descriptors


convert

public static int[] convert(SelectSets j,
                            int set)
                     throws IPCException
Throws:
IPCException

convertParameterName

public static java.lang.String convertParameterName(java.lang.String j)
                                             throws IPCException
Throws:
IPCException

convert

public static byte[] convert(SUBTYPE xdr)
                      throws IPCException
Throws:
IPCException

convertSubtype

public static SUBTYPE convertSubtype(byte[] j)
                              throws IPCException
Throws:
IPCException

convert

public static byte[] convert(DESCRIPTION xdr)
                      throws IPCException
Throws:
IPCException

convertDescription

public static DESCRIPTION convertDescription(byte[] j)
                                      throws IPCException
Throws:
IPCException

convert

public static int convert(TIME xdr)

convert

public static int convert(java.lang.Throwable e)

convert

public static KernelException convert(int xdr)


Copyright © 2003, 2004 IIDS Group. All Rights Reserved.