Package com.sun.star.corba

Examples of com.sun.star.corba.LogicalThreadID


  private IMessage readRequest(Unmarshal unmarshal) throws Exception {
    ++ _requestsRecieved;

    RequestHeader_1_2 requestHeader = (RequestHeader_1_2)unmarshal.readObject(__RequestHeader_1_2TypeDescription);
   
    LogicalThreadID logicalThreadID = unmarshalLogicalThreadID(unmarshal.isLittleEndian(), requestHeader.service_context[0].context_data);
   
    ObjectKey objectKey = unmarshalObjectKey(unmarshal.isLittleEndian(), requestHeader.target.object_key);
   
    boolean synchron = (requestHeader.response_flags != 0); // if != 0, then it should be 3
   
View Full Code Here


    return iMessage;
  }
 
  private IMessage readReply(Unmarshal unmarshal) throws Exception {
    ReplyHeader_1_2 replyHeader = (ReplyHeader_1_2)unmarshal.readObject(__ReplyHeader_1_2TypeDescription);
    LogicalThreadID logicalThreadID = unmarshalLogicalThreadID(unmarshal.isLittleEndian(), replyHeader.service_context[0].context_data);
   
    ThreadID threadId = new ThreadID(logicalThreadID.IDs[0].threadID);

    Object data[] = (Object[])removePendingRequest(threadId);
    IMessage iMessage = new Message(null,               // oid
View Full Code Here

                                        new IOR(new CorbaString8(""),
                                            new TaggedProfile[0])
                                          )
                              );

    LogicalThreadID logicalThreadID = new LogicalThreadID(new OneThreadID[]{new OneThreadID(0, threadId.getBytes())});
    ServiceContext serviceContexts[] = new ServiceContext[]{new ServiceContext(4, marshalLogicalThreadID(logicalThreadID))};


    // if the type of request is not provided, use methodDescription if available, otherwise fall back to synchron
    if(synchron[0] == null) {
View Full Code Here

    TypeDescription resType    = (TypeDescription)data[2];
    int requestId     = ((Integer)data[3]).intValue();

    Marshal marshal = new Marshal(false, _iBridge);

    LogicalThreadID logicalThreadID = new LogicalThreadID(new OneThreadID[]{new OneThreadID(0, threadId.getBytes())});
    ServiceContext serviceContexts[] = new ServiceContext[]{new ServiceContext(4, marshalLogicalThreadID(logicalThreadID))};

    int messageType = MsgType_1_1.Reply_value;
    marshal.writeObject(__ReplyHeader_1_2TypeDescription,
              new ReplyHeader_1_2(requestId,
View Full Code Here

TOP

Related Classes of com.sun.star.corba.LogicalThreadID

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.