public class ManagerServant extends ManagerPOA
This class changes Manager to CORBA Servant. Generation/deletion of the component, to get the state of the system, etc. can be done from the outside.
| Constructor and Description | 
|---|
ManagerServant()
 Constructor 
 | 
| Modifier and Type | Method and Description | 
|---|---|
Manager | 
_this()
 Gets CORBA object. 
 | 
ReturnCode_t | 
add_master_manager(Manager mgr)
 Getting a master manager 
 | 
ReturnCode_t | 
add_slave_manager(Manager mgr)
 Getting a slave manager 
 | 
RTObject | 
create_component_by_address(java.lang.String module_name)
 Starts RTC by a specified manager. 
 | 
RTObject | 
create_component_by_mgrname(java.lang.String module_name)
 Starts RTC by a specified manager. 
 | 
RTObject | 
create_component(java.lang.String module_name)
 Creating an RT-Component 
 | 
boolean | 
createINSManager()
 {@.en Generate INSManager. 
 | 
ReturnCode_t | 
delete_component(java.lang.String instance_name)
 Deleting an RT-Component 
 | 
Manager | 
findManager_by_name(java.lang.String manager_name)
 Get the manager specified by the name. 
 | 
Manager | 
findManager(java.lang.String host_port)
 Find the reference of Manager.
 return 
   
   Manager reference 
 | 
ReturnCode_t | 
fork()
 The copy of the process is generated. 
 | 
ComponentProfile[] | 
get_component_profiles()
 Getting RT-Component's profile list running on this manager 
 | 
RTObject[] | 
get_components_by_name(java.lang.String name)
 Get RTC Object. 
 | 
RTObject[] | 
get_components()
 Getting RT-Component list running on this manager 
 | 
NameValue[] | 
get_configuration()
 Getting this manager's configuration. 
 | 
ModuleProfile[] | 
get_factory_profiles()
 Getting component factory profiles 
 | 
ModuleProfile[] | 
get_loadable_modules()
 Getting loadable module profiles 
 | 
ModuleProfile[] | 
get_loaded_modules()
 Getting loaded module profiles 
 | 
Manager[] | 
get_master_managers()
 Getting master managers 
 | 
java.lang.String | 
get_parameter_by_modulename(java.lang.String param_name,
                           java.lang.String[] module_name)
 Get a parameter by a specified module name. 
 | 
ManagerProfile | 
get_profile()
 Getting this manager's profile. 
 | 
org.omg.CORBA.Object | 
get_service(java.lang.String name)
 Get the reference of RTC. 
 | 
Manager[] | 
get_slave_managers()
 Getting slave managers 
 | 
Manager | 
getObjRef()
 Get the reference of Manager. 
 | 
boolean | 
is_master()
 Whether this manager is master or not 
 | 
ReturnCode_t | 
load_module(java.lang.String pathname,
           java.lang.String initfunc)
 Loading a module 
 | 
ReturnCode_t | 
remove_master_manager(Manager mgr)
 Removing a master manager 
 | 
ReturnCode_t | 
remove_slave_manager(Manager mgr)
 Removing a slave manager 
 | 
ReturnCode_t | 
restart()
 This method restarts RTC. 
 | 
ReturnCode_t | 
set_configuration(java.lang.String name,
                 java.lang.String value)
 Setting manager's configuration 
 | 
ReturnCode_t | 
shutdown()
 This method shutdowns RTC. 
 | 
ReturnCode_t | 
unload_module(java.lang.String pathname)
 Unloading a module 
 | 
void | 
update_master_manager()
 Confirms the presence of a master manager and renews a list.
 
 void update_master_manager() 
 | 
_all_interfaces, _invoke, _thisprotected Logbuf rtcout
public Manager _this()
Gets RTM.Manager object.
_this in class ManagerPOApublic boolean createINSManager()
public Manager findManager(java.lang.String host_port)
public ReturnCode_t load_module(java.lang.String pathname, java.lang.String initfunc)
This operation loads a specified loadable module and perform initialization with the specified function.
pathname - 
   A path to a loading module.initfunc - 
   Module initialization function.public ReturnCode_t unload_module(java.lang.String pathname)
This operation unloads a specified loadable module.
pathname - 
   A path to a loading module.public ModuleProfile[] get_loadable_modules()
This operation returns loadable module profiles.
public ModuleProfile[] get_loaded_modules()
This operation returns loaded module profiles.
public ModuleProfile[] get_factory_profiles()
This operation returns component factory profiles from loaded RT-Component module factory profiles.
public RTObject create_component(java.lang.String module_name)
This operation creates RT-Component according to the string argument.
public ReturnCode_t delete_component(java.lang.String instance_name)
This operation delete an RT-Component according to the string argument.
instance_name - 
   Instance namepublic RTObject[] get_components()
This operation returns RT-Component list running on this manager.
public ComponentProfile[] get_component_profiles()
This operation returns RT-Component's profile list running on this manager.
public ManagerProfile get_profile()
This operation returns this manager's profile.
public NameValue[] get_configuration()
This operation returns this manager's configuration.
public ReturnCode_t set_configuration(java.lang.String name, java.lang.String value)
This operation sets managers configuration.
name - 
   A configuration key name to be setvalue - 
   A configuration value to be setpublic boolean is_master()
It returns "True" if this manager is a master, and it returns "False" in other cases.
public Manager[] get_master_managers()
This operation returns master manager list if this manager is slave. If this manager is master, an empty sequence would be returned.
public ReturnCode_t add_master_manager(Manager mgr)
This operation returns a master manager with specified id. If the manager with the specified id does not exist, nil object reference would be returned.
public ReturnCode_t remove_master_manager(Manager mgr)
This operation removes a master manager from this manager.
mgr - 
   A master managerpublic Manager[] get_slave_managers()
This operation returns slave manager list if this manager is slave. If this manager is slave, an empty sequence would be returned.
public ReturnCode_t add_slave_manager(Manager mgr)
This operation add a slave manager to this manager.
mgr - 
   A slave managerpublic ReturnCode_t remove_slave_manager(Manager mgr)
This operation removes a slave manager from this manager.
mgr - 
   A slave managerpublic ReturnCode_t fork()
public ReturnCode_t shutdown()
public ReturnCode_t restart()
public org.omg.CORBA.Object get_service(java.lang.String name)
public Manager getObjRef()
public RTObject[] get_components_by_name(java.lang.String name)
name - 
   RTC namepublic Manager findManager_by_name(java.lang.String manager_name)
manager_name - 
   manager namepublic java.lang.String get_parameter_by_modulename(java.lang.String param_name,
                                                    java.lang.String[] module_name)
param_name - 
   parameter namemodule_name - 
   module namepublic RTObject create_component_by_mgrname(java.lang.String module_name)
How to specify: RTCName&manager_name=ManageName Example:comp&manager_name=mgr
module_name - 
   RTCNrame ManagerNamepublic RTObject create_component_by_address(java.lang.String module_name)
How to specify: RTCName&manager_address=ManageHostName Example:comp&manager_address=localhost:2810
module_name - 
   RTCNrame ManagerHostAdresspublic void update_master_manager()