|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.omg.CORBA.portable.Delegate
org.omg.CORBA_2_3.portable.Delegate
org.openorb.orb.core.Delegate
This class constitutes the top layer in the object request sequence. It manages selecting between alternative paths for invoking requests and manages the invocation sequence, in concert with the server stubs.
Constructor Summary | |
protected |
Delegate(org.omg.CORBA.ORB orb)
This constructor can be used from a derived class if it is clear in the local optimized case that the object will not be exported. |
|
Delegate(org.omg.CORBA.ORB orb,
org.omg.IOP.IOR ior)
Construct new delegate from orb and IOR. |
protected |
Delegate(org.omg.CORBA.ORB orb,
org.omg.IOP.IOR ior,
org.omg.CORBA.PolicyManagerOperations policyOverides)
Construct new delegate from orb and IOR. |
Method Summary | |
protected org.omg.IOP.IOR |
_getIOR()
Return the IOR of the object. |
protected org.omg.CORBA.ORB |
_getORB()
Return the ORB with which this object is associated. |
protected org.omg.CORBA.PolicyManagerOperations |
_getPolicyManagerOperations()
Return the interface for the PolicyManager object. |
org.omg.CORBA.Request |
create_request(org.omg.CORBA.Object self,
org.omg.CORBA.Context ctx,
java.lang.String operation,
org.omg.CORBA.NVList arg_list,
org.omg.CORBA.NamedValue result)
Create a dynamic request |
org.omg.CORBA.Request |
create_request(org.omg.CORBA.Object self,
org.omg.CORBA.Context ctx,
java.lang.String operation,
org.omg.CORBA.NVList arg_list,
org.omg.CORBA.NamedValue result,
org.omg.CORBA.ExceptionList excepts,
org.omg.CORBA.ContextList contexts)
Create a dynamic request |
org.omg.CORBA.Object |
duplicate(org.omg.CORBA.Object self)
Dulicate a reference. |
boolean |
equals(org.omg.CORBA.Object self,
java.lang.Object obj)
Use is_equivalent definition of equals so objects can be stored in hash tables. |
org.omg.CORBA.Policy |
get_client_policy(org.omg.CORBA.Object self,
int policy_type)
Return the effective client side policy. |
java.lang.String |
get_codebase(org.omg.CORBA.Object self)
Return codebase for stub class. |
org.omg.CORBA.Object |
get_component(org.omg.CORBA.Object self)
Return the object's component. |
org.omg.CORBA.DomainManager[] |
get_domain_managers(org.omg.CORBA.Object self)
Find the domain manager list associated to this object. |
org.omg.CORBA.Object |
get_interface_def(org.omg.CORBA.Object self)
Return the object interface definition. |
org.omg.CORBA.InterfaceDef |
get_interface(org.omg.CORBA.Object self)
Deprecated. Deprecated by CORBA 2.3 |
org.omg.CORBA.Policy[] |
get_policy_overrides(int[] ts)
Returns the list of Policy overrides (of the specified policy types) set at the Object scope. |
org.omg.CORBA.Policy |
get_policy(org.omg.CORBA.Object self,
int policy_type)
Return the policy associated to the policy type passed as parameter. |
Address[] |
getAddresses(org.omg.CORBA.Object self)
Get a snapshot list of the target addresses. |
boolean |
getPolicyCacheEnabled()
Return the value for the flag whether the policy cache is enabled or not. |
int |
hash(org.omg.CORBA.Object self,
int max)
Return an hashcode for an object (with a max value) Note that this hash code will not change even if the object is redirected. |
int |
hashCode(org.omg.CORBA.Object self)
Use the IOR hash code so that objects can be used in hash tables. |
void |
invoke_deferred(org.omg.CORBA.Object self,
org.omg.CORBA.portable.OutputStream os)
Invoke the request as a deferred request. |
org.omg.CORBA.portable.InputStream |
invoke(org.omg.CORBA.Object self,
org.omg.CORBA.portable.OutputStream os)
Invoke a remote operation for stream based stub |
org.omg.IOP.IOR |
ior()
Get the ior of the object as it should be serialized / marshalled. |
boolean |
is_a(org.omg.CORBA.Object self,
java.lang.String id)
This operation is used to test if an object implements an interface. |
boolean |
is_equivalent(org.omg.CORBA.Object obj1,
org.omg.CORBA.Object obj2)
Check if two object refereces are equivalent. |
boolean |
is_local(org.omg.CORBA.Object self)
Return true if this object is local. |
boolean |
non_existent(org.omg.CORBA.Object self)
Check if an object exists |
org.omg.CORBA.ORB |
orb(org.omg.CORBA.Object self)
Return a reference to the ORB |
boolean |
poll_response(org.omg.CORBA.Object self,
org.omg.CORBA.portable.OutputStream os)
Poll for a response for a defered request. |
void |
release(org.omg.CORBA.Object self)
Remove a reference. |
void |
releaseReply(org.omg.CORBA.Object self,
org.omg.CORBA.portable.InputStream is)
This function is always called at the end of an invocation sequence regardless of the outcome. |
org.omg.CORBA.Request |
request(org.omg.CORBA.Object self,
java.lang.String operation)
Create a dynamic request |
org.omg.CORBA.portable.OutputStream |
request(org.omg.CORBA.Object self,
java.lang.String operation,
boolean responseExpected)
Create a request based on stream stub |
void |
servant_postinvoke(org.omg.CORBA.Object self,
org.omg.CORBA.portable.ServantObject servant)
This function is used after a local invocation |
org.omg.CORBA.portable.ServantObject |
servant_preinvoke(org.omg.CORBA.Object self,
java.lang.String operation,
java.lang.Class expectedType)
This function is used for local invocation |
org.omg.CORBA.Object |
set_policy_override(org.omg.CORBA.Object self,
org.omg.CORBA.Policy[] policies,
org.omg.CORBA.SetOverrideType set_add)
Return a copy of this object with the specified policies overriden. |
org.omg.CORBA.Object |
set_policy_overrides(org.omg.CORBA.Object self,
org.omg.CORBA.Policy[] policies,
org.omg.CORBA.SetOverrideType set_add)
Return a copy of this object with the specified policies overriden. |
void |
setPolicyCacheEnabled(boolean policy_cache_enabled)
Set the value for the flag whether the policy cache is enabled or not. |
java.lang.String |
toString(org.omg.CORBA.Object self)
Pass to string this object |
boolean |
validate_connection(org.omg.CORBA.Object self,
org.omg.CORBA.PolicyListHolder inconsistent_policies)
Validate the connection to the client. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public Delegate(org.omg.CORBA.ORB orb, org.omg.IOP.IOR ior)
orb
- the client orb.ior
- the target IOR.protected Delegate(org.omg.CORBA.ORB orb)
protected Delegate(org.omg.CORBA.ORB orb, org.omg.IOP.IOR ior, org.omg.CORBA.PolicyManagerOperations policyOverides)
orb
- the client orb.ior
- the target IOR.policyOverides
- the policy overides for this delegateMethod Detail |
protected org.omg.CORBA.ORB _getORB()
protected org.omg.IOP.IOR _getIOR()
public boolean getPolicyCacheEnabled()
protected org.omg.CORBA.PolicyManagerOperations _getPolicyManagerOperations()
public void setPolicyCacheEnabled(boolean policy_cache_enabled)
policy_cache_enabled
- The new value for the flag.public org.omg.CORBA.InterfaceDef get_interface(org.omg.CORBA.Object self)
public org.omg.CORBA.Object get_interface_def(org.omg.CORBA.Object self)
public org.omg.CORBA.Object get_component(org.omg.CORBA.Object self)
public boolean is_a(org.omg.CORBA.Object self, java.lang.String id)
public org.omg.CORBA.DomainManager[] get_domain_managers(org.omg.CORBA.Object self)
public boolean non_existent(org.omg.CORBA.Object self)
public org.omg.CORBA.Object duplicate(org.omg.CORBA.Object self)
public void release(org.omg.CORBA.Object self)
public boolean is_equivalent(org.omg.CORBA.Object obj1, org.omg.CORBA.Object obj2)
public boolean equals(org.omg.CORBA.Object self, java.lang.Object obj)
public int hash(org.omg.CORBA.Object self, int max)
public int hashCode(org.omg.CORBA.Object self)
public org.omg.CORBA.Request create_request(org.omg.CORBA.Object self, org.omg.CORBA.Context ctx, java.lang.String operation, org.omg.CORBA.NVList arg_list, org.omg.CORBA.NamedValue result)
public org.omg.CORBA.Request create_request(org.omg.CORBA.Object self, org.omg.CORBA.Context ctx, java.lang.String operation, org.omg.CORBA.NVList arg_list, org.omg.CORBA.NamedValue result, org.omg.CORBA.ExceptionList excepts, org.omg.CORBA.ContextList contexts)
public org.omg.CORBA.Request request(org.omg.CORBA.Object self, java.lang.String operation)
public boolean is_local(org.omg.CORBA.Object self)
public org.omg.CORBA.portable.OutputStream request(org.omg.CORBA.Object self, java.lang.String operation, boolean responseExpected)
self
- the object to apply this operationoperation
- the operation nameresponseExpected
- True if a response is expected
public void invoke_deferred(org.omg.CORBA.Object self, org.omg.CORBA.portable.OutputStream os)
self
- the object to apply this operationos
- the output stream returned from the request operation.public boolean poll_response(org.omg.CORBA.Object self, org.omg.CORBA.portable.OutputStream os)
self
- the object to apply this operationos
- the output stream returned from the request operation.
public org.omg.CORBA.portable.InputStream invoke(org.omg.CORBA.Object self, org.omg.CORBA.portable.OutputStream os) throws org.omg.CORBA.portable.ApplicationException, org.omg.CORBA.portable.RemarshalException
self
- the object to apply this operationos
- the output stream returned from the request operation.
org.omg.CORBA.portable.ApplicationException
org.omg.CORBA.portable.RemarshalException
public void releaseReply(org.omg.CORBA.Object self, org.omg.CORBA.portable.InputStream is)
self
- the object to apply this operationis
- the input stream for marshalled data from remote objectpublic org.omg.CORBA.portable.ServantObject servant_preinvoke(org.omg.CORBA.Object self, java.lang.String operation, java.lang.Class expectedType)
public void servant_postinvoke(org.omg.CORBA.Object self, org.omg.CORBA.portable.ServantObject servant)
public org.omg.CORBA.Policy get_policy(org.omg.CORBA.Object self, int policy_type)
policy_type
- the policy type to search and to return
public org.omg.CORBA.Policy get_client_policy(org.omg.CORBA.Object self, int policy_type)
policy_type
- the policy type to search and to return
public org.omg.CORBA.Object set_policy_override(org.omg.CORBA.Object self, org.omg.CORBA.Policy[] policies, org.omg.CORBA.SetOverrideType set_add)
org.omg.CORBA.NO_PERMISSION
- some of the overriden policies are invalid.public org.omg.CORBA.Object set_policy_overrides(org.omg.CORBA.Object self, org.omg.CORBA.Policy[] policies, org.omg.CORBA.SetOverrideType set_add) throws org.omg.CORBA.InvalidPolicies
org.omg.CORBA.InvalidPolicies
- some of the overriden policies
are invalid.public org.omg.CORBA.Policy[] get_policy_overrides(int[] ts)
public boolean validate_connection(org.omg.CORBA.Object self, org.omg.CORBA.PolicyListHolder inconsistent_policies)
public org.omg.CORBA.ORB orb(org.omg.CORBA.Object self)
public java.lang.String get_codebase(org.omg.CORBA.Object self)
public org.omg.IOP.IOR ior()
public Address[] getAddresses(org.omg.CORBA.Object self)
public java.lang.String toString(org.omg.CORBA.Object self)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |