universal.utils
Class Utils

java.lang.Object
  |
  +--universal.utils.Utils

public class Utils
extends java.lang.Object


Field Summary
static java.lang.Object BACKUP_SYNCH
           
static int BEG_SYNCH_FAILOVER
           
static int CALL_INVOKE
           
static int END_CALL_BY_CLIENT
           
static int END_SYNCH_FAILOVER
           
static int END_SYNCH_SEND_CALLS
           
static int ENTER_RECEIVE_REPLY
           
static int ENTER_RECEIVE_REQUEST
           
static int ENTER_RECEIVE_REQUEST_G
           
static int ENTER_SEND_REPLY
           
static int ENTER_SEND_REQUEST
           
static int EXIT_RECEIVE_REPLY
           
static int EXIT_RECEIVE_REQUEST
           
static int EXIT_REPLY_ALREADY_THERE
           
static int EXIT_SEND_REPLY
           
static int EXIT_SEND_REPLY_GW
           
static int EXIT_SEND_REQUEST
           
private static java.lang.String ft_dom_name_fn
           
static int GET_ANSWER_GW
           
static int GW_SEND_REQUESTS
           
static int GW_SEND_TRANSIENT
           
static int INV_EXITS_SEND_REQUEST
           
static char READ
           
static int REC_GET_STATE_REPLY
           
static int REC_GET_STATE_REQ
           
static int REC_GET_UPDATE_REPLY
           
static int REC_GET_UPDATE_REQ
           
static int RECEIVE_EXCEPTION
           
static int RECEIVE_FIRST_REPLY
           
static int RECEIVE_OTHER
           
static int REPL_MAN_BEG_GET_STATE
           
static int REPL_MAN_BEG_SET_STATE
           
static int REPL_MAN_BEGIN_CR_OBJ
           
static int REPL_MAN_BEGIN_REC
           
static int REPL_MAN_END_CR_OBJ
           
static int REPL_MAN_END_GET_STATE
           
static int REPL_MAN_END_REC
           
static int REPL_MAN_END_SET_STATE
           
static int REPL_MAN_REC_F_NOT
           
private static java.lang.Object semaphor
           
static int SEND_EXCEPTION
           
static int SEND_EXCEPTION_RM
           
static int SEND_FORWARD_EXC
           
static int SEND_GET_STATE_REPLY
           
static int SEND_GET_STATE_REQ
           
static int SEND_GET_UPDATE_REPLY
           
static int SEND_GET_UPDATE_REQ
           
static int SEND_OTHER
           
static int SEND_OTHER_RM
           
static int SEND_REQ_EXP_EXC
           
static int SEND_REQ_EXP_EXC_GW
           
static int SEND_WR_PRIM_EXC
           
static int SET_STATE
           
static int SET_UPDATE
           
static int START_CALL_BY_CLIENT
           
static int START_CONSENSUS
           
static int START_GET_S_WAIT
           
static int START_GET_STATE
           
static int START_GET_STATE_A
           
static int START_GET_STATE_B
           
static int START_GET_STATE_CALL
           
static int START_GET_U_WAIT
           
static int START_GET_UPDATE
           
static int START_GET_UPDATE_CALL
           
static int START_INVOKE
           
static int START_LOOKUP
           
static int START_PROC
           
static int START_REC_BR_METHOD_CALL
           
static int START_REC_BR_REPLY
           
static int START_REC_METHOD_CALL
           
static int START_REC_REPLY
           
static int START_RESTORE_ST
           
static int START_SET_STATE
           
static int START_STATE_REC
           
static int START_TENT_EXEC
           
static int START_UPDATE_REC
           
static int START_WAIT_ANSWER_GW
           
static int START_WAIT_GET_STATE
           
static int START_WAIT_UPD_OPER
           
static int STOP_CONSENSUS
           
static int STOP_GET_S_WAIT
           
static int STOP_GET_STATE
           
static int STOP_GET_STATE_CALL
           
static int STOP_GET_U_WAIT
           
static int STOP_GET_UPDATE
           
static int STOP_GET_UPDATE_CALL
           
static int STOP_LOOKUP
           
static int STOP_PROC_EXC
           
static int STOP_PROC_NORMAL
           
static int STOP_PROC_REPLY_THERE
           
