Java Code Examples for com.sun.corba.se.impl.orbutil.ORBConstants#GIOP_DEFAULT_BUFFER_SIZE

The following examples show how to use com.sun.corba.se.impl.orbutil.ORBConstants#GIOP_DEFAULT_BUFFER_SIZE . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: BufferManagerWriteGrow.java    From JDKSourceCode1.8 with MIT License 6 votes vote down vote up
/**
 * Returns the correct buffer size for this type of
 * buffer manager as set in the ORB.
 */
public int getBufferSize() {
    ORBData orbData = null;
    int bufferSize = ORBConstants.GIOP_DEFAULT_BUFFER_SIZE;
    if (orb != null) {
        orbData = orb.getORBData();
        if (orbData != null) {
            bufferSize = orbData.getGIOPBufferSize();
            dprint("BufferManagerWriteGrow.getBufferSize: bufferSize == " + bufferSize);
        } else {
            dprint("BufferManagerWriteGrow.getBufferSize: orbData reference is NULL");
        }
    } else {
        dprint("BufferManagerWriteGrow.getBufferSize: orb reference is NULL");
    }
    return bufferSize;
}
 
Example 2
Source File: BufferManagerWriteGrow.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 6 votes vote down vote up
/**
 * Returns the correct buffer size for this type of
 * buffer manager as set in the ORB.
 */
public int getBufferSize() {
    ORBData orbData = null;
    int bufferSize = ORBConstants.GIOP_DEFAULT_BUFFER_SIZE;
    if (orb != null) {
        orbData = orb.getORBData();
        if (orbData != null) {
            bufferSize = orbData.getGIOPBufferSize();
            dprint("BufferManagerWriteGrow.getBufferSize: bufferSize == " + bufferSize);
        } else {
            dprint("BufferManagerWriteGrow.getBufferSize: orbData reference is NULL");
        }
    } else {
        dprint("BufferManagerWriteGrow.getBufferSize: orb reference is NULL");
    }
    return bufferSize;
}
 
Example 3
Source File: IDLJavaSerializationOutputStream.java    From jdk1.8-source-analysis with Apache License 2.0 5 votes vote down vote up
public void init(org.omg.CORBA.ORB orb, boolean littleEndian,
                 BufferManagerWrite bufferManager,
                 byte streamFormatVersion,
                 boolean usePooledByteBuffers) {
    this.orb = (ORB) orb;
    this.bufferManager = bufferManager;
    wrapper = ORBUtilSystemException.get((ORB) orb,
                                         CORBALogDomains.RPC_ENCODING);
    bos =
        new _ByteArrayOutputStream(ORBConstants.GIOP_DEFAULT_BUFFER_SIZE);
}
 
Example 4
Source File: IDLJavaSerializationOutputStream.java    From TencentKona-8 with GNU General Public License v2.0 5 votes vote down vote up
public void init(org.omg.CORBA.ORB orb, boolean littleEndian,
                 BufferManagerWrite bufferManager,
                 byte streamFormatVersion,
                 boolean usePooledByteBuffers) {
    this.orb = (ORB) orb;
    this.bufferManager = bufferManager;
    wrapper = ORBUtilSystemException.get((ORB) orb,
                                         CORBALogDomains.RPC_ENCODING);
    bos =
        new _ByteArrayOutputStream(ORBConstants.GIOP_DEFAULT_BUFFER_SIZE);
}
 
Example 5
Source File: IDLJavaSerializationOutputStream.java    From openjdk-8 with GNU General Public License v2.0 5 votes vote down vote up
public void init(org.omg.CORBA.ORB orb, boolean littleEndian,
                 BufferManagerWrite bufferManager,
                 byte streamFormatVersion,
                 boolean usePooledByteBuffers) {
    this.orb = (ORB) orb;
    this.bufferManager = bufferManager;
    wrapper = ORBUtilSystemException.get((ORB) orb,
                                         CORBALogDomains.RPC_ENCODING);
    bos =
        new _ByteArrayOutputStream(ORBConstants.GIOP_DEFAULT_BUFFER_SIZE);
}
 
Example 6
Source File: IDLJavaSerializationOutputStream.java    From hottub with GNU General Public License v2.0 5 votes vote down vote up
public void init(org.omg.CORBA.ORB orb, boolean littleEndian,
                 BufferManagerWrite bufferManager,
                 byte streamFormatVersion,
                 boolean usePooledByteBuffers) {
    this.orb = (ORB) orb;
    this.bufferManager = bufferManager;
    wrapper = ORBUtilSystemException.get((ORB) orb,
                                         CORBALogDomains.RPC_ENCODING);
    bos =
        new _ByteArrayOutputStream(ORBConstants.GIOP_DEFAULT_BUFFER_SIZE);
}
 
Example 7
Source File: IDLJavaSerializationOutputStream.java    From jdk8u60 with GNU General Public License v2.0 5 votes vote down vote up
public void init(org.omg.CORBA.ORB orb, boolean littleEndian,
                 BufferManagerWrite bufferManager,
                 byte streamFormatVersion,
                 boolean usePooledByteBuffers) {
    this.orb = (ORB) orb;
    this.bufferManager = bufferManager;
    wrapper = ORBUtilSystemException.get((ORB) orb,
                                         CORBALogDomains.RPC_ENCODING);
    bos =
        new _ByteArrayOutputStream(ORBConstants.GIOP_DEFAULT_BUFFER_SIZE);
}
 
