Class ObjectKeyTemplateBase

java.lang.Object
com.sun.corba.ee.impl.ior.ObjectKeyTemplateBase
All Implemented Interfaces:
ObjectKeyTemplate, Writeable
Direct Known Subclasses:
NewObjectKeyTemplateBase, OldObjectKeyTemplateBase

public abstract class ObjectKeyTemplateBase extends Object implements ObjectKeyTemplate
  • Field Details

    • wrapper

      protected static final IORSystemException wrapper
    • JIDL_ORB_ID

      public static final String JIDL_ORB_ID
      See Also:
    • JIDL_OAID_STRINGS

      private static final String[] JIDL_OAID_STRINGS
    • JIDL_OAID

      public static final ObjectAdapterId JIDL_OAID
    • orb

      private ORB orb
    • version

      private ORBVersion version
    • magic

      private int magic
    • scid

      private int scid
    • serverid

      private int serverid
    • orbid

      private String orbid
    • oaid

      private ObjectAdapterId oaid
    • adapterId

      private byte[] adapterId
  • Constructor Details

    • ObjectKeyTemplateBase

      public ObjectKeyTemplateBase(ORB orb, int magic, int scid, int serverid, String orbid, ObjectAdapterId oaid)
      This constructor reads a complete ObjectKey (template and Id) from the stream.
      Parameters:
      orb - ORB to use
      magic - Magic number
      scid - ID of the Object
      serverid - server ID
      orbid - orbid
      oaid - oaid
  • Method Details

    • toString

      public String toString()
      Overrides:
      toString in class Object
    • getAdapterId

      public byte[] getAdapterId()
      Description copied from interface: ObjectKeyTemplate
      Compute an adapter ID for this template than includes all of the template information. This value is cached to avoid the expense of recomputing it.
      Specified by:
      getAdapterId in interface ObjectKeyTemplate
      Returns:
      adapter ID for this template
    • computeAdapterId

      private byte[] computeAdapterId()
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • getSubcontractId

      public int getSubcontractId()
      Description copied from interface: ObjectKeyTemplate
      An ID used to determine how to perform operations on this ObjectKeyTemplate. This id determines how to process requests on this object reference, and what object adapter type to use.
      Specified by:
      getSubcontractId in interface ObjectKeyTemplate
      Returns:
      The subcontract ID
    • getServerId

      public int getServerId()
      Description copied from interface: ObjectKeyTemplate
      Return the server ID for this template. For CORBA 3.0, this should be a String, but it is currently an int in the object key template.
      Specified by:
      getServerId in interface ObjectKeyTemplate
      Returns:
      The ID of the server that handles requests to this IOR"
    • getORBId

      public String getORBId()
      Description copied from interface: ObjectKeyTemplate
      Return the ORB ID for this template.
      Specified by:
      getORBId in interface ObjectKeyTemplate
      Returns:
      the ORB ID that created this IOR
    • getObjectAdapterId

      public ObjectAdapterId getObjectAdapterId()
      Description copied from interface: ObjectKeyTemplate
      Return the object adapter ID for this template.
      Specified by:
      getObjectAdapterId in interface ObjectKeyTemplate
      Returns:
      The ObjectAdapterId that identifies the ObjectAdapter that created this IOR
    • write

      public void write(ObjectId objectId, OutputStream os)
      Specified by:
      write in interface ObjectKeyTemplate
    • write

      public void write(OutputStream os)
      Description copied from interface: Writeable
      Write this object directly to the output stream.
      Specified by:
      write in interface Writeable
      Parameters:
      os - stream to write to
    • writeTemplate

      protected abstract void writeTemplate(OutputStream os)
    • getMagic

      protected int getMagic()
    • setORBVersion

      public void setORBVersion(ORBVersion version)
    • getORBVersion

      public ORBVersion getORBVersion()
      Specified by:
      getORBVersion in interface ObjectKeyTemplate
    • readObjectKey

      protected byte[] readObjectKey(InputStream is)
    • getServerRequestDispatcher

      public ServerRequestDispatcher getServerRequestDispatcher(ObjectId id)
      Specified by:
      getServerRequestDispatcher in interface ObjectKeyTemplate