Package com.sun.corba.ee.impl.ior
Class ObjectKeyTemplateBase
java.lang.Object
com.sun.corba.ee.impl.ior.ObjectKeyTemplateBase
- All Implemented Interfaces:
ObjectKeyTemplate
,Writeable
- Direct Known Subclasses:
NewObjectKeyTemplateBase
,OldObjectKeyTemplateBase
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate byte[]
static final ObjectAdapterId
private static final String[]
static final String
private int
private ObjectAdapterId
private ORB
private String
private int
private int
private ORBVersion
protected static final IORSystemException
-
Constructor Summary
ConstructorsConstructorDescriptionObjectKeyTemplateBase
(ORB orb, int magic, int scid, int serverid, String orbid, ObjectAdapterId oaid) This constructor reads a complete ObjectKey (template and Id) from the stream. -
Method Summary
Modifier and TypeMethodDescriptionprivate byte[]
boolean
byte[]
Compute an adapter ID for this template than includes all of the template information.protected int
getMagic()
Return the object adapter ID for this template.getORBId()
Return the ORB ID for this template.int
Return the server ID for this template.int
An ID used to determine how to perform operations on this ObjectKeyTemplate.int
hashCode()
protected byte[]
void
setORBVersion
(ORBVersion version) toString()
void
write
(ObjectId objectId, OutputStream os) void
write
(OutputStream os) Write this object directly to the output stream.protected abstract void
-
Field Details
-
wrapper
-
JIDL_ORB_ID
- See Also:
-
JIDL_OAID_STRINGS
-
JIDL_OAID
-
orb
-
version
-
magic
private int magic -
scid
private int scid -
serverid
private int serverid -
orbid
-
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 usemagic
- Magic numberscid
- ID of the Objectserverid
- server IDorbid
- orbidoaid
- oaid
-
-
Method Details
-
toString
-
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 interfaceObjectKeyTemplate
- Returns:
- adapter ID for this template
-
computeAdapterId
private byte[] computeAdapterId() -
equals
-
hashCode
public int hashCode() -
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 interfaceObjectKeyTemplate
- 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 interfaceObjectKeyTemplate
- Returns:
- The ID of the server that handles requests to this IOR"
-
getORBId
Description copied from interface:ObjectKeyTemplate
Return the ORB ID for this template.- Specified by:
getORBId
in interfaceObjectKeyTemplate
- Returns:
- the ORB ID that created this IOR
-
getObjectAdapterId
Description copied from interface:ObjectKeyTemplate
Return the object adapter ID for this template.- Specified by:
getObjectAdapterId
in interfaceObjectKeyTemplate
- Returns:
- The ObjectAdapterId that identifies the ObjectAdapter that created this IOR
-
write
- Specified by:
write
in interfaceObjectKeyTemplate
-
write
Description copied from interface:Writeable
Write this object directly to the output stream. -
writeTemplate
-
getMagic
protected int getMagic() -
setORBVersion
-
getORBVersion
- Specified by:
getORBVersion
in interfaceObjectKeyTemplate
-
readObjectKey
-
getServerRequestDispatcher
- Specified by:
getServerRequestDispatcher
in interfaceObjectKeyTemplate
-