static int STOP_REC_BR_METHOD_CALL
           
static int STOP_REC_BR_REPLY
           
static int STOP_REC_METHOD_CALL
           
static int STOP_REC_REPLY
           
static int STOP_RESTORE_ST
           
static int STOP_SET_STATE
           
static int STOP_SET_UPDATE
           
static int STOP_STATE_REC
           
static int STOP_TENT_EXEC
           
static int STOP_UPDATE_REC
           
static int STOP_WAIT_GET_STATE
           
static int STOP_WAIT_UPD_OPER
           
static int THROW_REPLY_HERE
           
static char UPDATE_NON_VOID
           
static char UPDATE_ONEWAY
           
static char UPDATE_VOID
           
static int YES_REQUEST_RIGHT_PLACE
           
 
Constructor Summary
Utils()
           
 
Method Summary
static java.util.Hashtable[] a_minus_b_a_inters_b_b_minus_a(java.util.Hashtable a, java.util.Hashtable b)
           
static long[][] a_minus_b_b_minus_a(long[] a, long[] b)
           
static org.omg.CosNaming.NamingContext bind_context(org.omg.CosNaming.NamingContext ncx, org.omg.CosNaming.NameComponent[] ncs)
           
static java.lang.Object extract_obj_from_any(org.omg.CORBA.Any any)
           
static java.lang.String get_class_helper_s(java.lang.String class_n)
           
static java.lang.String get_class_helper(java.lang.String type_id)
           
static java.lang.String get_class_name(java.lang.String type_id)
           
static java.lang.Class get_class(java.lang.String type_id)
           
static org.omg.IOP.IOR get_ior(org.omg.CORBA.Object obj)
           
static org.omg.IOP.IOR get_ior(org.omg.CORBA.Object[] obj)
           
static org.omg.CORBA.Any give_any_arg(org.omg.CORBA.ORB orb, java.lang.Object value)
           
static org.omg.CORBA.Any give_any(org.omg.CORBA.ORB orb, java.lang.Object result, boolean holder)
           
static java.lang.Object give_object_holder(org.omg.CORBA.Any any, boolean typecode_only)
           
static java.lang.Object give_object(org.omg.CORBA.Any any)
           
static java.lang.Object holder_with_value(org.omg.CORBA.Any any, boolean typecode_only)
           
static void insert_obj_read_seq(org.omg.CORBA.Any any, org.omg.CORBA.portable.InputStream input, org.omg.CORBA.TypeCode seq_tc)
           
static void insert_obj_read(org.omg.CORBA.Any any, org.omg.CORBA.portable.InputStream input)
           
static int makeByteInt(byte[] b)
           
static byte[] makeIntByte(int nr)
           
static org.omg.IOP.IOR merge_unique_iors(java.lang.String type_id, org.omg.IOP.IOR[] iors)
           
static java.util.Hashtable minus(java.util.Hashtable set_a, java.util.Hashtable set_b)
           
static long[] minus(long[] a, long[] b)
           
static void print_IOR(org.omg.CORBA.ORB orb, org.omg.IOP.IOR ior)
           
static org.omg.IIOP.ProfileBody_1_1 profile_body(org.omg.CORBA.ORB orb, org.omg.IOP.TaggedProfile tp)
           
static org.omg.Dynamic.Parameter[] read_args(org.omg.CORBA.ORB orb, universal.MethSignStr method_s, org.openorb.iiop.CDRInputStream is)
           
static void read_input_stream(org.omg.CORBA.portable.InputStream input, org.omg.CORBA.Any guide, boolean typecode_only)
           
static java.lang.Object read_param(org.omg.CORBA.portable.InputStream input, java.lang.String type)
           
static org.omg.CosNaming.NamingContext resolve_n(org.omg.CosNaming.NamingContext ncx, org.omg.CosNaming.NameComponent[] ncs)
           
static void trace(int moment_code, int retention_id, java.lang.String client_id, long time, java.lang.String oper_name, java.io.RandomAccessFile raf)
           
static void write_obj_extract_seq(org.omg.CORBA.Any any, org.omg.CORBA.portable.OutputStream os, org.omg.CORBA.TypeCode seq_tc)
           
static void write_obj_extract(org.omg.CORBA.Any any, org.omg.CORBA.portable.OutputStream os)
           
