|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.openorb.orb.net.ClientBinding
A client binding represents a potential request path between client and server.
Field Summary | |
static int |
DEAD_PRIORITY
|
static int |
FORCE_FALSE
|
static int |
FORCE_TRUE
|
static int |
FORCE_UNSET
|
static int |
MASK_ADDRESS_PRIORITY
Significant bits in selecting between alternate addresses from the same profile. |
static int |
MASK_IOR_PRIORITY
Significant bits in selecting between alternate IORs |
static int |
MASK_PROFILE_PRIORITY
Significant bits in selecting between alternate addresses from different profiles. |
static java.util.Comparator |
PRIORITY_COMP
|
Constructor Summary | |
protected |
ClientBinding(Address address)
Constructor. |
|
ClientBinding(Address address,
ClientChannel channel)
Bind address to remote invocation channel. |
|
ClientBinding(Address address,
ClientChannel channel,
ServerManager serverManager)
Bind address to local adapter. |
|
ClientBinding(Address address,
org.omg.CORBA.SystemException ex)
Bind address to a system exception. |
Method Summary | |
ClientRequest |
create_locate_request(org.omg.CORBA.Object target)
Create a locate request. |
LocalClientRequest |
create_request_local(org.omg.CORBA.ORB orb,
org.omg.CORBA.Object target,
java.lang.String operation,
boolean response_expected,
Address[] adresses)
This is a factory method for creation a new Local Client Request. |
ClientRequest |
create_request(org.omg.CORBA.Object target,
java.lang.String operation,
boolean response_expected)
Create a request. |
boolean |
equals(java.lang.Object obj)
|
org.omg.CORBA.Object |
get_component()
Calls get_component on the adapter. |
org.omg.CORBA.DomainManager[] |
get_domain_managers()
Calls get_domain_managers on the adapter. |
org.omg.CORBA.Object |
get_interface_def()
Calls get_interface_def on the adapter. |
Address |
getAddress()
Return the client address. |
ClientChannel |
getClientChannel()
Return the client channel. |
ObjectAdapter |
getObjectAdapter()
Return the object adapter. |
int |
getPriority()
Get binding priority. |
int |
hashCode()
|
boolean |
is_a(java.lang.String repository_id)
Calls is_a on the adapter. |
boolean |
local_invoke()
True if the target can accept local invocations. |
boolean |
locate()
Calls locate on the adapter. |
void |
servant_postinvoke(org.omg.CORBA.portable.ServantObject srvObject)
Calls servant_postinvoke on the adapter. |
org.omg.CORBA.portable.ServantObject |
servant_preinvoke(java.lang.String operation,
java.lang.Class expectedType)
Calls servant_preinvoke on the adapter. |
void |
setPriority(int priority)
Set the binding priority. |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final int DEAD_PRIORITY
public static final int FORCE_UNSET
public static final int FORCE_FALSE
public static final int FORCE_TRUE
public static final int MASK_ADDRESS_PRIORITY
public static final int MASK_PROFILE_PRIORITY
public static final int MASK_IOR_PRIORITY
public static final java.util.Comparator PRIORITY_COMP
Constructor Detail |
protected ClientBinding(Address address)
public ClientBinding(Address address, ClientChannel channel)
public ClientBinding(Address address, ClientChannel channel, ServerManager serverManager)
public ClientBinding(Address address, org.omg.CORBA.SystemException ex)
Method Detail |
public Address getAddress()
public ClientChannel getClientChannel()
public ObjectAdapter getObjectAdapter()
public int getPriority()
public void setPriority(int priority)
public int hashCode()
public boolean equals(java.lang.Object obj)
public boolean local_invoke()
public ClientRequest create_request(org.omg.CORBA.Object target, java.lang.String operation, boolean response_expected)
target
- The target of the request.operation
- The operation to create the request for.response_expected
- A flag that indicates whether a response
is expected or not (oneway).public LocalClientRequest create_request_local(org.omg.CORBA.ORB orb, org.omg.CORBA.Object target, java.lang.String operation, boolean response_expected, Address[] adresses)
orb
- ORBtarget
- target object for the requestoperation
- operationresponse_expected
- oneway call or notadresses
- all the adresses of the target
public ClientRequest create_locate_request(org.omg.CORBA.Object target)
target
- The target of the request.public org.omg.CORBA.portable.ServantObject servant_preinvoke(java.lang.String operation, java.lang.Class expectedType) throws org.omg.PortableInterceptor.ForwardRequest
org.omg.PortableInterceptor.ForwardRequest
public void servant_postinvoke(org.omg.CORBA.portable.ServantObject srvObject)
public boolean locate() throws org.omg.PortableInterceptor.ForwardRequest
org.omg.PortableInterceptor.ForwardRequest
public boolean is_a(java.lang.String repository_id) throws org.omg.PortableInterceptor.ForwardRequest
org.omg.PortableInterceptor.ForwardRequest
public org.omg.CORBA.Object get_interface_def() throws org.omg.PortableInterceptor.ForwardRequest
org.omg.PortableInterceptor.ForwardRequest
public org.omg.CORBA.DomainManager[] get_domain_managers() throws org.omg.PortableInterceptor.ForwardRequest
org.omg.PortableInterceptor.ForwardRequest
public org.omg.CORBA.Object get_component() throws org.omg.PortableInterceptor.ForwardRequest
org.omg.PortableInterceptor.ForwardRequest
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |