|
||||||||
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.openorb.orb.core.ORBSingleton
org.openorb.orb.core.ORB
public class ORB
This class provides all required operations and structures for the org.openorb implementation.
Constructor Summary | |
---|---|
ORB()
Orb instances must be created through ORB.init(). |
Method Summary | |
---|---|
void |
addInitialReference(java.lang.String name,
org.omg.CORBA.Object target)
Register an initial reference. |
void |
addServiceInformation(short service_type,
org.omg.CORBA.ServiceInformation service_information)
Add service information. |
void |
connect(org.omg.CORBA.Object obj)
Connect an object to the adapter. |
org.omg.CORBA.ContextList |
create_context_list()
Create a context list. |
org.omg.CORBA.Environment |
create_environment()
Create an environment. |
org.omg.CORBA.ExceptionList |
create_exception_list()
Create an exception list. |
org.omg.CORBA.NVList |
create_list(int count)
Create a named value list. |
org.omg.CORBA.NamedValue |
create_named_value(java.lang.String name,
org.omg.CORBA.Any value,
int flags)
Create a named value. |
org.omg.CORBA.portable.OutputStream |
create_output_stream()
Create an output stream. |
org.omg.CORBA.Policy |
create_policy(int policy_type,
org.omg.CORBA.Any val)
This operations creates a CORBA policy. |
void |
destroy()
Destroy the ORB. |
void |
disconnect(org.omg.CORBA.Object obj)
Disconnect an object from the adapter. |
protected void |
finalize()
A finalizer which will call shutdown. |
org.omg.CORBA.Context |
get_default_context()
Return default context. |
org.omg.CORBA.Request |
get_next_response()
Get the next response. |
boolean |
get_service_information(short service_type,
org.omg.CORBA.ServiceInformationHolder service_information)
Return the service informaton. |
java.lang.Object |
getFeature(java.lang.String feature)
This operation is used to get an OpenORB feature reference. |
protected byte[] |
getKeyFromString(java.lang.String str)
Get an object key from a stringified object key. |
ORBLoader |
getLoader()
This operation returns the configurator used by this ORB instance. |
CurrentImpl |
getPICurrent()
Returns the PICurrent implementation. |
java.lang.String |
getURLCodeBase()
Return the value for the property openorb.URLCodeBase. |
java.lang.String[] |
list_initial_services()
Return as a string sequence all available initial services. |
org.omg.CORBA.portable.ValueFactory |
lookup_value_factory(java.lang.String id)
This function is used to find a value factory. |
java.lang.String |
object_to_string(org.omg.CORBA.Object obj)
Convert an object reference to a string. |
void |
perform_work()
Perform all current work. |
boolean |
poll_next_response()
Poll next response |
org.omg.CORBA.portable.ValueFactory |
register_value_factory(java.lang.String id,
org.omg.CORBA.portable.ValueFactory factory)
This function is used to register a value factory. |
org.omg.CORBA.portable.ValueFactory |
register_value_factory(java.lang.String id,
org.omg.CORBA.portable.ValueFactory factory,
Configuration config)
This function is used to register a value factory with a supplied configuration. |
org.omg.CORBA.Object |
resolve_initial_references(java.lang.String object_name)
Return an initial reference. |
void |
run()
Run the server side. |
protected org.omg.CORBA.Object |
scan_url_body(java.lang.String addr,
byte[] key)
Method scan_url_body. |
protected org.omg.CORBA.Object |
scan_url_loc(java.lang.String loc)
This function scans a CORBA URL iioploc to extract reference information. |
protected org.omg.CORBA.Object |
scan_url_name(java.lang.String loc)
This function scans a CORBA URL corbaname to extract reference information. |
void |
send_multiple_requests_deferred(org.omg.CORBA.Request[] req)
Send multiple deferred requests. |
void |
send_multiple_requests_oneway(org.omg.CORBA.Request[] req)
Send multiple oneway requests. |
void |
set_delegate(java.lang.Object wrapper)
This function is used to set a delegate. |
protected void |
set_parameters(java.applet.Applet app,
java.util.Properties properties)
Set the ORB parameters for applet. |
protected void |
set_parameters(java.lang.String[] args,
java.util.Properties properties)
Set the ORB parameters. |
void |
setFeature(java.lang.String feature,
java.lang.Object reference)
This operation is used to set an OpenORB feature reference. |
void |
shutdown(boolean wait_for_completion)
Stop the orb ( and the object adapter if required ) |
org.omg.CORBA.Object |
string_to_object(java.lang.String str)
Convert a string to an object reference. |
void |
unregister_value_factory(java.lang.String id)
This function is used to unregister a value factory. |
boolean |
work_pending()
Check if some work is pending. |
Methods inherited from class org.omg.CORBA_2_3.ORB |
---|
get_value_def |
Methods inherited from class org.omg.CORBA.ORB |
---|
create_operation_list, get_current, init, init, init |
Methods inherited from class java.lang.Object |
---|
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ORB()
Method Detail |
---|
public void setFeature(java.lang.String feature, java.lang.Object reference)
feature
- reference
- public java.lang.Object getFeature(java.lang.String feature)
feature
-
public ORBLoader getLoader()
public CurrentImpl getPICurrent()
public void addInitialReference(java.lang.String name, org.omg.CORBA.Object target)
name
- target
- public void addServiceInformation(short service_type, org.omg.CORBA.ServiceInformation service_information)
service_type
- service_information
- public java.lang.String getURLCodeBase()
public org.omg.CORBA.Object resolve_initial_references(java.lang.String object_name) throws org.omg.CORBA.ORBPackage.InvalidName
resolve_initial_references
in class ORBSingleton
object_name
-
org.omg.CORBA.ORBPackage.InvalidName
public java.lang.String[] list_initial_services()
list_initial_services
in class ORBSingleton
public void run()
run
in class ORBSingleton
public void shutdown(boolean wait_for_completion)
shutdown
in class ORBSingleton
wait_for_completion
- public void destroy()
destroy
in class org.omg.CORBA.ORB
protected void finalize()
finalize
in class java.lang.Object
public boolean work_pending()
work_pending
in class ORBSingleton
public void perform_work()
perform_work
in class ORBSingleton
public org.omg.CORBA.portable.OutputStream create_output_stream()
create_output_stream
in class ORBSingleton
public org.omg.CORBA.NVList create_list(int count)
create_list
in class ORBSingleton
count
-
public org.omg.CORBA.NamedValue create_named_value(java.lang.String name, org.omg.CORBA.Any value, int flags)
create_named_value
in class ORBSingleton
name
- value
- flags
-
public org.omg.CORBA.ExceptionList create_exception_list()
create_exception_list
in class ORBSingleton
public org.omg.CORBA.ContextList create_context_list()
create_context_list
in class ORBSingleton
public org.omg.CORBA.Context get_default_context()
get_default_context
in class ORBSingleton
public org.omg.CORBA.Environment create_environment()
create_environment
in class ORBSingleton
public void connect(org.omg.CORBA.Object obj)
connect
in class ORBSingleton
obj
- public void disconnect(org.omg.CORBA.Object obj)
disconnect
in class ORBSingleton
obj
- public java.lang.String object_to_string(org.omg.CORBA.Object obj)
object_to_string
in class ORBSingleton
obj
-
public org.omg.CORBA.Object string_to_object(java.lang.String str)
string_to_object
in class ORBSingleton
str
-
public void send_multiple_requests_oneway(org.omg.CORBA.Request[] req)
send_multiple_requests_oneway
in class ORBSingleton
req
- public void send_multiple_requests_deferred(org.omg.CORBA.Request[] req)
send_multiple_requests_deferred
in class ORBSingleton
req
- public boolean poll_next_response()
poll_next_response
in class ORBSingleton
public org.omg.CORBA.Request get_next_response()
get_next_response
in class ORBSingleton
protected void set_parameters(java.lang.String[] args, java.util.Properties properties)
set_parameters
in class ORBSingleton
args
- properties
- protected void set_parameters(java.applet.Applet app, java.util.Properties properties)
set_parameters
in class ORBSingleton
app
- properties
- public org.omg.CORBA.portable.ValueFactory register_value_factory(java.lang.String id, org.omg.CORBA.portable.ValueFactory factory, Configuration config)
id
- The IDL valuetype identifier.factory
- The value factory instance.config
- The factory configuration.
public org.omg.CORBA.portable.ValueFactory register_value_factory(java.lang.String id, org.omg.CORBA.portable.ValueFactory factory)
register_value_factory
in class ORBSingleton
id
- the IDL valuetype identifierfactory
- the value factory instance
public void unregister_value_factory(java.lang.String id)
unregister_value_factory
in class ORBSingleton
id
- public org.omg.CORBA.portable.ValueFactory lookup_value_factory(java.lang.String id)
lookup_value_factory
in class ORBSingleton
id
- The type id of the value type.
public void set_delegate(java.lang.Object wrapper)
set_delegate
in class ORBSingleton
wrapper
- public boolean get_service_information(short service_type, org.omg.CORBA.ServiceInformationHolder service_information)
get_service_information
in class ORBSingleton
service_type
- service_information
-
public org.omg.CORBA.Policy create_policy(int policy_type, org.omg.CORBA.Any val) throws org.omg.CORBA.PolicyError
create_policy
in class ORBSingleton
policy_type
- val
-
org.omg.CORBA.PolicyError
protected org.omg.CORBA.Object scan_url_loc(java.lang.String loc)
loc
-
protected org.omg.CORBA.Object scan_url_body(java.lang.String addr, byte[] key)
addr
- key
-
protected org.omg.CORBA.Object scan_url_name(java.lang.String loc)
loc
- The corbaname URL without the prefix "corbaname:".
protected byte[] getKeyFromString(java.lang.String str)
str
-
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |