Thu, 31 Aug 2017 18:10:36 +0800
merge
1 /*
2 * Copyright (c) 2001, 2003, Oracle and/or its affiliates. All rights reserved.
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 *
5 * This code is free software; you can redistribute it and/or modify it
6 * under the terms of the GNU General Public License version 2 only, as
7 * published by the Free Software Foundation. Oracle designates this
8 * particular file as subject to the "Classpath" exception as provided
9 * by Oracle in the LICENSE file that accompanied this code.
10 *
11 * This code is distributed in the hope that it will be useful, but WITHOUT
12 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
13 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
14 * version 2 for more details (a copy is included in the LICENSE file that
15 * accompanied this code).
16 *
17 * You should have received a copy of the GNU General Public License version
18 * 2 along with this work; if not, write to the Free Software Foundation,
19 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
20 *
21 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
22 * or visit www.oracle.com if you need additional information or have any
23 * questions.
24 */
26 package com.sun.corba.se.impl.protocol;
28 import java.util.Iterator;
30 import com.sun.corba.se.spi.orb.ORB;
32 import com.sun.corba.se.pept.protocol.ClientInvocationInfo;
33 import com.sun.corba.se.pept.protocol.MessageMediator;
35 import com.sun.corba.se.pept.protocol.ClientRequestDispatcher;
37 /**
38 * @author Harold Carr
39 */
40 public class CorbaInvocationInfo implements ClientInvocationInfo
41 {
42 // REVISIT - these needs to be an interface-based impl.
44 private boolean isRetryInvocation;
45 private int entryCount;
46 private ORB orb;
47 private Iterator contactInfoListIterator;
48 private ClientRequestDispatcher clientRequestDispatcher;
49 private MessageMediator messageMediator;
51 private CorbaInvocationInfo()
52 {
53 }
55 public CorbaInvocationInfo(ORB orb)
56 {
57 this.orb = orb;
58 isRetryInvocation = false;
59 entryCount = 0;
60 }
62 public Iterator getContactInfoListIterator()
63 {
64 return contactInfoListIterator;
65 }
67 public void setContactInfoListIterator(Iterator contactInfoListIterator)
68 {
69 this.contactInfoListIterator = contactInfoListIterator;
70 }
72 public boolean isRetryInvocation()
73 {
74 return isRetryInvocation;
75 }
77 public void setIsRetryInvocation(boolean isRetryInvocation)
78 {
79 this.isRetryInvocation = isRetryInvocation;
80 }
82 public int getEntryCount()
83 {
84 return entryCount;
85 }
87 public void incrementEntryCount()
88 {
89 entryCount++;
90 }
92 public void decrementEntryCount()
93 {
94 entryCount--;
95 }
97 public void setClientRequestDispatcher(ClientRequestDispatcher clientRequestDispatcher)
98 {
99 this.clientRequestDispatcher = clientRequestDispatcher;
100 }
102 public ClientRequestDispatcher getClientRequestDispatcher()
103 {
104 return clientRequestDispatcher;
105 }
107 public void setMessageMediator(MessageMediator messageMediator)
108 {
109 this.messageMediator = messageMediator;
110 }
112 public MessageMediator getMessageMediator()
113 {
114 return messageMediator;
115 }
116 }
118 // End of file.