KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > sun > corba > se > impl > protocol > CorbaInvocationInfo


1 /*
2  * @(#)CorbaInvocationInfo.java 1.18 03/12/19
3  *
4  * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
5  * SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
6  */

7
8 package com.sun.corba.se.impl.protocol;
9
10 import java.util.Iterator JavaDoc;
11
12 import com.sun.corba.se.spi.orb.ORB;
13
14 import com.sun.corba.se.pept.protocol.ClientInvocationInfo;
15 import com.sun.corba.se.pept.protocol.MessageMediator;
16
17 import com.sun.corba.se.pept.protocol.ClientRequestDispatcher;
18
19 /**
20  * @author Harold Carr
21  */

22 public class CorbaInvocationInfo implements ClientInvocationInfo
23 {
24     // REVISIT - these needs to be an interface-based impl.
25

26     private boolean isRetryInvocation;
27     private int entryCount;
28     private ORB orb;
29     private Iterator JavaDoc contactInfoListIterator;
30     private ClientRequestDispatcher clientRequestDispatcher;
31     private MessageMediator messageMediator;
32     
33     private CorbaInvocationInfo()
34     {
35     }
36
37     public CorbaInvocationInfo(ORB orb)
38     {
39     this.orb = orb;
40     isRetryInvocation = false;
41     entryCount = 0;
42     }
43     
44     public Iterator JavaDoc getContactInfoListIterator()
45     {
46     return contactInfoListIterator;
47     }
48     
49     public void setContactInfoListIterator(Iterator JavaDoc contactInfoListIterator)
50     {
51     this.contactInfoListIterator = contactInfoListIterator;
52     }
53     
54     public boolean isRetryInvocation()
55     {
56     return isRetryInvocation;
57     }
58     
59     public void setIsRetryInvocation(boolean isRetryInvocation)
60     {
61     this.isRetryInvocation = isRetryInvocation;
62     }
63     
64     public int getEntryCount()
65     {
66     return entryCount;
67     }
68     
69     public void incrementEntryCount()
70     {
71     entryCount++;
72     }
73     
74     public void decrementEntryCount()
75     {
76     entryCount--;
77     }
78     
79     public void setClientRequestDispatcher(ClientRequestDispatcher clientRequestDispatcher)
80     {
81     this.clientRequestDispatcher = clientRequestDispatcher;
82     }
83
84     public ClientRequestDispatcher getClientRequestDispatcher()
85     {
86     return clientRequestDispatcher;
87     }
88
89     public void setMessageMediator(MessageMediator messageMediator)
90     {
91         this.messageMediator = messageMediator;
92     }
93
94     public MessageMediator getMessageMediator()
95     {
96         return messageMediator;
97     }
98 }
99
100 // End of file.
101
Popular Tags