if ((theAskSize <= itsByteBufferSize) && !itsOrb.getORBData().disableDirectByteBufferUse())
public CodeSetsComponentImpl(org.jboss.com.sun.corba.se.spi.orb.ORB orb) { if (orb == null) csci = new CodeSetComponentInfo(); else csci = orb.getORBData().getCodeSetComponentInfo(); }
/** * Returns the correct buffer size for this type of buffer manager as set in the ORB. */ public int getBufferSize() { return orb.getORBData().getGIOPBufferSize(); }
public static MessageBase readGIOPHeader(ORB orb, CorbaConnection connection) ReadTimeouts readTimeouts = orb.getORBData().getTransportTCPReadTimeouts(); && orb.getORBData().isJavaSerializationEnabled()) GIOPVersion orbVersion = orb.getORBData().getGIOPVersion();
/** * Returns the correct buffer size for this type of buffer manager as set in the ORB. */ public int getBufferSize() { return orb.getORBData().getGIOPFragmentSize(); }
public ServiceContexts(ORB orb) { this.orb = orb; wrapper = ORBUtilSystemException.get(orb, CORBALogDomains.RPC_PROTOCOL); addAlignmentOnWrite = false; scMap = new HashMap<Integer, Object>(); // Use the GIOP version of the ORB. Should // be specified in ServiceContext. // See REVISIT below concerning giopVersion. giopVersion = orb.getORBData().getGIOPVersion(); codeBase = null; }
/** * 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); }
public static BufferManagerWrite newBufferManagerWrite(GIOPVersion version, byte encodingVersion, ORB orb) { if (encodingVersion != Message.CDR_ENC_VERSION) { return new BufferManagerWriteGrow(orb); } return BufferManagerFactory.newBufferManagerWrite(orb.getORBData().getGIOPBuffMgrStrategy(version), encodingVersion, orb); }
public static Message readGIOPBody(ORB orb, CorbaConnection connection, Message msg) { ReadTimeouts readTimeouts = orb.getORBData().getTransportTCPReadTimeouts(); ByteBuffer buf = msg.getByteBuffer(); buf.position(MessageBase.GIOPMessageHeaderLength); int msgSizeMinusHeader = msg.getSize() - MessageBase.GIOPMessageHeaderLength; try { buf = connection .read(buf, GIOPMessageHeaderLength, msgSizeMinusHeader, readTimeouts.get_max_time_to_wait()); } catch (IOException e) { throw wrapper.ioexceptionWhenReadingConnection(e); } msg.setByteBuffer(buf); if (orb.giopDebugFlag) { dprint(".readGIOPBody: received message:"); ByteBuffer viewBuffer = buf.asReadOnlyBuffer(); viewBuffer.position(0).limit(msg.getSize()); ByteBufferWithInfo bbwi = new ByteBufferWithInfo(orb, viewBuffer); CDRInputStream_1_0.printBuffer(bbwi); } return msg; }
serverid = orb.getORBData().getPersistentServerId(); scid = ORBConstants.makePersistent(scid);
short orbTargetAddrPref = orb.getORBData().getGIOPTargetAddressPreference(); short reqAddrDisp = target.discriminator();
public static MessageBase readGIOPHeader(ORB orb, CorbaConnection connection) ReadTimeouts readTimeouts = orb.getORBData().getTransportTCPReadTimeouts(); && orb.getORBData().isJavaSerializationEnabled()) GIOPVersion orbVersion = orb.getORBData().getGIOPVersion();
public ByteBufferPoolImpl(ORB theORB) { itsByteBufferSize = theORB.getORBData().getGIOPFragmentSize(); itsPool = new ArrayList<ByteBuffer>(); itsOrb = theORB; debug = theORB.transportDebugFlag; }
public ServiceContexts(ORB orb) { this.orb = orb; wrapper = ORBUtilSystemException.get(orb, CORBALogDomains.RPC_PROTOCOL); addAlignmentOnWrite = false; scMap = new HashMap<Integer, Object>(); // Use the GIOP version of the ORB. Should // be specified in ServiceContext. // See REVISIT below concerning giopVersion. giopVersion = orb.getORBData().getGIOPVersion(); codeBase = null; }
/** * 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); }
public static BufferManagerWrite newBufferManagerWrite(GIOPVersion version, byte encodingVersion, ORB orb) { if (encodingVersion != Message.CDR_ENC_VERSION) { return new BufferManagerWriteGrow(orb); } return BufferManagerFactory.newBufferManagerWrite(orb.getORBData().getGIOPBuffMgrStrategy(version), encodingVersion, orb); }
public static Message readGIOPBody(ORB orb, CorbaConnection connection, Message msg) { ReadTimeouts readTimeouts = orb.getORBData().getTransportTCPReadTimeouts(); ByteBuffer buf = msg.getByteBuffer(); buf.position(MessageBase.GIOPMessageHeaderLength); int msgSizeMinusHeader = msg.getSize() - MessageBase.GIOPMessageHeaderLength; try { buf = connection .read(buf, GIOPMessageHeaderLength, msgSizeMinusHeader, readTimeouts.get_max_time_to_wait()); } catch (IOException e) { throw wrapper.ioexceptionWhenReadingConnection(e); } msg.setByteBuffer(buf); if (orb.giopDebugFlag) { dprint(".readGIOPBody: received message:"); ByteBuffer viewBuffer = buf.asReadOnlyBuffer(); viewBuffer.position(0).limit(msg.getSize()); ByteBufferWithInfo bbwi = new ByteBufferWithInfo(orb, viewBuffer); CDRInputStream_1_0.printBuffer(bbwi); } return msg; }
serverid = orb.getORBData().getPersistentServerId(); scid = ORBConstants.makePersistent(scid);
short orbTargetAddrPref = orb.getORBData().getGIOPTargetAddressPreference(); short reqAddrDisp = target.discriminator();
public ByteBufferPoolImpl(ORB theORB) { itsByteBufferSize = theORB.getORBData().getGIOPFragmentSize(); itsPool = new ArrayList<ByteBuffer>(); itsOrb = theORB; debug = theORB.transportDebugFlag; }