1. /*
  2. * @(#)ORBData.java 1.30 04/06/21
  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.spi.orb ;
  8. import java.lang.reflect.Field ;
  9. import java.util.Map ;
  10. import java.util.Set ;
  11. import java.util.Iterator ;
  12. import java.util.Properties ;
  13. import org.omg.PortableInterceptor.ORBInitializer ;
  14. import com.sun.corba.se.pept.transport.Acceptor;
  15. import com.sun.corba.se.spi.ior.iiop.GIOPVersion ;
  16. import com.sun.corba.se.spi.transport.CorbaContactInfoListFactory;
  17. import com.sun.corba.se.spi.transport.IORToSocketInfo;
  18. import com.sun.corba.se.spi.transport.IIOPPrimaryToContactInfo;
  19. import com.sun.corba.se.spi.transport.ReadTimeouts;
  20. import com.sun.corba.se.impl.legacy.connection.USLPort;
  21. import com.sun.corba.se.impl.encoding.CodeSetComponentInfo ;
  22. public interface ORBData {
  23. public String getORBInitialHost() ;
  24. public int getORBInitialPort() ;
  25. public String getORBServerHost() ;
  26. public int getORBServerPort() ;
  27. public String getListenOnAllInterfaces();
  28. public com.sun.corba.se.spi.legacy.connection.ORBSocketFactory getLegacySocketFactory () ;
  29. public com.sun.corba.se.spi.transport.ORBSocketFactory getSocketFactory();
  30. public USLPort[] getUserSpecifiedListenPorts () ;
  31. public IORToSocketInfo getIORToSocketInfo();
  32. public IIOPPrimaryToContactInfo getIIOPPrimaryToContactInfo();
  33. public String getORBId() ;
  34. public boolean getORBServerIdPropertySpecified() ;
  35. public boolean isLocalOptimizationAllowed() ;
  36. public GIOPVersion getGIOPVersion() ;
  37. public int getHighWaterMark() ;
  38. public int getLowWaterMark() ;
  39. public int getNumberToReclaim() ;
  40. public int getGIOPFragmentSize() ;
  41. public int getGIOPBufferSize() ;
  42. public int getGIOPBuffMgrStrategy(GIOPVersion gv) ;
  43. /**
  44. * @return the GIOP Target Addressing preference of the ORB.
  45. * This ORB by default supports all addressing dispositions unless specified
  46. * otherwise via a java system property ORBConstants.GIOP_TARGET_ADDRESSING
  47. */
  48. public short getGIOPTargetAddressPreference() ;
  49. public short getGIOPAddressDisposition() ;
  50. public boolean useByteOrderMarkers() ;
  51. public boolean useByteOrderMarkersInEncapsulations() ;
  52. public boolean alwaysSendCodeSetServiceContext() ;
  53. public boolean getPersistentPortInitialized() ;
  54. public int getPersistentServerPort();
  55. public boolean getPersistentServerIdInitialized() ;
  56. /** Return the persistent-server-id of this server. This id is the same
  57. * across multiple activations of this server. This is in contrast to
  58. * com.sun.corba.se.impl.iiop.ORB.getTransientServerId() which
  59. * returns a transient id that is guaranteed to be different
  60. * across multiple activations of
  61. * this server. The user/environment is required to supply the
  62. * persistent-server-id every time this server is started, in
  63. * the ORBServerId parameter, System properties, or other means.
  64. * The user is also required to ensure that no two persistent servers
  65. * on the same host have the same server-id.
  66. */
  67. public int getPersistentServerId();
  68. public boolean getServerIsORBActivated() ;
  69. public Class getBadServerIdHandler();
  70. /**
  71. * Get the prefered code sets for connections. Should the client send the
  72. * code set service context on every request?
  73. */
  74. public CodeSetComponentInfo getCodeSetComponentInfo() ;
  75. public ORBInitializer[] getORBInitializers();
  76. public StringPair[] getORBInitialReferences();
  77. public String getORBDefaultInitialReference() ;
  78. public String[] getORBDebugFlags();
  79. public Acceptor[] getAcceptors();
  80. public CorbaContactInfoListFactory getCorbaContactInfoListFactory();
  81. public String acceptorSocketType();
  82. public boolean acceptorSocketUseSelectThreadToWait();
  83. public boolean acceptorSocketUseWorkerThreadForEvent();
  84. public String connectionSocketType();
  85. public boolean connectionSocketUseSelectThreadToWait();
  86. public boolean connectionSocketUseWorkerThreadForEvent();
  87. public ReadTimeouts getTransportTCPReadTimeouts();
  88. public boolean disableDirectByteBufferUse() ;
  89. public boolean isJavaSerializationEnabled();
  90. }
  91. // End of file.