com.sun.corba.se.spi.transport.ReadTimeouts Java Examples

The following examples show how to use com.sun.corba.se.spi.transport.ReadTimeouts. 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: TransportDefault.java    From jdk1.8-source-analysis with Apache License 2.0 6 votes vote down vote up
public static ReadTimeoutsFactory makeReadTimeoutsFactory()
{
    return new ReadTimeoutsFactory() {
        public ReadTimeouts create(int initial_wait_time,
                                   int max_wait_time,
                                   int max_giop_hdr_wait_time,
                                   int backoff_percent_factor)
        {
            return new ReadTCPTimeoutsImpl(
                initial_wait_time,
                max_wait_time,
                max_giop_hdr_wait_time,
                backoff_percent_factor);
        };
    };
}
 
Example #2
Source File: TransportDefault.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 6 votes vote down vote up
public static ReadTimeoutsFactory makeReadTimeoutsFactory()
{
    return new ReadTimeoutsFactory() {
        public ReadTimeouts create(int initial_wait_time,
                                   int max_wait_time,
                                   int max_giop_hdr_wait_time,
                                   int backoff_percent_factor)
        {
            return new ReadTCPTimeoutsImpl(
                initial_wait_time,
                max_wait_time,
                max_giop_hdr_wait_time,
                backoff_percent_factor);
        };
    };
}
 
Example #3
Source File: TransportDefault.java    From openjdk-jdk9 with GNU General Public License v2.0 6 votes vote down vote up
public static ReadTimeoutsFactory makeReadTimeoutsFactory()
{
    return new ReadTimeoutsFactory() {
        public ReadTimeouts create(int initial_wait_time,
                                   int max_wait_time,
                                   int max_giop_hdr_wait_time,
                                   int backoff_percent_factor)
        {
            return new ReadTCPTimeoutsImpl(
                initial_wait_time,
                max_wait_time,
                max_giop_hdr_wait_time,
                backoff_percent_factor);
        };
    };
}
 
Example #4
Source File: TransportDefault.java    From TencentKona-8 with GNU General Public License v2.0 6 votes vote down vote up
public static ReadTimeoutsFactory makeReadTimeoutsFactory()
{
    return new ReadTimeoutsFactory() {
        public ReadTimeouts create(int initial_wait_time,
                                   int max_wait_time,
                                   int max_giop_hdr_wait_time,
                                   int backoff_percent_factor)
        {
            return new ReadTCPTimeoutsImpl(
                initial_wait_time,
                max_wait_time,
                max_giop_hdr_wait_time,
                backoff_percent_factor);
        };
    };
}
 
Example #5
Source File: TransportDefault.java    From openjdk-8 with GNU General Public License v2.0 6 votes vote down vote up
public static ReadTimeoutsFactory makeReadTimeoutsFactory()
{
    return new ReadTimeoutsFactory() {
        public ReadTimeouts create(int initial_wait_time,
                                   int max_wait_time,
                                   int max_giop_hdr_wait_time,
                                   int backoff_percent_factor)
        {
            return new ReadTCPTimeoutsImpl(
                initial_wait_time,
                max_wait_time,
                max_giop_hdr_wait_time,
                backoff_percent_factor);
        };
    };
}
 
Example #6
Source File: TransportDefault.java    From openjdk-jdk8u with GNU General Public License v2.0 6 votes vote down vote up
public static ReadTimeoutsFactory makeReadTimeoutsFactory()
{
    return new ReadTimeoutsFactory() {
        public ReadTimeouts create(int initial_wait_time,
                                   int max_wait_time,
                                   int max_giop_hdr_wait_time,
                                   int backoff_percent_factor)
        {
            return new ReadTCPTimeoutsImpl(
                initial_wait_time,
                max_wait_time,
                max_giop_hdr_wait_time,
                backoff_percent_factor);
        };
    };
}
 
Example #7
Source File: TransportDefault.java    From hottub with GNU General Public License v2.0 6 votes vote down vote up
public static ReadTimeoutsFactory makeReadTimeoutsFactory()
{
    return new ReadTimeoutsFactory() {
        public ReadTimeouts create(int initial_wait_time,
                                   int max_wait_time,
                                   int max_giop_hdr_wait_time,
                                   int backoff_percent_factor)
        {
            return new ReadTCPTimeoutsImpl(
                initial_wait_time,
                max_wait_time,
                max_giop_hdr_wait_time,
                backoff_percent_factor);
        };
    };
}
 
Example #8
Source File: TransportDefault.java    From jdk8u60 with GNU General Public License v2.0 6 votes vote down vote up
public static ReadTimeoutsFactory makeReadTimeoutsFactory()
{
    return new ReadTimeoutsFactory() {
        public ReadTimeouts create(int initial_wait_time,
                                   int max_wait_time,
                                   int max_giop_hdr_wait_time,
                                   int backoff_percent_factor)
        {
            return new ReadTCPTimeoutsImpl(
                initial_wait_time,
                max_wait_time,
                max_giop_hdr_wait_time,
                backoff_percent_factor);
        };
    };
}
 
