private static TypeCode getSystemExceptionTypeCode(ORB orb, String repID, String name) { synchronized (TypeCode.class) { return orb.create_exception_tc(repID, name, systemExceptionMembers(orb)); } }
private static StructMember[] systemExceptionMembers(ORB orb) { if (members == null) { members = new StructMember[3]; members[0] = new StructMember("id", orb.create_string_tc(0), null); members[1] = new StructMember("minor", orb.get_primitive_tc(TCKind.tk_long), null); members[2] = new StructMember("completed", orb.get_primitive_tc(TCKind.tk_long), null); } return members; }
protected ByteBufferPool getByteBufferPool() { return orb.getByteBufferPool(); }
/** * Returns the logger based on the category. */ public Logger getLogger(String domain) { ORBData odata = getORBData(); // Determine the correct ORBId. There are 3 cases: // 1. odata is null, which happens if we are getting a logger before ORB initialization is complete. In this // case we cannot determine the ORB ID (it's not known yet), so we set the ORBId to _INITIALIZING_. // 2. odata is not null, so initialization is complete, but ORBId is set to the default "". To avoid a ".." in // the log domain, we simply use _DEFAULT_ in this case. // 3. odata is not null, ORBId is not "": just use the ORBId. String ORBId; if (odata == null) ORBId = "_INITIALIZING_"; else { ORBId = odata.getORBId(); if (ORBId.equals("")) ORBId = "_DEFAULT_"; } return getCORBALogger(ORBId, domain); }
TypeCodeImpl classTC = tcORB.getTypeCodeForClass(c); if (classTC != null) return classTC; TypeCode t = tcORB.create_sequence_tc(0, embeddedType); return tcORB.create_value_box_tc(id, "Sequence", t); TypeCode t = tcORB.create_string_tc(0); return tcORB.create_value_box_tc(id, "StringValue", t); tcORB.setTypeCodeForClass(c, classTC); return classTC;
static public Any extractAnyFromStream(TypeCode memberType, InputStream input, ORB orb) { Any returnValue = orb.create_any(); OutputStream out = returnValue.create_output_stream(); TypeCodeImpl.convertToNative(orb, memberType).copy(input, out); returnValue.read_value(out.create_input_stream(), memberType); return returnValue; }
/** * returns an input stream that an Any value can be marshaled out of. * * @result the InputStream to marshal value of Any out of. */ public org.omg.CORBA.portable.InputStream create_input_stream() { // // We create a new InputStream so that multiple threads can call here // and read the streams in parallel without thread safety problems. // // debug.log ("create_input_stream"); if (AnyImpl.isStreamed[realType().kind().value()]) { return stream.dup(); } else { OutputStream os = orb.create_output_stream(); TCUtility.marshalIn(os, realType(), value, object); return os.create_input_stream(); } }
public void insert_fixed(java.math.BigDecimal value) { typeCode = TypeCodeImpl.convertToNative(orb, orb.create_fixed_tc(TypeCodeImpl.digits(value), TypeCodeImpl.scale(value))); object = value; isInitialized = true; }
public static Logger staticGetLogger(String domain) { return getCORBALogger("_CORBA_", domain); }
TypeCodeImpl classTC = tcORB.getTypeCodeForClass(c); if (classTC != null) return classTC; TypeCode t = tcORB.create_sequence_tc(0, embeddedType); return tcORB.create_value_box_tc(id, "Sequence", t); TypeCode t = tcORB.create_string_tc(0); return tcORB.create_value_box_tc(id, "StringValue", t); tcORB.setTypeCodeForClass(c, classTC); return classTC;
public Any extractAny(TypeCode memberType, ORB orb) { Any returnValue = orb.create_any(); OutputStream out = returnValue.create_output_stream(); TypeCodeImpl.convertToNative(orb, memberType).copy(stream, out); returnValue.read_value(out.create_input_stream(), memberType); return returnValue; }
/** * Returns the logger based on the category. */ public Logger getLogger(String domain) { ORBData odata = getORBData(); // Determine the correct ORBId. There are 3 cases: // 1. odata is null, which happens if we are getting a logger before ORB initialization is complete. In this // case we cannot determine the ORB ID (it's not known yet), so we set the ORBId to _INITIALIZING_. // 2. odata is not null, so initialization is complete, but ORBId is set to the default "". To avoid a ".." in // the log domain, we simply use _DEFAULT_ in this case. // 3. odata is not null, ORBId is not "": just use the ORBId. String ORBId; if (odata == null) ORBId = "_INITIALIZING_"; else { ORBId = odata.getORBId(); if (ORBId.equals("")) ORBId = "_DEFAULT_"; } return getCORBALogger(ORBId, domain); }
/** * returns an input stream that an Any value can be marshaled out of. * * @result the InputStream to marshal value of Any out of. */ public org.omg.CORBA.portable.InputStream create_input_stream() { // // We create a new InputStream so that multiple threads can call here // and read the streams in parallel without thread safety problems. // // debug.log ("create_input_stream"); if (AnyImpl.isStreamed[realType().kind().value()]) { return stream.dup(); } else { OutputStream os = orb.create_output_stream(); TCUtility.marshalIn(os, realType(), value, object); return os.create_input_stream(); } }
public void insert_fixed(java.math.BigDecimal value) { typeCode = TypeCodeImpl.convertToNative(orb, orb.create_fixed_tc(TypeCodeImpl.digits(value), TypeCodeImpl.scale(value))); object = value; isInitialized = true; }
public static Logger staticGetLogger(String domain) { return getCORBALogger("_CORBA_", domain); }
orb.connect(obj);
protected ByteBufferPool getByteBufferPool() { return orb.getByteBufferPool(); }
public Any extractAny(TypeCode memberType, ORB orb) { Any returnValue = orb.create_any(); OutputStream out = returnValue.create_output_stream(); TypeCodeImpl.convertToNative(orb, memberType).copy(stream, out); returnValue.read_value(out.create_input_stream(), memberType); return returnValue; }
private static StructMember[] systemExceptionMembers(ORB orb) { if (members == null) { members = new StructMember[3]; members[0] = new StructMember("id", orb.create_string_tc(0), null); members[1] = new StructMember("minor", orb.get_primitive_tc(TCKind.tk_long), null); members[2] = new StructMember("completed", orb.get_primitive_tc(TCKind.tk_long), null); } return members; }