static void write_obj_helper_extract(org.omg.CORBA.Any any, org.omg.CORBA.portable.OutputStream os)
           
static void write_output_stream(org.omg.CORBA.Any any, org.omg.CORBA.portable.OutputStream os)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

semaphor

private static java.lang.Object semaphor

ft_dom_name_fn

private static java.lang.String ft_dom_name_fn

UPDATE_VOID

public static final char UPDATE_VOID
See Also:
Constant Field Values

UPDATE_NON_VOID

public static final char UPDATE_NON_VOID
See Also:
Constant Field Values

UPDATE_ONEWAY

public static final char UPDATE_ONEWAY
See Also:
Constant Field Values

READ

public static final char READ
See Also:
Constant Field Values

START_CALL_BY_CLIENT

public static final int START_CALL_BY_CLIENT
See Also:
Constant Field Values

EXIT_SEND_REQUEST

public static final int EXIT_SEND_REQUEST
See Also:
Constant Field Values

ENTER_RECEIVE_REQUEST

public static final int ENTER_RECEIVE_REQUEST
See Also:
Constant Field Values

YES_REQUEST_RIGHT_PLACE

public static final int YES_REQUEST_RIGHT_PLACE
See Also:
Constant Field Values

SEND_FORWARD_EXC

public static final int SEND_FORWARD_EXC
See Also:
Constant Field Values

SEND_WR_PRIM_EXC

public static final int SEND_WR_PRIM_EXC
See Also:
Constant Field Values

SEND_REQ_EXP_EXC

public static final int SEND_REQ_EXP_EXC
See Also:
Constant Field Values

START_WAIT_GET_STATE

public static final int START_WAIT_GET_STATE
See Also:
Constant Field Values

STOP_WAIT_GET_STATE

public static final int STOP_WAIT_GET_STATE
See Also:
Constant Field Values

EXIT_RECEIVE_REQUEST

public static final int EXIT_RECEIVE_REQUEST
See Also:
Constant Field Values

ENTER_SEND_REPLY

public static final int ENTER_SEND_REPLY
See Also:
Constant Field Values

EXIT_SEND_REPLY

public static final int EXIT_SEND_REPLY
See Also:
Constant Field Values

ENTER_RECEIVE_REPLY

public static final int ENTER_RECEIVE_REPLY
See Also:
Constant Field Values

EXIT_RECEIVE_REPLY

public static final int EXIT_RECEIVE_REPLY
See Also:
Constant Field Values

END_CALL_BY_CLIENT

public static final int END_CALL_BY_CLIENT
See Also:
Constant Field Values

ENTER_RECEIVE_REQUEST_G

public static final int ENTER_RECEIVE_REQUEST_G
See Also:
Constant Field Values

BEG_SYNCH_FAILOVER

public static final int BEG_SYNCH_FAILOVER
See Also:
Constant Field Values

END_SYNCH_FAILOVER

public static final int END_SYNCH_FAILOVER
See Also:
Constant Field Values

EXIT_SEND_REPLY_GW

public static final int EXIT_SEND_REPLY_GW
See Also:
Constant Field Values

END_SYNCH_SEND_CALLS

public static final int END_SYNCH_SEND_CALLS
See Also:
Constant Field Values

GW_SEND_TRANSIENT

public static final int GW_SEND_TRANSIENT
See Also:
Constant Field Values

GW_SEND_REQUESTS

public static final int GW_SEND_REQUESTS
See Also:
Constant Field Values

RECEIVE_FIRST_REPLY

public static final int RECEIVE_FIRST_REPLY
See Also:
Constant Field Values

ENTER_SEND_REQUEST

public static final int ENTER_SEND_REQUEST
See Also:
Constant Field Values

CALL_INVOKE

public static final int CALL_INVOKE
See Also:
Constant Field Values

INV_EXITS_SEND_REQUEST

public static final int INV_EXITS_SEND_REQUEST
See Also:
Constant Field Values

START_WAIT_ANSWER_GW

public static final int START_WAIT_ANSWER_GW
See Also:
Constant Field Values

GET_ANSWER_GW

public static final int GET_ANSWER_GW
See Also:
Constant Field Values

THROW_REPLY_HERE

public static final int THROW_REPLY_HERE
See Also:
Constant Field Values

REPL_MAN_BEGIN_REC

public static final int REPL_MAN_BEGIN_REC
See Also:
Constant Field Values

REPL_MAN_END_REC

public static final int REPL_MAN_END_REC
See Also:
Constant Field Values

REPL_MAN_REC_F_NOT

public static final int REPL_MAN_REC_F_NOT
See Also:
Constant Field Values

REPL_MAN_BEGIN_CR_OBJ

public static final int REPL_MAN_BEGIN_CR_OBJ
See Also:
Constant Field Values

REPL_MAN_END_CR_OBJ

public static final int REPL_MAN_END_CR_OBJ
See Also:
Constant Field Values

EXIT_REPLY_ALREADY_THERE

public static final int EXIT_REPLY_ALREADY_THERE
See Also:
Constant Field Values

RECEIVE_EXCEPTION

public static final int RECEIVE_EXCEPTION
See Also:
Constant Field Values

RECEIVE_OTHER

public static final int RECEIVE_OTHER
See Also:
Constant Field Values

SEND_REQ_EXP_EXC_GW

public static final int SEND_REQ_EXP_EXC_GW
See Also:
Constant Field Values

SEND_EXCEPTION

public static final int SEND_EXCEPTION
See Also:
Constant Field Values

SEND_OTHER

public static final int SEND_OTHER
See Also:
Constant Field Values

SEND_EXCEPTION_RM

public static final int SEND_EXCEPTION_RM
See Also:
Constant Field Values

SEND_OTHER_RM

public static final int SEND_OTHER_RM
See Also:
Constant Field Values

START_GET_STATE

public static final int START_GET_STATE
See Also:
Constant Field Values

STOP_GET_STATE

public static final int STOP_GET_STATE
See Also:
Constant Field Values

START_GET_UPDATE

public static final int START_GET_UPDATE
See Also:
Constant Field Values

STOP_GET_UPDATE

public static final int STOP_GET_UPDATE
See Also:
Constant Field Values

START_REC_BR_METHOD_CALL

public static final int START_REC_BR_METHOD_CALL
See Also:
Constant Field Values

STOP_REC_BR_METHOD_CALL

public static final int STOP_REC_BR_METHOD_CALL
See Also:
Constant Field Values

START_REC_BR_REPLY

public static final int START_REC_BR_REPLY
See Also:
Constant Field Values

STOP_REC_BR_REPLY

public static final int STOP_REC_BR_REPLY
See Also:
Constant Field Values

START_REC_METHOD_CALL

public static final int START_REC_METHOD_CALL
See Also:
Constant Field Values

STOP_REC_METHOD_CALL

public static final int STOP_REC_METHOD_CALL
See Also:
Constant Field Values

START_REC_REPLY

public static final int START_REC_REPLY
See Also:
Constant Field Values

STOP_REC_REPLY

public static final int STOP_REC_REPLY
See Also:
Constant Field Values

REPL_MAN_BEG_GET_STATE

public static final int REPL_MAN_BEG_GET_STATE
See Also:
Constant Field Values

REPL_MAN_END_GET_STATE

public static final int REPL_MAN_END_GET_STATE
See Also:
Constant Field Values

REPL_MAN_BEG_SET_STATE

public static final int REPL_MAN_BEG_SET_STATE
See Also:
Constant Field Values

REPL_MAN_END_SET_STATE

public static final int REPL_MAN_END_SET_STATE
See Also:
Constant Field Values

START_WAIT_UPD_OPER

public static final int START_WAIT_UPD_OPER
See Also:
Constant Field Values

STOP_WAIT_UPD_OPER

public static final int STOP_WAIT_UPD_OPER
See Also:
Constant Field Values

START_GET_S_WAIT

public static final int START_GET_S_WAIT
See Also:
Constant Field Values

STOP_GET_S_WAIT

public static final int STOP_GET_S_WAIT
See Also:
Constant Field Values

START_GET_U_WAIT

public static final int START_GET_U_WAIT
See Also:
Constant Field Values

STOP_GET_U_WAIT

public static final int STOP_GET_U_WAIT
See Also:
Constant Field Values

START_GET_STATE_CALL

public static final int START_GET_STATE_CALL
See Also:
Constant Field Values

STOP_GET_STATE_CALL

public static final int STOP_GET_STATE_CALL
See Also:
Constant Field Values

START_STATE_REC

public static final int START_STATE_REC
See Also:
Constant Field Values

STOP_STATE_REC

public static final int STOP_STATE_REC
See Also:
Constant Field Values

SEND_GET_STATE_REQ

public static final int SEND_GET_STATE_REQ
See Also:
Constant Field Values

REC_GET_STATE_REQ

public static final int REC_GET_STATE_REQ
See Also:
Constant Field Values

SEND_GET_STATE_REPLY

public static final int SEND_GET_STATE_REPLY
See Also:
Constant Field Values

REC_GET_STATE_REPLY

public static final int REC_GET_STATE_REPLY
See Also:
Constant Field Values

START_GET_UPDATE_CALL

public static final int START_GET_UPDATE_CALL
See Also:
Constant Field Values

STOP_GET_UPDATE_CALL

public static final int STOP_GET_UPDATE_CALL
See Also:
Constant Field Values

START_UPDATE_REC

public static final int START_UPDATE_REC
See Also:
Constant Field Values

STOP_UPDATE_REC

public static final int STOP_UPDATE_REC
See Also:
Constant Field Values

SEND_GET_UPDATE_REQ

public static final int SEND_GET_UPDATE_REQ
See Also:
Constant Field Values

REC_GET_UPDATE_REQ

public static final int REC_GET_UPDATE_REQ
See Also:
Constant Field Values

SEND_GET_UPDATE_REPLY

public static final int SEND_GET_UPDATE_REPLY
See Also:
Constant Field Values

REC_GET_UPDATE_REPLY

public static final int REC_GET_UPDATE_REPLY
See Also:
Constant Field Values

START_SET_STATE

public static final int START_SET_STATE
See Also:
Constant Field Values

STOP_SET_STATE

public static final int STOP_SET_STATE
See Also:
Constant Field Values

START_PROC

public static final int START_PROC
See Also:
Constant Field Values

START_LOOKUP

public static final int START_LOOKUP
See Also:
Constant Field Values

STOP_LOOKUP

public static final int STOP_LOOKUP
See Also:
Constant Field Values

STOP_PROC_REPLY_THERE

public static final int STOP_PROC_REPLY_THERE
See Also:
Constant Field Values

START_TENT_EXEC

public static final int START_TENT_EXEC
See Also:
Constant Field Values

START_GET_STATE_B

public static final int START_GET_STATE_B
See Also:
Constant Field Values

START_INVOKE

public static final int START_INVOKE
See Also:
Constant Field Values

START_GET_STATE_A

public static final int START_GET_STATE_A
See Also:
Constant Field Values

STOP_TENT_EXEC

public static final int STOP_TENT_EXEC
See Also:
Constant Field Values

START_CONSENSUS

public static final int START_CONSENSUS
See Also:
Constant Field Values

STOP_CONSENSUS

public static final int STOP_CONSENSUS
See Also:
Constant Field Values

START_RESTORE_ST

public static final int START_RESTORE_ST
See Also:
Constant Field Values

STOP_RESTORE_ST

public static final int STOP_RESTORE_ST
See Also:
Constant Field Values

STOP_PROC_EXC

public static final int STOP_PROC_EXC
See Also:
Constant Field Values

STOP_PROC_NORMAL

public static final int STOP_PROC_NORMAL
See Also:
Constant Field Values

SET_STATE

public static final int SET_STATE
See Also:
Constant Field Values

SET_UPDATE

public static final int SET_UPDATE
See Also:
Constant Field Values

STOP_SET_UPDATE

public static final int STOP_SET_UPDATE
See Also:
Constant Field Values

BACKUP_SYNCH

public static java.lang.Object BACKUP_SYNCH
Constructor Detail

Utils

public Utils()
Method Detail

profile_body

public static org.omg.IIOP.ProfileBody_1_1 profile_body(org.omg.CORBA.ORB orb,
                                                        org.omg.IOP.TaggedProfile tp)

print_IOR

public static void print_IOR(org.omg.CORBA.ORB orb,
                             org.omg.IOP.IOR ior)

write_output_stream

public static void write_output_stream(org.omg.CORBA.Any any,
                                       org.omg.CORBA.portable.OutputStream os)

resolve_n

public static org.omg.CosNaming.NamingContext resolve_n(org.omg.CosNaming.NamingContext ncx,
                                                        org.omg.CosNaming.NameComponent[] ncs)

bind_context

public static org.omg.CosNaming.NamingContext bind_context(org.omg.CosNaming.NamingContext ncx,
                                                           org.omg.CosNaming.NameComponent[] ncs)

get_class

public static java.lang.Class get_class(java.lang.String type_id)

get_class_helper

public static java.lang.String get_class_helper(java.lang.String type_id)

get_class_helper_s

public static java.lang.String get_class_helper_s(java.lang.String class_n)

get_class_name

public static java.lang.String get_class_name(java.lang.String type_id)

write_obj_extract

public static void write_obj_extract(org.omg.CORBA.Any any,
                                     org.omg.CORBA.portable.OutputStream os)

write_obj_extract_seq

public static void write_obj_extract_seq(org.omg.CORBA.Any any,
                                         org.omg.CORBA.portable.OutputStream os,
                                         org.omg.CORBA.TypeCode seq_tc)

write_obj_helper_extract

public static void write_obj_helper_extract(org.omg.CORBA.Any any,
                                            org.omg.CORBA.portable.OutputStream os)

read_input_stream

public static void read_input_stream(org.omg.CORBA.portable.InputStream input,
                                     org.omg.CORBA.Any guide,
                                     boolean typecode_only)

insert_obj_read

public static void insert_obj_read(org.omg.CORBA.Any any,
                                   org.omg.CORBA.portable.InputStream input)

insert_obj_read_seq

public static void insert_obj_read_seq(org.omg.CORBA.Any any,
                                       org.omg.CORBA.portable.InputStream input,
                                       org.omg.CORBA.TypeCode seq_tc)

read_param

public static java.lang.Object read_param(org.omg.CORBA.portable.InputStream input,
                                          java.lang.String type)

read_args

public static org.omg.Dynamic.Parameter[] read_args(org.omg.CORBA.ORB orb,
                                                    universal.MethSignStr method_s,
                                                    org.openorb.iiop.CDRInputStream is)
                                             throws org.omg.CORBA.BAD_PARAM
org.omg.CORBA.BAD_PARAM

give_object

public static java.lang.Object give_object(org.omg.CORBA.Any any)

holder_with_value

public static java.lang.Object holder_with_value(org.omg.CORBA.Any any,
                                                 boolean typecode_only)

give_object_holder

public static java.lang.Object give_object_holder(org.omg.CORBA.Any any,
                                                  boolean typecode_only)

extract_obj_from_any

public static java.lang.Object extract_obj_from_any(org.omg.CORBA.Any any)

give_any

public static org.omg.CORBA.Any give_any(org.omg.CORBA.ORB orb,
                                         java.lang.Object result,
                                         boolean holder)

give_any_arg

public static org.omg.CORBA.Any give_any_arg(org.omg.CORBA.ORB orb,
                                             java.lang.Object value)

makeIntByte

public static byte[] makeIntByte(int nr)

makeByteInt

public static int makeByteInt(byte[] b)

get_ior

public static org.omg.IOP.IOR get_ior(org.omg.CORBA.Object obj)

get_ior

public static org.omg.IOP.IOR get_ior(org.omg.CORBA.Object[] obj)

merge_unique_iors

public static org.omg.IOP.IOR merge_unique_iors(java.lang.String type_id,
                                                org.omg.IOP.IOR[] iors)

trace

public static void trace(int moment_code,
                         int retention_id,
                         java.lang.String client_id,
                         long time,
                         java.lang.String oper_name,
                         java.io.RandomAccessFile raf)

a_minus_b_a_inters_b_b_minus_a

public static java.util.Hashtable[] a_minus_b_a_inters_b_b_minus_a(java.util.Hashtable a,
                                                                   java.util.Hashtable b)

a_minus_b_b_minus_a

public static long[][] a_minus_b_b_minus_a(long[] a,
                                           long[] b)

minus

public static java.util.Hashtable minus(java.util.Hashtable set_a,
                                        java.util.Hashtable set_b)

minus

public static long[] minus(long[] a,
                           long[] b)