CorbaInvocationInfo.java revision 608:7e06bf1dcb09
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 */
25
26package com.sun.corba.se.impl.protocol;
27
28import java.util.Iterator;
29
30import com.sun.corba.se.spi.orb.ORB;
31
32import com.sun.corba.se.pept.protocol.ClientInvocationInfo;
33import com.sun.corba.se.pept.protocol.MessageMediator;
34
35import com.sun.corba.se.pept.protocol.ClientRequestDispatcher;
36
37/**
38 * @author Harold Carr
39 */
40public class CorbaInvocationInfo implements ClientInvocationInfo
41{
42    // REVISIT - these needs to be an interface-based impl.
43
44    private boolean isRetryInvocation;
45    private int entryCount;
46    private ORB orb;
47    private Iterator contactInfoListIterator;
48    private ClientRequestDispatcher clientRequestDispatcher;
49    private MessageMediator messageMediator;
50
51    private CorbaInvocationInfo()
52    {
53    }
54
55    public CorbaInvocationInfo(ORB orb)
56    {
57        this.orb = orb;
58        isRetryInvocation = false;
59        entryCount = 0;
60    }
61
62    public Iterator getContactInfoListIterator()
63    {
64        return contactInfoListIterator;
65    }
66
67    public void setContactInfoListIterator(Iterator contactInfoListIterator)
68    {
69        this.contactInfoListIterator = contactInfoListIterator;
70    }
71
72    public boolean isRetryInvocation()
73    {
74        return isRetryInvocation;
75    }
76
77    public void setIsRetryInvocation(boolean isRetryInvocation)
78    {
79        this.isRetryInvocation = isRetryInvocation;
80    }
81
82    public int getEntryCount()
83    {
84        return entryCount;
85    }
86
87    public void incrementEntryCount()
88    {
89        entryCount++;
90    }
91
92    public void decrementEntryCount()
93    {
94        entryCount--;
95    }
96
97    public void setClientRequestDispatcher(ClientRequestDispatcher clientRequestDispatcher)
98    {
99        this.clientRequestDispatcher = clientRequestDispatcher;
100    }
101
102    public ClientRequestDispatcher getClientRequestDispatcher()
103    {
104        return clientRequestDispatcher;
105    }
106
107    public void setMessageMediator(MessageMediator messageMediator)
108    {
109        this.messageMediator = messageMediator;
110    }
111
112    public MessageMediator getMessageMediator()
113    {
114        return messageMediator;
115    }
116}
117
118// End of file.
119