|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Object
|
+--org.omg.CORBA.portable.Delegate
|
+--org.omg.CORBA_2_3.portable.Delegate
|
+--org.openorb.CORBA.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 | |
Delegate(ORB orb,
IOR ior)
Construct new delegate from orb and IOR. |
|
| Method Summary | |
IOR |
_getIOR()
|
ORB |
_getORB()
|
PolicyManagerOperations |
_getPolicyManagerOperations()
|
Request |
create_request(Object self,
Context ctx,
java.lang.String operation,
NVList arg_list,
NamedValue result)
Create a dynamic request |
Request |
create_request(Object self,
Context ctx,
java.lang.String operation,
NVList arg_list,
NamedValue result,
ExceptionList excepts,
ContextList contexts)
Create a dynamic request |
Object |
duplicate(Object self)
Dulicate a reference. |
boolean |
equals(Object self,
java.lang.Object obj)
Use is_equivalent definition of equals so objects can be stored in hash tables. |
Policy |
get_client_policy(Object self,
int policy_type)
Return the effective client side policy. |
java.lang.String |
get_codebase(Object self)
Return codebase for stub class. |
Object |
get_component(Object self)
Return the object's component. |
DomainManager[] |
get_domain_managers(Object self)
Find the domain manager list associated to this object. |
Object |
get_interface_def(Object self)
Return the object interface definition. |
InterfaceDef |
get_interface(Object self)
Deprecated. Deprecated by CORBA 2.3 |
Policy[] |
get_policy_overrides(int[] ts)
Returns the list of Policy overrides (of the specified policy types) set at the Object scope. |
Policy |
get_policy(Object self,
int policy_type)
Return the policy associated to the policy type passed as parameter. |
Address[] |
getAddresses(Object self)
Get a snapshot list of the target addresses. |
int |
hash(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(Object self)
Use the IOR hash code so that objects can be used in hash tables. |
void |
invoke_deferred(Object self,
OutputStream os)
Invoke the request as a deferred request. |
InputStream |
invoke(Object self,
OutputStream os)
Invoke a remote operation for stream based stub |
IOR |
ior()
Get the ior of the object as it should be serialized / marshalled. |
boolean |
is_a(Object self,
java.lang.String id)
This operation is used to test if an object implements an interface. |
boolean |
is_equivalent(Object obj1,
Object obj2)
Check if two object refereces are equivalent. |
boolean |
is_local(Object self)
Return true if this object is local. |
boolean |
non_existent(Object self)
Check if an object exists |
ORB |
orb(Object self)
Return a reference to the ORB |
boolean |
poll_response(Object self,
OutputStream os)
Poll for a response for a defered request. |
void |
release(Object self)
Remove a reference. |
void |
releaseReply(Object self,
InputStream is)
This function is always called at the end of an invocation sequence regardless of the outcome. |
Request |
request(Object self,
java.lang.String operation)
Create a dynamic request |
OutputStream |
request(Object self,
java.lang.String operation,
boolean responseExpected)
Create a request based on stream stub |
void |
servant_postinvoke(Object self,
ServantObject servant)
This function is used after a local invocation |
ServantObject |
servant_preinvoke(Object self,
java.lang.String operation,
java.lang.Class expectedType)
This function is used for local invocation |
Object |
set_policy_override(Object self,
Policy[] policies,
SetOverrideType set_add)
Return a copy of this object with the specified policies overriden. |
Object |
set_policy_overrides(Object self,
Policy[] policies,
SetOverrideType set_add)
Return a copy of this object with the specified policies overriden. |
java.lang.String |
toString(Object self)
Pass to string this object |
boolean |
validate_connection(Object self,
PolicyListHolder inconsistent_policies)
Validate the connection to the client. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public Delegate(ORB orb,
IOR ior)
orb - the client orb.ior - the target IOR.| Method Detail |
public final ORB _getORB()
public final IOR _getIOR()
public final PolicyManagerOperations _getPolicyManagerOperations()
public InterfaceDef get_interface(Object self)
get_interface in class Delegatepublic Object get_interface_def(Object self)
get_interface_def in class Delegatepublic Object get_component(Object self)
public boolean is_a(Object self,
java.lang.String id)
is_a in class Delegatepublic DomainManager[] get_domain_managers(Object self)
get_domain_managers in class Delegatepublic boolean non_existent(Object self)
non_existent in class Delegatepublic Object duplicate(Object self)
duplicate in class Delegatepublic void release(Object self)
release in class Delegate
public boolean is_equivalent(Object obj1,
Object obj2)
is_equivalent in class Delegate
public boolean equals(Object self,
java.lang.Object obj)
equals in class Delegate
public int hash(Object self,
int max)
hash in class Delegatepublic int hashCode(Object self)
hashCode in class Delegate
public Request create_request(Object self,
Context ctx,
java.lang.String operation,
NVList arg_list,
NamedValue result)
create_request in class Delegate
public Request create_request(Object self,
Context ctx,
java.lang.String operation,
NVList arg_list,
NamedValue result,
ExceptionList excepts,
ContextList contexts)
create_request in class Delegate
public Request request(Object self,
java.lang.String operation)
request in class Delegatepublic boolean is_local(Object self)
is_local in class Delegate
public OutputStream request(Object self,
java.lang.String operation,
boolean responseExpected)
request in class Delegateself - the object to apply this operationOperation - the operation nameresponseExpected - True if a response is expected
public void invoke_deferred(Object self,
OutputStream os)
self - the object to apply this operationos - the output stream returned from the request operation.
public boolean poll_response(Object self,
OutputStream os)
self - the object to apply this operationos - the output stream returned from the request operation.
public InputStream invoke(Object self,
OutputStream os)
throws ApplicationException,
RemarshalException
invoke in class Delegateself - the object to apply this operationos - the output stream returned from the request operation.
public void releaseReply(Object self,
InputStream is)
releaseReply in class Delegateself - the object to apply this operationis - the input stream for marshalled data from remote object
public ServantObject servant_preinvoke(Object self,
java.lang.String operation,
java.lang.Class expectedType)
servant_preinvoke in class Delegate
public void servant_postinvoke(Object self,
ServantObject servant)
servant_postinvoke in class Delegate
public Policy get_policy(Object self,
int policy_type)
get_policy in class Delegatepolicy_type - the policy type to search and to return
public Policy get_client_policy(Object self,
int policy_type)
policy_type - the policy type to search and to return
public Object set_policy_override(Object self,
Policy[] policies,
SetOverrideType set_add)
set_policy_override in class DelegateNO_PERMISSION - some of the overriden policies are invalid.
public Object set_policy_overrides(Object self,
Policy[] policies,
SetOverrideType set_add)
throws InvalidPolicies
InvalidPolicies - some of the overriden policies
are invalid.public Policy[] get_policy_overrides(int[] ts)
public boolean validate_connection(Object self,
PolicyListHolder inconsistent_policies)
public ORB orb(Object self)
orb in class Delegatepublic java.lang.String get_codebase(Object self)
get_codebase in class Delegatepublic IOR ior()
public Address[] getAddresses(Object self)
public java.lang.String toString(Object self)
toString in class Delegate
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||