|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.omg.CORBA.ORB
org.omg.CORBA_2_3.ORB
org.objectweb.david.libs.binding.orbs.ORBSingletonClass
org.objectweb.david.libs.binding.orbs.ORBClass
This class is an extension of the standard CORBA ORB class, implementing the protocol independent features of a CORBA ORB.
Field Summary | |
protected NamingContext |
domain
|
protected org.objectweb.jonathan.apis.kernel.Context |
initial_services_context
|
protected DavidStreamFactory |
marshaller_factory
|
protected StubFactory |
stub_factory
|
Fields inherited from interface org.objectweb.david.libs.binding.orbs.Constants |
corba_object_id, corba_prefix, TC_any, TC_boolean, TC_char, TC_double, TC_float, TC_long, TC_longdouble, TC_longlong, TC_null, TC_Object, TC_octet, TC_Principal, TC_short, TC_string, tc_table, TC_TypeCode, TC_ulong, TC_ulonglong, TC_ushort, TC_void, TC_wchar, TC_wstring |
Constructor Summary | |
protected |
ORBClass()
|
Method Summary | |
void |
connect(org.omg.CORBA.Object obj)
Exports the provided object to a default adapter of type SimpleAdapter . |
org.omg.CORBA.Any |
create_any()
|
org.omg.CORBA.portable.OutputStream |
create_output_stream()
Create a new org.omg.CORBA.portable.OutputStream into which IDL method parameters can be marshalled during method invocation. |
void |
disconnect(org.omg.CORBA.Object obj)
Unexports the provided object. |
org.omg.CORBA.Request |
get_next_response()
Get the next request instance for which a response has been received. |
java.lang.String[] |
list_initial_services()
Return a list of the initially available CORBA object references, such as the NameService and InterfaceRepository. |
DavidMarshaller |
newMarshaller()
Returns a new marshaller. |
DavidUnMarshaller |
newUnMarshaller()
Returns a new unmarshaller. |
java.lang.String |
object_to_string(org.omg.CORBA.Object object)
Returns a stringified IOR corresponding to the specified CORBA Object. |
void |
perform_work()
This operation does nothing. |
boolean |
poll_next_response()
Find out if any of the deferred (asynchronous) invocations have a response yet. |
org.omg.CORBA.Object |
resolve_initial_references(java.lang.String name)
Resolve a specific object reference from the set of available initial service names. |
void |
run()
This operation blocks the calling thread until shutdown() is called. |
void |
send_multiple_requests_deferred(org.omg.CORBA.Request[] requests)
Send multiple dynamic (DII) requests asynchronously. |
void |
send_multiple_requests_oneway(org.omg.CORBA.Request[] requests)
Send multiple dynamic (DII) requests asynchronously without expecting any responses. |
void |
setDomain(NamingContext domain)
|
void |
setInitialServicesContext(org.objectweb.jonathan.apis.kernel.Context initial_services_context)
|
void |
setMarshallerFactory(DavidStreamFactory marshaller_factory)
|
void |
setStubFactory(StubFactory stub_factory)
|
void |
shutdown(boolean wait_for_completion)
This operation instructs the ORB to shut down. |
org.omg.CORBA.Object |
string_to_object(java.lang.String ior)
Returns a CORBA Object correponding to the specified IOR. |
boolean |
work_pending()
This operation always returns false. |
Methods inherited from class org.objectweb.david.libs.binding.orbs.ORBSingletonClass |
create_alias_tc, create_array_tc, create_context_list, create_enum_tc, create_environment, create_exception_list, create_exception_tc, create_interface_tc, create_list, create_named_value, create_operation_list, create_recursive_sequence_tc, create_recursive_tc, create_sequence_tc, create_string_tc, create_struct_tc, create_union_tc, create_value_box_tc, create_value_tc, create_wstring_tc, get_default_context, get_primitive_tc, set_parameters, set_parameters, setDefault |
Methods inherited from class org.omg.CORBA_2_3.ORB |
get_value_def, lookup_value_factory, register_value_factory, set_delegate, unregister_value_factory |
Methods inherited from class org.omg.CORBA.ORB |
create_abstract_interface_tc, create_fixed_tc, create_native_tc, create_operation_list, create_policy, get_current, get_service_information, init, init, init |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected org.objectweb.jonathan.apis.kernel.Context initial_services_context
protected StubFactory stub_factory
protected NamingContext domain
protected DavidStreamFactory marshaller_factory
Constructor Detail |
protected ORBClass()
Method Detail |
public void setStubFactory(StubFactory stub_factory)
public void setDomain(NamingContext domain)
public void setMarshallerFactory(DavidStreamFactory marshaller_factory)
public void setInitialServicesContext(org.objectweb.jonathan.apis.kernel.Context initial_services_context)
public void run()
public void shutdown(boolean wait_for_completion)
public boolean work_pending()
public void perform_work()
public java.lang.String[] list_initial_services()
list_initial_services
in class ORBSingletonClass
public org.omg.CORBA.Object resolve_initial_references(java.lang.String name) throws org.omg.CORBA.ORBPackage.InvalidName
resolve_initial_references
in class ORBSingletonClass
name
- the name of the initial service
org.omg.CORBA.ORBPackage.InvalidName
- The given name is not associated with a
known service.public java.lang.String object_to_string(org.omg.CORBA.Object object)
object_to_string
in class ORBSingletonClass
object
- a CORBA object.
public org.omg.CORBA.Object string_to_object(java.lang.String ior)
string_to_object
in class ORBSingletonClass
ior
- a stringified IOR.
public org.omg.CORBA.portable.OutputStream create_output_stream()
create_output_stream
in class ORBSingletonClass
public void send_multiple_requests_oneway(org.omg.CORBA.Request[] requests)
send_multiple_requests_oneway
in class ORBSingletonClass
public void send_multiple_requests_deferred(org.omg.CORBA.Request[] requests)
send_multiple_requests_deferred
in class ORBSingletonClass
requests
- an array of request objects.public boolean poll_next_response()
poll_next_response
in class ORBSingletonClass
public org.omg.CORBA.Request get_next_response()
get_next_response
in class ORBSingletonClass
public org.omg.CORBA.Any create_any()
create_any
in class ORBSingletonClass
public void connect(org.omg.CORBA.Object obj)
SimpleAdapter
.
The default adapter must be specified under the property "/david/orbs/initial_services/Connecter".
connect
in class ORBSingletonClass
obj
- a CORBA object reference.public void disconnect(org.omg.CORBA.Object obj)
This operation throws a BAD_OPERATION exception if the provided object cannot have been connected by the target ORB.
disconnect
in class ORBSingletonClass
obj
- a CORBA object reference.public DavidMarshaller newMarshaller()
DavidMarshallerFactory
newMarshaller
in interface DavidMarshallerFactory
public DavidUnMarshaller newUnMarshaller()
DavidMarshallerFactory
newUnMarshaller
in interface DavidMarshallerFactory
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |