|
VisiBroker for Java |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface OADOperations
Provides access to the Object Activation Daemon (OAD). It is used by the administration tools to list, register, and unregister objects. It is also used by client code for programmatic administration of the OAD.
The IDL for the OAD interface -
interface OAD { CreationImplDef create_CreationImplDef(); Object reg_implementation(in extension::CreationImplDef impl) raises(DuplicateEntry,InvalidPath); CreationImplDef get_implementation(in CORBA::RepositoryId repId, in string object_name) raises(NotRegistered); void change_implementation(in extension::CreationImplDef old_info, in extension::CreationImplDef new_info) raises(NotRegistered,InvalidPath,IsActive); attribute boolean destroy_on_unregister; void unreg_implementation(in CORBA::RepositoryId repId, in string object_name) raises(NotRegistered); void unreg_interface(in CORBA::RepositoryId repId) raises(NotRegistered); void unregister_all(); ImplementationStatus get_status(in CORBA::RepositoryId repId, in string object_name) raises(NotRegistered); ImplStatusList get_status_interface(in CORBA::RepositoryId repId) raises(NotRegistered); ImplStatusList get_status_all(); Object lookup_interface(in CORBA::RepositoryId repId, in long timeout) raises(NotRegistered, FailedToExecute, NotResponding, Busy); Object lookup_implementation(in CORBA::RepositoryId repId, in string object_name, in long timeout) raises(NotRegistered, FailedToExecute, NotResponding, Busy); CreationImplDef boa_activate_obj(in Object obj, in string repository_id, in long unique_id) raises(NotRegistered); void boa_deactivate3_obj(in Object obj, in string repository_id in long unique_id) raises(NotRegistered); string generated_command(in extension::CreationImplDef impl); string generated_environment(inextension::CreationImplDef impl); };
Method Summary | |
---|---|
CreationImplDef |
boa_activate_obj(Object obj,
java.lang.String repository_id,
int unique_id)
Invoked implicitly when the spawned process calls BOA::obj_is_ready. |
void |
boa_deactivate_obj(Object obj,
java.lang.String repository_id,
int unique_id)
Invoked implicitly when the spawned process deactivates an object (on which obj_is_ready was previously called). |
void |
change_implementation(CreationImplDef old_info,
CreationImplDef new_info)
Dynamically changes an object's implementation details. |
CreationImplDef |
create_CreationImplDef()
Creates an empty CreationImplDef |
boolean |
destroy_on_unregister()
Indicates if the OAD should destroy any spawned processes upon unregistration of the implementation. |
void |
destroy_on_unregister(boolean arg0)
Indicates if the OAD should destroy any spawned processes upon unregistration of the implementation. |
java.lang.String |
generated_command(CreationImplDef impl)
Returns the command-line that will be executed for a given implementation. |
java.lang.String |
generated_environment(CreationImplDef impl)
Returns the environment in which the spawned server is executed for a given implementation. |
CreationImplDef |
get_implementation(java.lang.String repId,
java.lang.String object_name)
Retrieves the registration information for the specified implementation. |
ImplementationStatus[] |
get_status_all()
Returns the status information for all registrations with the OAD. |
ImplementationStatus[] |
get_status_interface(java.lang.String repId)
Returns status information for all implementations with the given repository id. |
ImplementationStatus |
get_status(java.lang.String repId,
java.lang.String object_name)
Returns status information for the given implementation, identified by the provided repository id and object name. |
Object |
lookup_implementation(java.lang.String repId,
java.lang.String object_name,
int timeout)
Returns the Object reference for an implementation with the given RepositoryId and object name. |
Object |
lookup_interface(java.lang.String repId,
int timeout)
Returns the Object reference for an implementation with the given RepositoryId. |
Object |
reg_implementation(CreationImplDef impl)
Registers an implementation with the OAD and the VisiBroker directory service. |
void |
unreg_implementation(java.lang.String repId,
java.lang.String object_name)
Unregisters implementations identified by the repository id and object name. |
void |
unreg_interface(java.lang.String repId)
Unregisters all implementations having the given repository id. |
void |
unregister_all()
Unregisters all implementations with the OAD. |
Method Detail |
---|
java.lang.String generated_environment(CreationImplDef impl)
impl
- the registered implementation.java.lang.String generated_command(CreationImplDef impl)
impl
- the registered implementation.void boa_deactivate_obj(Object obj, java.lang.String repository_id, int unique_id) throws NotRegistered
obj
- A string containing an object name.repository_id
- A string containing a repository identifier.unique_id
- The identifier used when the boa_activate_obj was invoked.
NotRegistered
CreationImplDef boa_activate_obj(Object obj, java.lang.String repository_id, int unique_id) throws NotRegistered
NotRegistered
Object lookup_implementation(java.lang.String repId, java.lang.String object_name, int timeout) throws NotRegistered, FailedToExecute, NotResponding, Busy
repId
- A string containing the repository id.object_name
- A string containing the object name.
NotRegistered
FailedToExecute
NotResponding
Busy
Object lookup_interface(java.lang.String repId, int timeout) throws NotRegistered, FailedToExecute, NotResponding, Busy
repId
- A string containing the repository id.timeout
- The mamimum time to wait for activation of spawned process.
NotRegistered
FailedToExecute
NotResponding
Busy
ImplementationStatus[] get_status_all()
ImplementationStatus[] get_status_interface(java.lang.String repId) throws NotRegistered
repId
- A string containing the repository id.
NotRegistered
ImplementationStatus get_status(java.lang.String repId, java.lang.String object_name) throws NotRegistered
repId
- A string containing the repository id.object_name
- A string containing the object name.
NotRegistered
void unregister_all()
void unreg_interface(java.lang.String repId) throws NotRegistered
repId
- A string containing the repository id.
NotRegistered
void unreg_implementation(java.lang.String repId, java.lang.String object_name) throws NotRegistered
repId
- A string containing the repository id.object_name
- A string containing the object name.
NotRegistered
boolean destroy_on_unregister()
void destroy_on_unregister(boolean arg0)
void change_implementation(CreationImplDef old_info, CreationImplDef new_info) throws NotRegistered, InvalidPath, IsActive
It is an error to change the registration
information for a currently active implementation. The IsActive call may be used
to check if an implemenation is active.
Caution: Be sure to exercise caution when changing an object's implementation name
and object name with this method. Doing so will prevent client applications from
locating the object with the old name.
old_info
- The registration information to be replaced.new_info
- The new registration information.
NotRegistered
InvalidPath
IsActive
CreationImplDef get_implementation(java.lang.String repId, java.lang.String object_name) throws NotRegistered
repId
- A string containing a repository identifier.object_name
- A string containing an object name.
NotRegistered
Object reg_implementation(CreationImplDef impl) throws DuplicateEntry, InvalidPath
impl
- instance of CreationImplDef being used to register the implementation
DuplicateEntry
- entry already exists
InvalidPath
- server class or executable not foundCreationImplDef create_CreationImplDef()
|
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |