org.jacorb.orb

Class Delegate

public final class Delegate extends Delegate implements Configurable

JacORB implementation of CORBA object reference

Version: $Id: Delegate.java,v 1.143 2007/02/15 12:56:06 andre.spiegel Exp $

Author: Gerald Brose

Constructor Summary
Delegate(ORB orb, ParsedIOR pior)
Delegate(ORB orb, String object_reference)
Delegate(ORB orb, IOR ior)
Delegate(ORB orb, String object_reference, boolean _donotcheckexceptions)
special constructor for appligator
Method Summary
voidconfigure(Configuration config)
Requestcreate_request(Object self, Context ctx, String operation, NVList args, NamedValue result)
Requestcreate_request(Object self, Context ctx, String operation, NVList arg_list, NamedValue result, ExceptionList exceptions, ContextList contexts)
booleandoNotCheckExceptions()
Objectduplicate(Object self)
booleanequals(Object obj)
booleanequals(Object self, Object obj)
protected voidfinalize()
Called when a client-side stub is garbage-collected.
Protocol[]getClientProtocols()
StringgetIDString()
IORgetIOR()
byte[]getObjectId()
byte[]getObjectKey()
ParsedIORgetParsedIOR()
POAgetPOA()
ObjectImplgetReference(POA _poa)
longgetRelativeRequestTimeout()
longgetRelativeRoundtripTimeout()
UtcTgetReplyEndTime()
UtcTgetReplyStartTime()
UtcTgetRequestEndTime()
UtcTgetRequestStartTime()
shortgetSyncScope()
Policyget_client_policy(int policy_type)
Gets the effective overriding policy with the given type from the client-side, or null if this policy type is unset.
Stringget_codebase(Object self)
Objectget_component(Object self)
DomainManager[]get_domain_managers(Object self)
InterfaceDefget_interface(Object self)
Objectget_interface_def(Object self)
Setget_pending_replies()
Policyget_policy(Object self, int policy_type)
The get_policy operation returns the policy object of the specified type, which applies to this object.
Policyget_policy(Object self, int policy_type, OutputStream os)
inthash(Object self, int x)
inthashCode()
inthashCode(Object self)
voidinvoke(Object self, OutputStream os, ReplyHandler replyHandler)
Invokes an asynchronous operation using this object reference by sending the request marshalled in the OutputStream.
InputStreaminvoke(Object self, OutputStream os)
Invokes a synchronous operation using this object reference by sending the request marshalled in the OutputStream.
voidinvokeInterceptors(ClientRequestInfoImpl info, short op)
booleanis_a(Object self, String logical_type_id)
Determines whether the object denoted by self has type logical_type_id or a subtype of it
booleanis_equivalent(Object self, Object obj)
booleanis_local(Object self)
booleanis_nil()
voidlockBarrier()
booleannon_existent(Object self)
voidopenBarrier()
ORBorb(Object self)
voidrebind(Object obj)
voidrebind(ParsedIOR ior)
voidrelease(Object self)
Called to indicate that this Delegate will no longer be used by the client.
voidreleaseReply(Object self, InputStream is)
releases the InputStream
voidreplyDone(ReplyPlaceholder placeholder)
Requestrequest(Object self, String operation)
OutputStreamrequest(Object self, String operation, boolean responseExpected)
voidresolvePOA(Object self)
voidservant_postinvoke(Object self, ServantObject servant)
Overrides servant_postinvoke() in org.omg.CORBA.portable.Delegate
called from generated stubs after a local operation
ServantObjectservant_preinvoke(Object self, String operation, Class expectedType)
Overrides servant_preinvoke() in org.omg.CORBA.portable.Delegate
called from generated stubs before a local operation
Objectset_policy_override(Object self, Policy[] policies, SetOverrideType set_add)
StringtoString()
StringtoString(Object self)
StringtypeId()
voidwaitOnBarrier()
int_get_TCKind()

Constructor Detail

Delegate

public Delegate(ORB orb, ParsedIOR pior)

Delegate

public Delegate(ORB orb, String object_reference)

Delegate

public Delegate(ORB orb, IOR ior)

Delegate

public Delegate(ORB orb, String object_reference, boolean _donotcheckexceptions)
special constructor for appligator

Method Detail

configure

public void configure(Configuration config)

create_request

public Request create_request(Object self, Context ctx, String operation, NVList args, NamedValue result)

create_request

public Request create_request(Object self, Context ctx, String operation, NVList arg_list, NamedValue result, ExceptionList exceptions, ContextList contexts)

doNotCheckExceptions

public boolean doNotCheckExceptions()

duplicate

public Object duplicate(Object self)

equals

public boolean equals(Object obj)

equals

public boolean equals(Object self, Object obj)

finalize

