jp.go.aist.rtm.RTC
クラス ManagerServant

java.lang.Object
  上位を拡張 org.omg.PortableServer.Servant
      上位を拡張 RTM.ManagerPOA
          上位を拡張 jp.go.aist.rtm.RTC.ManagerServant
すべての実装されたインタフェース:
org.omg.CORBA.portable.InvokeHandler, ManagerOperations

public class ManagerServant
extends ManagerPOA

ManagerServant


フィールドの概要
protected  Logbuf rtcout
           
 
コンストラクタの概要
ManagerServant()
           Constructor
 
メソッドの概要
 Manager _this()
           _this
 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(java.lang.String module_name)
           Creating an RT-Component
 boolean createINSManager()
           {@.en Generate INSManager.
 ReturnCode_t delete_component(java.lang.String instance_name)
           delete_component
 Manager findManager(java.lang.String host_port)
           Find the reference of Manager. return Manager reference
 ReturnCode_t fork()
           fork
 ComponentProfile[] get_component_profiles()
           get_component_profiles
 RTObject[] get_components()
           Getting RT-Component list running on this manager
 NameValue[] get_configuration()
           get_configuration
 ModuleProfile[] get_factory_profiles()
           get_factory_profiles
 ModuleProfile[] get_loadable_modules()
           Getting loadable module profiles
 ModuleProfile[] get_loaded_modules()
           get_loaded_modules
 Manager[] get_master_managers()
           Getting master managers
 ManagerProfile get_profile()
           get_profile
 org.omg.CORBA.Object get_service(java.lang.String name)
           get_service
 Manager[] get_slave_managers()
           Getting slave managers
 Manager getObjRef()
           getObjRef
 boolean is_master()
           Whether this manager is master or not
 ReturnCode_t load_module(java.lang.String pathname, java.lang.String initfunc)
           load_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()
           restart
 ReturnCode_t set_configuration(java.lang.String name, java.lang.String value)
           set_configuration
 void setObjRef(Manager rtobj)
           setObjRef
 ReturnCode_t shutdown()
           shutdown
 ReturnCode_t unload_module(java.lang.String pathname)
           unload_module
 
クラス RTM.ManagerPOA から継承されたメソッド
_all_interfaces, _invoke, _this
 
クラス org.omg.PortableServer.Servant から継承されたメソッド
_default_POA, _get_delegate, _get_interface_def, _is_a, _non_existent, _object_id, _orb, _poa, _set_delegate, _this_object, _this_object
 
クラス java.lang.Object から継承されたメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

フィールドの詳細

rtcout

protected Logbuf rtcout
コンストラクタの詳細

ManagerServant

public ManagerServant()

Constructor

メソッドの詳細

_this

public Manager _this()

_this

オーバーライド:
クラス ManagerPOA 内の _this
戻り値:
RTM.Manager

createINSManager

public boolean createINSManager()
Generate INSManager.

戻り値:
Successful:true, Failed:false

findManager

public Manager findManager(java.lang.String host_port)
Find the reference of Manager. return Manager reference


load_module

public ReturnCode_t load_module(java.lang.String pathname,
                                java.lang.String initfunc)

load_module

Loading a module

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.
戻り値:
The return code.

unload_module

public ReturnCode_t unload_module(java.lang.String pathname)

unload_module

Unloading a module

This operation unloads a specified loadable module.

パラメータ:
pathname - A path to a loading module.
戻り値:
The return code.

get_loadable_modules

public ModuleProfile[] get_loadable_modules()
Getting loadable module profiles

This operation returns loadable module profiles.

戻り値:
A module profile list.

get_loaded_modules

public ModuleProfile[] get_loaded_modules()

get_loaded_modules

Getting loaded module profiles

This operation returns loaded module profiles.

戻り値:
A module profile list.

get_factory_profiles

public ModuleProfile[] get_factory_profiles()

get_factory_profiles

Getting component factory profiles

This operation returns component factory profiles from loaded RT-Component module factory profiles.

戻り値:
An RT-Component factory profile list.

create_component

public RTObject create_component(java.lang.String module_name)
Creating an RT-Component

This operation creates RT-Component according to the string argument.

戻り値:
A created RT-Component

delete_component

public ReturnCode_t delete_component(java.lang.String instance_name)

delete_component

Deleting an RT-Component

This operation delete an RT-Component according to the string argument.

パラメータ:
instance_name -
戻り値:
Return code

get_components

public RTObject[] get_components()
Getting RT-Component list running on this manager

This operation returns RT-Component list running on this manager.

戻り値:
A list of RT-Components

get_component_profiles

public ComponentProfile[] get_component_profiles()

get_component_profiles

Getting RT-Component's profile list running on this manager

This operation returns RT-Component's profile list running on this manager.

戻り値:
A list of RT-Components' profiles

get_profile

public ManagerProfile get_profile()

get_profile

Getting this manager's profile.

This operation returns this manager's profile.

戻り値:
Manager's profile

get_configuration

public NameValue[] get_configuration()

get_configuration

Getting this manager's configuration.

This operation returns this manager's configuration.

戻り値:
Manager's configuration

set_configuration

public ReturnCode_t set_configuration(java.lang.String name,
                                      java.lang.String value)

set_configuration

Setting manager's configuration

This operation sets managers configuration.

パラメータ:
name - A configuration key name to be set
value - A configuration value to be set
戻り値:
Return code

is_master

public boolean is_master()

Whether this manager is master or not

It returns "True" if this manager is a master, and it returns "False" in other cases.

戻り値:
A boolean value that means it is master or not.

get_master_managers

public Manager[] get_master_managers()

Getting master managers

This operation returns master manager list if this manager is slave. If this manager is master, an empty sequence would be returned.

戻り値:
Master manager list

add_master_manager

public ReturnCode_t add_master_manager(Manager mgr)

Getting a master manager

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.

戻り値:
ReturnCode_t

remove_master_manager

public ReturnCode_t remove_master_manager(Manager mgr)

Removing a master manager

This operation removes a master manager from this manager.

パラメータ:
mgr - A master manager
戻り値:
ReturnCode_t

get_slave_managers

public Manager[] get_slave_managers()

Getting slave managers

This operation returns slave manager list if this manager is slave. If this manager is slave, an empty sequence would be returned.

戻り値:
Slave manager list

add_slave_manager

public ReturnCode_t add_slave_manager(Manager mgr)

Getting a slave manager

This operation add a slave manager to this manager.

パラメータ:
mgr - A slave manager
戻り値:
ReturnCode_t

remove_slave_manager

public ReturnCode_t remove_slave_manager(Manager mgr)

Removing a slave manager

This operation removes a slave manager from this manager.

パラメータ:
mgr - A slave manager
戻り値:
ReturnCode_t

fork

public ReturnCode_t fork()

fork


shutdown

public ReturnCode_t shutdown()

shutdown


restart

public ReturnCode_t restart()

restart


get_service

public org.omg.CORBA.Object get_service(java.lang.String name)

get_service


getObjRef

public Manager getObjRef()

getObjRef


setObjRef

public void setObjRef(Manager rtobj)

setObjRef