1. /*
  2. * @(#)ORB.java 1.37 03/01/23
  3. *
  4. * Copyright 2003 Sun Microsystems, Inc. All rights reserved.
  5. * SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
  6. */
  7. package com.sun.corba.se.internal.core;
  8. /**
  9. *
  10. */
  11. public abstract class ORB extends com.sun.corba.se.org.omg.CORBA.ORB {
  12. /**
  13. * Get an instance of the GIOP client implementation.
  14. */
  15. public abstract ClientGIOP getClientGIOP();
  16. /**
  17. * Get an instance of the GIOP server implementation.
  18. */
  19. public abstract ServerGIOP getServerGIOP();
  20. /**
  21. * Return the subcontract registry
  22. */
  23. public abstract SubcontractRegistry getSubcontractRegistry();
  24. /** Obtain the service context registry.
  25. */
  26. public abstract ServiceContextRegistry getServiceContextRegistry() ;
  27. /**
  28. * Get a new instance of a GIOP input stream.
  29. */
  30. public abstract MarshalInputStream newInputStream();
  31. /**
  32. * Get a new instance of a GIOP input stream.
  33. */
  34. public abstract MarshalInputStream newInputStream(byte[] buffer, int size);
  35. public abstract MarshalInputStream newInputStream(byte[] buffer, int size,
  36. boolean littleEndian);
  37. /**
  38. * Get a new instance of a GIOP output stream.
  39. */
  40. public abstract MarshalOutputStream newOutputStream();
  41. /**
  42. * Get the transient server ID
  43. */
  44. public abstract int getTransientServerId();
  45. /**
  46. * Return the bootstrap naming port specified in the ORBInitialPort param.
  47. */
  48. public abstract int getORBInitialPort();
  49. /**
  50. * Return the bootstrap naming host specified in the ORBInitialHost param.
  51. */
  52. public abstract String getORBInitialHost();
  53. /**
  54. * Get the server host name. Note that this could be set the
  55. * application programmer using a system property.
  56. */
  57. public abstract String getORBServerHost();
  58. /**
  59. * Get the server port no. Note that this could be set the
  60. * application programmer using a system property.
  61. */
  62. public abstract int getORBServerPort();
  63. /**
  64. * Get the Character Code Set encoding info.
  65. */
  66. public abstract CodeSetComponentInfo getCodeSetComponentInfo();
  67. /**
  68. * Return true iff the hostName is the same as the host name
  69. * on which this ORB is running.
  70. */
  71. public abstract boolean isLocalHost( String hostName ) ;
  72. /**
  73. * Return true iff the server id in the object key is the same as
  74. * the corresponding server id in this ORB.
  75. */
  76. public abstract boolean isLocalServerId( int subcontractId, int serverId ) ;
  77. /**
  78. * Return true if the port number is same as the ORB Server port.
  79. */
  80. public abstract boolean isLocalServerPort( int port );
  81. /**
  82. * Get the default GIOP version the ORB will support.
  83. */
  84. public abstract GIOPVersion getGIOPVersion();
  85. }