protected void finalize()
Called when a client-side stub is garbage-collected. In effect, this method causes the Delegate to unregister itself from the underlying GIOPConnection. If there are no other Delegates using that connection, it will be closed and disposed of altogether.

getClientProtocols

public Protocol[] getClientProtocols()

getIDString

public String getIDString()

getIOR

public IOR getIOR()

getObjectId

public byte[] getObjectId()

getObjectKey

public byte[] getObjectKey()

getParsedIOR

public ParsedIOR getParsedIOR()

getPOA

public POA getPOA()

getReference

public ObjectImpl getReference(POA _poa)

getRelativeRequestTimeout

public long getRelativeRequestTimeout()

getRelativeRoundtripTimeout

public long getRelativeRoundtripTimeout()

getReplyEndTime

public UtcT getReplyEndTime()

getReplyStartTime

public UtcT getReplyStartTime()

getRequestEndTime

public UtcT getRequestEndTime()

getRequestStartTime

public UtcT getRequestStartTime()

getSyncScope

public short getSyncScope()

get_client_policy

public Policy get_client_policy(int policy_type)
Gets the effective overriding policy with the given type from the client-side, or null if this policy type is unset. (Implementation is incomplete, we don't check PolicyCurrent, i.e. at the thread-level)

get_codebase

public String get_codebase(Object self)

get_component

public Object get_component(Object self)

get_domain_managers

public DomainManager[] get_domain_managers(Object self)

get_interface

public InterfaceDef get_interface(Object self)

Deprecated: Deprecated by CORBA 2.3

get_interface_def

public Object get_interface_def(Object self)

get_pending_replies

public Set get_pending_replies()

get_policy

public Policy get_policy(Object self, int policy_type)
The get_policy operation returns the policy object of the specified type, which applies to this object. It returns the effective Policy for the object reference. The effective Policy is the one that would be used if a request were made. This Policy is determined first by obtaining the effective override for the PolicyType as returned by get_client_policy. The effective override is then compared with the Policy as specified in the IOR.

The effective Policy is determined by reconciling the effective override and the IOR-specified Policy. If the two policies cannot be reconciled, the standard system exception INV_POLICY is raised with standard minor code 1. The absence of a Policy value in the IOR implies that any legal value may be used.

get_policy

public Policy get_policy(Object self, int policy_type, OutputStream os)

hash

public int hash(Object self, int x)

hashCode

public int hashCode()

hashCode

public int hashCode(Object self)

invoke

public void invoke(Object self, OutputStream os, ReplyHandler replyHandler)
Invokes an asynchronous operation using this object reference by sending the request marshalled in the OutputStream. The reply will be directed to the supplied ReplyHandler.

invoke

public InputStream invoke(Object self, OutputStream os)
Invokes a synchronous operation using this object reference by sending the request marshalled in the OutputStream.

Returns: the reply, if a reply is expected for this request. If no reply is expected, returns null.

invokeInterceptors

public void invokeInterceptors(ClientRequestInfoImpl info, short op)

is_a

public boolean is_a(Object self, String logical_type_id)
Determines whether the object denoted by self has type logical_type_id or a subtype of it

is_equivalent

public boolean is_equivalent(Object self, Object obj)

is_local

public boolean is_local(Object self)

Returns: true if this object lives on a local POA and interceptors are not installed. When interceptors are installed this returns false so that stubs do not call direct to implementation, avoiding installed interceptors.

is_nil

public boolean is_nil()

lockBarrier

public void lockBarrier()

non_existent

public boolean non_existent(Object self)

openBarrier

public void openBarrier()

orb

public ORB orb(Object self)

rebind

public void rebind(Object obj)

rebind

public void rebind(ParsedIOR ior)

release

public void release(Object self)
Called to indicate that this Delegate will no longer be used by the client. The Delegate unregisters itself from the underlying GIOPConnection. If there are no other Delegates using that connection, it will be closed and disposed of altogether.

releaseReply

public void releaseReply(Object self, InputStream is)
releases the InputStream

replyDone

public void replyDone(ReplyPlaceholder placeholder)

request

public Request request(Object self, String operation)

request

public OutputStream request(Object self, String operation, boolean responseExpected)

resolvePOA

public void resolvePOA(Object self)

servant_postinvoke

public void servant_postinvoke(Object self, ServantObject servant)
Overrides servant_postinvoke() in org.omg.CORBA.portable.Delegate
called from generated stubs after a local operation

servant_preinvoke

public ServantObject servant_preinvoke(Object self, String operation, Class expectedType)
Overrides servant_preinvoke() in org.omg.CORBA.portable.Delegate
called from generated stubs before a local operation

set_policy_override

public Object set_policy_override(Object self, Policy[] policies, SetOverrideType set_add)

toString

public String toString()

toString

public String toString(Object self)

typeId

public String typeId()

waitOnBarrier

public void waitOnBarrier()

_get_TCKind

public int _get_TCKind()