Example #9
Source File: TransportDefault.java    From JDKSourceCode1.8 with MIT License 6 votes vote down vote up
public static ReadTimeoutsFactory makeReadTimeoutsFactory()
{
    return new ReadTimeoutsFactory() {
        public ReadTimeouts create(int initial_wait_time,
                                   int max_wait_time,
                                   int max_giop_hdr_wait_time,
                                   int backoff_percent_factor)
        {
            return new ReadTCPTimeoutsImpl(
                initial_wait_time,
                max_wait_time,
                max_giop_hdr_wait_time,
                backoff_percent_factor);
        };
    };
}
 
Example #10
Source File: TransportDefault.java    From openjdk-8-source with GNU General Public License v2.0 6 votes vote down vote up
public static ReadTimeoutsFactory makeReadTimeoutsFactory()
{
    return new ReadTimeoutsFactory() {
        public ReadTimeouts create(int initial_wait_time,
                                   int max_wait_time,
                                   int max_giop_hdr_wait_time,
                                   int backoff_percent_factor)
        {
            return new ReadTCPTimeoutsImpl(
                initial_wait_time,
                max_wait_time,
                max_giop_hdr_wait_time,
                backoff_percent_factor);
        };
    };
}
 
Example #11
Source File: MessageBase.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 5 votes vote down vote up
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;
}
 
Example #12
Source File: MessageBase.java    From openjdk-jdk8u with GNU General Public License v2.0 5 votes vote down vote up
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;
}
 
Example #13
Source File: MessageBase.java    From openjdk-jdk9 with GNU General Public License v2.0 5 votes vote down vote up
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;
}
 
Example #14
Source File: MessageBase.java    From JDKSourceCode1.8 with MIT License 5 votes vote down vote up
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;
}
 
Example #15
Source File: MessageBase.java    From hottub with GNU General Public License v2.0 5 votes vote down vote up
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;
}
 
Example #16
Source File: MessageBase.java    From openjdk-8-source with GNU General Public License v2.0 5 votes vote down vote up
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;
}
 
Example #17
Source File: MessageBase.java    From jdk1.8-source-analysis with Apache License 2.0 5 votes vote down vote up
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;
}
 
Example #18
Source File: MessageBase.java    From TencentKona-8 with GNU General Public License v2.0 5 votes vote down vote up
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;
}
 
Example #19
Source File: MessageBase.java    From jdk8u60 with GNU General Public License v2.0 5 votes vote down vote up
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;
}
 
Example #20
Source File: MessageBase.java    From openjdk-8 with GNU General Public License v2.0 5 votes vote down vote up
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;
}
 
Example #21
Source File: ORBDataParserImpl.java    From openjdk-8-source with GNU General Public License v2.0 4 votes vote down vote up
public ReadTimeouts getTransportTCPReadTimeouts()
{
    return readTimeouts;
}
 
Example #22
Source File: ORBDataParserImpl.java    From openjdk-8 with GNU General Public License v2.0 4 votes vote down vote up
public ReadTimeouts getTransportTCPReadTimeouts()
{
    return readTimeouts;
}
 
Example #23
Source File: SocketOrChannelConnectionImpl.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 4 votes vote down vote up
protected void setReadTimeouts(ReadTimeouts readTimeouts) {
    this.readTimeouts = readTimeouts;
}
 
Example #24
Source File: ORBDataParserImpl.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 4 votes vote down vote up
public ReadTimeouts getTransportTCPReadTimeouts()
{
    return readTimeouts;
}
 
Example #25
Source File: SocketOrChannelConnectionImpl.java    From openjdk-8 with GNU General Public License v2.0 4 votes vote down vote up
protected void setReadTimeouts(ReadTimeouts readTimeouts) {
    this.readTimeouts = readTimeouts;
}
 
Example #26
Source File: ReadTimeoutsFactory.java    From openjdk-jdk9 with GNU General Public License v2.0 4 votes vote down vote up
public ReadTimeouts create(int initial_wait_time,
int max_wait_time,
int max_giop_hdr_wait_time,
int backoff_percent_factor);
 
Example #27
Source File: ReadTimeoutsFactory.java    From openjdk-8 with GNU General Public License v2.0 4 votes vote down vote up
public ReadTimeouts create(int initial_wait_time,
int max_wait_time,
int max_giop_hdr_wait_time,
int backoff_percent_factor);
 
Example #28
Source File: SocketOrChannelConnectionImpl.java    From openjdk-jdk9 with GNU General Public License v2.0 4 votes vote down vote up
protected void setReadTimeouts(ReadTimeouts readTimeouts) {
    this.readTimeouts = readTimeouts;
}
 
Example #29
Source File: ORBDataParserImpl.java    From openjdk-jdk9 with GNU General Public License v2.0 4 votes vote down vote up
public ReadTimeouts getTransportTCPReadTimeouts()
{
    return readTimeouts;
}
 
Example #30
Source File: SocketOrChannelConnectionImpl.java    From openjdk-8-source with GNU General Public License v2.0 4 votes vote down vote up
protected void setReadTimeouts(ReadTimeouts readTimeouts) {
    this.readTimeouts = readTimeouts;
}