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. package com.sun.corba.se.impl.protocol;
  8. import java.util.Iterator;
  9. import com.sun.corba.se.spi.orb.ORB;
  10. import com.sun.corba.se.pept.protocol.ClientInvocationInfo;
  11. import com.sun.corba.se.pept.protocol.MessageMediator;
  12. import com.sun.corba.se.pept.protocol.ClientRequestDispatcher;
  13. /**
  14. * @author Harold Carr
  15. */
  16. public class CorbaInvocationInfo implements ClientInvocationInfo
  17. {
  18. // REVISIT - these needs to be an interface-based impl.
  19. private boolean isRetryInvocation;
  20. private int entryCount;
  21. private ORB orb;
  22. private Iterator contactInfoListIterator;
  23. private ClientRequestDispatcher clientRequestDispatcher;
  24. private MessageMediator messageMediator;
  25. private CorbaInvocationInfo()
  26. {
  27. }
  28. public CorbaInvocationInfo(ORB orb)
  29. {
  30. this.orb = orb;
  31. isRetryInvocation = false;
  32. entryCount = 0;
  33. }
  34. public Iterator getContactInfoListIterator()
  35. {
  36. return contactInfoListIterator;
  37. }
  38. public void setContactInfoListIterator(Iterator contactInfoListIterator)
  39. {
  40. this.contactInfoListIterator = contactInfoListIterator;
  41. }
  42. public boolean isRetryInvocation()
  43. {
  44. return isRetryInvocation;
  45. }
  46. public void setIsRetryInvocation(boolean isRetryInvocation)
  47. {
  48. this.isRetryInvocation = isRetryInvocation;
  49. }
  50. public int getEntryCount()
  51. {
  52. return entryCount;
  53. }
  54. public void incrementEntryCount()
  55. {
  56. entryCount++;
  57. }
  58. public void decrementEntryCount()
  59. {
  60. entryCount--;
  61. }
  62. public void setClientRequestDispatcher(ClientRequestDispatcher clientRequestDispatcher)
  63. {
  64. this.clientRequestDispatcher = clientRequestDispatcher;
  65. }
  66. public ClientRequestDispatcher getClientRequestDispatcher()
  67. {
  68. return clientRequestDispatcher;
  69. }
  70. public void setMessageMediator(MessageMediator messageMediator)
  71. {
  72. this.messageMediator = messageMediator;
  73. }
  74. public MessageMediator getMessageMediator()
  75. {
  76. return messageMediator;
  77. }
  78. }
  79. // End of file.