org.jacorb.orb

Class Delegate

Implemented Interfaces:
Configurable

public final class Delegate
extends Delegate
implements Configurable

JacORB implementation of CORBA object reference

Version:
$Id: Delegate.java,v 1.106 2004/05/06 12:40:00 nicolas Exp $

Author:
Gerald Brose

Constructor Summary

Delegate(ORB orb, String object_reference)
Delegate(ORB orb, String object_reference, boolean _donotcheckexceptions)
special constructor for appligator
Delegate(ORB orb, ParsedIOR pior)
Delegate(ORB orb, IOR ior)

Method Summary

int
_get_TCKind()
void
configure(org.apache.avalon.framework.configuration.Configuration configuration)
Request
create_request(Object self, Context ctx, String operation, NVList arg_list, NamedValue result, ExceptionList exceptions, ContextList contexts)
Request
create_request(Object self, Context ctx, java.lang.String operation, NVList args, NamedValue result)
boolean
doNotCheckExceptions()
Object
duplicate(Object self)
boolean
equals(java.lang.Object obj)
boolean
equals(Object self, java.lang.Object obj)
protected void
finalize()
String
getIDString()
IOR
getIOR()
byte[]
getObjectId()
byte[]
getObjectKey()
POA
getPOA()
ParsedIOR
getParsedIOR()
ObjectImpl
getReference(POA _poa)
long
getRelativeRequestTimeout()
long
getRelativeRoundtripTimeout()
UtcT
getReplyEndTime()
UtcT
getReplyStartTime()
UtcT
getRequestEndTime()
UtcT
getRequestStartTime()
short
getSyncScope()
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.
String
get_codebase(Object self)
DomainManager[]
get_domain_managers(Object self)
InterfaceDef
get_interface(Object self)
Deprecated. Deprecated by CORBA 2.3
Object
get_interface_def(Object self)
Set
get_pending_replies()
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.
Policy
get_policy(Object self, int policy_type, OutputStream os)
int
hash(Object self, int x)
int
hashCode()
int
hashCode(Object self)
InputStream
invoke(Object self, OutputStream os)
Invokes a synchronous operation using this object reference by sending the request marshalled in the OutputStream.
void
invoke(Object self, OutputStream os, ReplyHandler replyHandler)
Invokes an asynchronous operation using this object reference by sending the request marshalled in the OutputStream.
void
invokeInterceptors(ClientRequestInfoImpl info, short op)
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
boolean
is_equivalent(Object self, Object obj)
boolean
is_local(Object self)
boolean
is_nil()
void
lockBarrier()
boolean
non_existent(Object self)
void
openBarrier()
ORB
orb(Object self)
void
rebind(String object_reference)
void
rebind(ParsedIOR p)
void
rebind(Object o)
void
release(Object self)
void
releaseReply(Object self, InputStream is)
releases the InputStream
void
replyDone(ReplyPlaceholder placeholder)
Request
request(Object self, String operation)
OutputStream
request(Object self, String operation, boolean responseExpected)
void
resolvePOA(Object self)
void
servant_postinvoke(Object self, ServantObject servant)
Overrides servant_postinvoke() in org.omg.CORBA.portable.Delegate
called from generated stubs after a local operation
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
Object
set_policy_override(Object self, Policy policies, SetOverrideType set_add)
String
toString()
String
toString(Object self)
String
typeId()
void
waitOnBarrier()

Methods inherited from class org.omg.CORBA_2_3.portable.Delegate

get_codebase

Methods inherited from class org.omg.CORBA.portable.Delegate

create_request, create_request, duplicate, equals, get_domain_managers, get_interface, get_interface_def, get_policy, hash, hashCode, invoke, is_a, is_equivalent, is_local, non_existent, orb, release, releaseReply, request, request, servant_postinvoke, servant_preinvoke, set_policy_override, toString

Constructor Details

Delegate

public Delegate(ORB orb,
                String object_reference)


Delegate

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


Delegate

public Delegate(ORB orb,
                ParsedIOR pior)


Delegate

public Delegate(ORB orb,
                IOR ior)

Method Details

_get_TCKind

public int _get_TCKind()


configure

public void configure(org.apache.avalon.framework.configuration.Configuration configuration)
            throws org.apache.avalon.framework.configuration.ConfigurationException


create_request

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


create_request

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


doNotCheckExceptions

public boolean doNotCheckExceptions()


duplicate

public Object duplicate(Object self)
Overrides:
duplicate in interface Delegate


equals

public boolean equals(java.lang.Object obj)


equals

public boolean equals(Object self,
                      java.lang.Object obj)
Overrides:
equals in interface Delegate


finalize

protected void finalize()
            throws Throwable


getIDString

public String getIDString()


getIOR

public IOR getIOR()


getObjectId

public byte[] getObjectId()


getObjectKey

public byte[] getObjectKey()


getPOA

public POA getPOA()


getParsedIOR

public ParsedIOR getParsedIOR()


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)
Overrides:
get_codebase in interface Delegate


get_domain_managers

public DomainManager[] get_domain_managers(Object self)
Overrides:
get_domain_managers in interface Delegate


get_interface

public InterfaceDef get_interface(Object self)

Deprecated. Deprecated by CORBA 2.3

Overrides:
get_interface in interface Delegate


get_interface_def

public Object get_interface_def(Object self)
Overrides:
get_interface_def in interface Delegate


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.

Overrides:
get_policy in interface Delegate


get_policy

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


hash

public int hash(Object self,
                int x)
Overrides:
hash in interface Delegate


hashCode

public int hashCode()


hashCode

public int hashCode(Object self)
Overrides:
hashCode in interface Delegate


invoke

public InputStream invoke(Object self,
                          OutputStream os)
            throws ApplicationException,
                   RemarshalException
Invokes a synchronous operation using this object reference by sending the request marshalled in the OutputStream.
Overrides:
invoke in interface Delegate

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


invoke

public void invoke(Object self,
                   OutputStream os,
                   ReplyHandler replyHandler)
            throws ApplicationException,
                   RemarshalException
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.


invokeInterceptors

public void invokeInterceptors(ClientRequestInfoImpl info,
                               short op)
            throws RemarshalException


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
Overrides:
is_a in interface Delegate


is_equivalent

public boolean is_equivalent(Object self,
                             Object obj)
Overrides:
is_equivalent in interface Delegate


is_local

public boolean is_local(Object self)
Overrides:
is_local in interface Delegate

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)
Overrides:
non_existent in interface Delegate


openBarrier

public void openBarrier()


orb

public ORB orb(Object self)
Overrides:
orb in interface Delegate


rebind

public void rebind(String object_reference)


rebind

public void rebind(ParsedIOR p)


rebind

public void rebind(Object o)


release

public void release(Object self)
Overrides:
release in interface Delegate


releaseReply

public void releaseReply(Object self,
                         InputStream is)
releases the InputStream
Overrides:
releaseReply in interface Delegate


replyDone

public void replyDone(ReplyPlaceholder placeholder)


request

public Request request(Object self,
                       String operation)
Overrides:
request in interface Delegate


request

public OutputStream request(Object self,
                            String operation,
                            boolean responseExpected)
Overrides:
request in interface Delegate


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
Overrides:
servant_postinvoke in interface Delegate


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
Overrides:
servant_preinvoke in interface Delegate


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)
Overrides:
toString in interface Delegate


typeId

public String typeId()


waitOnBarrier

public void waitOnBarrier()