Example 8
Source File: IDLJavaSerializationOutputStream.java    From JDKSourceCode1.8 with MIT License 5 votes vote down vote up
public void init(org.omg.CORBA.ORB orb, boolean littleEndian,
                 BufferManagerWrite bufferManager,
                 byte streamFormatVersion,
                 boolean usePooledByteBuffers) {
    this.orb = (ORB) orb;
    this.bufferManager = bufferManager;
    wrapper = ORBUtilSystemException.get((ORB) orb,
                                         CORBALogDomains.RPC_ENCODING);
    bos =
        new _ByteArrayOutputStream(ORBConstants.GIOP_DEFAULT_BUFFER_SIZE);
}
 
Example 9
Source File: IDLJavaSerializationOutputStream.java    From openjdk-jdk9 with GNU General Public License v2.0 5 votes vote down vote up
public void init(org.omg.CORBA.ORB orb, boolean littleEndian,
                 BufferManagerWrite bufferManager,
                 byte streamFormatVersion,
                 boolean usePooledByteBuffers) {
    this.orb = (ORB) orb;
    this.bufferManager = bufferManager;
    wrapper = ORBUtilSystemException.get((ORB) orb,
                                         CORBALogDomains.RPC_ENCODING);
    bos =
        new _ByteArrayOutputStream(ORBConstants.GIOP_DEFAULT_BUFFER_SIZE);
}
 
Example 10
Source File: IDLJavaSerializationOutputStream.java    From openjdk-jdk8u with GNU General Public License v2.0 5 votes vote down vote up
public void init(org.omg.CORBA.ORB orb, boolean littleEndian,
                 BufferManagerWrite bufferManager,
                 byte streamFormatVersion,
                 boolean usePooledByteBuffers) {
    this.orb = (ORB) orb;
    this.bufferManager = bufferManager;
    wrapper = ORBUtilSystemException.get((ORB) orb,
                                         CORBALogDomains.RPC_ENCODING);
    bos =
        new _ByteArrayOutputStream(ORBConstants.GIOP_DEFAULT_BUFFER_SIZE);
}
 
Example 11
Source File: IDLJavaSerializationOutputStream.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 5 votes vote down vote up
public void init(org.omg.CORBA.ORB orb, boolean littleEndian,
                 BufferManagerWrite bufferManager,
                 byte streamFormatVersion,
                 boolean usePooledByteBuffers) {
    this.orb = (ORB) orb;
    this.bufferManager = bufferManager;
    wrapper = ORBUtilSystemException.get((ORB) orb,
                                         CORBALogDomains.RPC_ENCODING);
    bos =
        new _ByteArrayOutputStream(ORBConstants.GIOP_DEFAULT_BUFFER_SIZE);
}
 
Example 12
Source File: ORBSingleton.java    From hottub with GNU General Public License v2.0 4 votes vote down vote up
public int getGIOPFragmentSize() {
    return ORBConstants.GIOP_DEFAULT_BUFFER_SIZE;
}
 
Example 13
Source File: ORBSingleton.java    From openjdk-jdk9 with GNU General Public License v2.0 4 votes vote down vote up
public int getGIOPFragmentSize() {
    return ORBConstants.GIOP_DEFAULT_BUFFER_SIZE;
}
 
Example 14
Source File: ORBSingleton.java    From openjdk-8-source with GNU General Public License v2.0 4 votes vote down vote up
public int getGIOPFragmentSize() {
    return ORBConstants.GIOP_DEFAULT_BUFFER_SIZE;
}
 
Example 15
Source File: ORBSingleton.java    From openjdk-jdk8u with GNU General Public License v2.0 4 votes vote down vote up
public int getGIOPFragmentSize() {
    return ORBConstants.GIOP_DEFAULT_BUFFER_SIZE;
}
 
Example 16
Source File: ORBSingleton.java    From openjdk-8 with GNU General Public License v2.0 4 votes vote down vote up
public int getGIOPFragmentSize() {
    return ORBConstants.GIOP_DEFAULT_BUFFER_SIZE;
}
 
Example 17
Source File: ORBSingleton.java    From JDKSourceCode1.8 with MIT License 4 votes vote down vote up
public int getGIOPFragmentSize() {
    return ORBConstants.GIOP_DEFAULT_BUFFER_SIZE;
}
 
Example 18
Source File: ORBSingleton.java    From jdk8u60 with GNU General Public License v2.0 4 votes vote down vote up
public int getGIOPFragmentSize() {
    return ORBConstants.GIOP_DEFAULT_BUFFER_SIZE;
}
 
Example 19
Source File: ORBSingleton.java    From TencentKona-8 with GNU General Public License v2.0 4 votes vote down vote up
public int getGIOPFragmentSize() {
    return ORBConstants.GIOP_DEFAULT_BUFFER_SIZE;
}
 
Example 20
Source File: ORBSingleton.java    From jdk1.8-source-analysis with Apache License 2.0 4 votes vote down vote up
public int getGIOPFragmentSize() {
    return ORBConstants.GIOP_DEFAULT_BUFFER_SIZE;
}