Public Member Functions | Protected Member Functions | Static Protected Member Functions | List of all members
ExecutableDevice_impl Class Reference

#include <ExecutableDevice_impl.h>

Inheritance diagram for ExecutableDevice_impl:
LoadableDevice_impl Device_impl Resource_impl PropertySet_impl PortSupplier_impl LifeCycle_impl TestableObject_impl Logging_impl

Public Member Functions

 ExecutableDevice_impl (char *, char *, char *, char *)
 
 ExecutableDevice_impl (char *, char *, char *, char *, CF::Properties capacities)
 
 ExecutableDevice_impl (char *, char *, char *, char *, char *)
 
 ExecutableDevice_impl (char *, char *, char *, char *, CF::Properties capacities, char *)
 
 ~ExecutableDevice_impl ()
 
CF::ExecutableDevice::ProcessID_Type execute (const char *name, const CF::Properties &options, const CF::Properties &parameters) throw (CF::ExecutableDevice::ExecuteFail, CF::InvalidFileName, CF::ExecutableDevice::InvalidOptions, CF::ExecutableDevice::InvalidParameters, CF::ExecutableDevice::InvalidFunction, CF::Device::InvalidState, CORBA::SystemException)
 
void configure (const CF::Properties &configProperties) throw (CF::PropertySet::PartialConfiguration, CF::PropertySet::InvalidConfiguration, CORBA::SystemException)
 
 ExecutableDevice_impl ()
 
 ExecutableDevice_impl (ExecutableDevice_impl &)
 
CF::ExecutableDevice::ProcessID_Type executeLinked (const char *name, const CF::Properties &options, const CF::Properties &parameters, const CF::StringSequence &deps) throw (CF::ExecutableDevice::ExecuteFail, CF::InvalidFileName, CF::ExecutableDevice::InvalidOptions, CF::ExecutableDevice::InvalidParameters, CF::ExecutableDevice::InvalidFunction, CF::Device::InvalidState, CORBA::SystemException)
 
CF::ExecutableDevice::ProcessID_Type do_execute (const char *name, const CF::Properties &options, const CF::Properties &parameters, const std::vector< std::string > prepend_args) throw (CF::ExecutableDevice::ExecuteFail, CF::InvalidFileName, CF::ExecutableDevice::InvalidOptions, CF::ExecutableDevice::InvalidParameters, CF::ExecutableDevice::InvalidFunction, CF::Device::InvalidState, CORBA::SystemException)
 
void terminate (CF::ExecutableDevice::ProcessID_Type processId) throw (CF::Device::InvalidState, CF::ExecutableDevice::InvalidProcess, CORBA::SystemException)
 
- Public Member Functions inherited from LoadableDevice_impl
 LoadableDevice_impl (char *, char *, char *, char *)
 
 LoadableDevice_impl (char *, char *, char *, char *, CF::Properties capacities)
 
 LoadableDevice_impl (char *, char *, char *, char *, char *)
 
 LoadableDevice_impl (char *, char *, char *, char *, CF::Properties capacities, char *)
 
virtual ~LoadableDevice_impl ()
 
void configure (const CF::Properties &configProperties) throw (CF::PropertySet::PartialConfiguration, CF::PropertySet::InvalidConfiguration, CORBA::SystemException)
 
void load (CF::FileSystem_ptr fs, const char *fileName, CF::LoadableDevice::LoadType loadKind) throw (CF::LoadableDevice::LoadFail, CF::InvalidFileName, CF::LoadableDevice::InvalidLoadKind, CF::Device::InvalidState, CORBA::SystemException)
 
void do_load (CF::FileSystem_ptr fs, const char *fileName, CF::LoadableDevice::LoadType loadKind) throw (CF::LoadableDevice::LoadFail, CF::InvalidFileName, CF::LoadableDevice::InvalidLoadKind, CF::Device::InvalidState, CORBA::SystemException)
 
void unload (const char *fileName) throw (CF::InvalidFileName, CF::Device::InvalidState, CORBA::SystemException)
 
void do_unload (const char *fileName) throw (CF::InvalidFileName, CF::Device::InvalidState, CORBA::SystemException)
 
bool isFileLoaded (const char *fileName)
 
void setTransferSize (uint64_t xfersize)
 
- Public Member Functions inherited from Device_impl
 Device_impl (char *, char *, char *, char *)
 
 Device_impl (char *, char *, char *, char *, char *)
 
 Device_impl (char *, char *, char *, char *, CF::Properties &capacities)
 
 Device_impl (char *, char *, char *, char *, CF::Properties &capacities, char *)
 
 ~Device_impl ()
 
virtual void halt ()
 
void releaseObject () throw (CF::LifeCycle::ReleaseError, CORBA::SystemException)
 
char * label () throw (CORBA::SystemException)
 
CF::Device::UsageType usageState () throw (CORBA::SystemException)
 
CF::Device::AdminType adminState () throw (CORBA::SystemException)
 
CF::Device::OperationalType operationalState () throw (CORBA::SystemException)
 
CF::AggregateDevice_ptr compositeDevice () throw (CORBA::SystemException)
 
void adminState (CF::Device::AdminType _adminType) throw (CORBA::SystemException)
 
void deallocateCapacity (const CF::Properties &capacities) throw (CF::Device::InvalidState, CF::Device::InvalidCapacity, CORBA::SystemException)
 
CORBA::Boolean allocateCapacity (const CF::Properties &capacities) throw (CF::Device::InvalidState, CF::Device::InvalidCapacity, CF::Device::InsufficientCapacity, CORBA::SystemException)
 
void configure (const CF::Properties &configProperties) throw (CF::PropertySet::PartialConfiguration, CF::PropertySet::InvalidConfiguration, CORBA::SystemException)
 
void setAdditionalParameters (std::string &softwareProfile, std::string &application_registrar_ior, const std::string &nic)
 
virtual void run ()
 
const CF::DeviceManager_ptr getDeviceManager () const
 
bool isUnlocked ()
 
bool isLocked ()
 
bool isDisabled ()
 
bool isBusy ()
 
bool isIdle ()
 
void setAdminState (CF::Device::AdminType _adminType)
 
- Public Member Functions inherited from Resource_impl
virtual ~Resource_impl ()
 
 Resource_impl (const char *_uuid)
 
 Resource_impl (const char *_uuid, const char *label)
 
virtual void constructor ()
 
void setParentId (const std::string &parentid)
 
void start () throw (CF::Resource::StartError, CORBA::SystemException)
 
void stop () throw (CF::Resource::StopError, CORBA::SystemException)
 
void initialize () throw (CF::LifeCycle::InitializeError, CORBA::SystemException)
 
void releaseObject () throw (CORBA::SystemException, CF::LifeCycle::ReleaseError)
 
char * identifier () throw (CORBA::SystemException)
 
CORBA::Boolean started () throw (CORBA::SystemException)
 
char * softwareProfile () throw (CORBA::SystemException)
 
virtual void setCurrentWorkingDirectory (std::string &cwd)
 
virtual std::string & getCurrentWorkingDirectory ()
 
virtual void setAdditionalParameters (std::string &softwareProfile, std::string &application_registrar_ior, std::string &nic)
 
redhawk::DomainManagerContainer * getDomainManager ()
 
- Public Member Functions inherited from PropertySet_impl
 PropertySet_impl ()
 
 ~PropertySet_impl ()
 
void setExecparamProperties (std::map< std::string, char * > &)
 
void initializeProperties (const CF::Properties &initialProperties) throw (CF::PropertyEmitter::AlreadyInitialized, CF::PropertySet::PartialConfiguration, CF::PropertySet::InvalidConfiguration, CORBA::SystemException)
 
void configure (const CF::Properties &configProperties) throw (CF::PropertySet::PartialConfiguration, CF::PropertySet::InvalidConfiguration, CORBA::SystemException)
 
void query (CF::Properties &configProperties) throw (CF::UnknownProperties, CORBA::SystemException)
 
PropertyInterface * getPropertyFromId (const std::string &)
 
PropertyInterface * getPropertyFromName (const std::string &)
 
void registerPropertyChangePort (PropertyEventSupplier *_propertyChangePort)
 
char * registerPropertyListener (CORBA::Object_ptr listener, const CF::StringSequence &prop_ids, const CORBA::Float interval) throw (CF::UnknownProperties, CF::InvalidObjectReference)
 
void unregisterPropertyListener (const char *reg_id) throw (CF::InvalidIdentifier)
 
void startPropertyChangeMonitor (const std::string &rsc_id)
 
void stopPropertyChangeMonitor ()
 
- Public Member Functions inherited from PortSupplier_impl
 PortSupplier_impl ()
 
CORBA::Object * getPort (const char *) throw (CF::PortSupplier::UnknownPort, CORBA::SystemException)
 
CF::PortSupplier::PortInfoSequence * getPortSet ()
 
- Public Member Functions inherited from LifeCycle_impl
 LifeCycle_impl ()
 
void initialize () throw (CF::LifeCycle::InitializeError, CORBA::SystemException)
 
void releaseObject () throw (CF::LifeCycle::ReleaseError, CORBA::SystemException)
 
- Public Member Functions inherited from TestableObject_impl
 TestableObject_impl ()
 
void runTest (CORBA::ULong TestID, CF::Properties &testValues) throw (CF::UnknownProperties, CF::TestableObject::UnknownTest, CORBA::SystemException)
 
- Public Member Functions inherited from Logging_impl
 Logging_impl ()
 
virtual ~Logging_impl ()
 
char * getLogConfig ()
 
void setLogConfig (const char *config_contents)
 
void setLogConfigURL (const char *config_url)
 
CF::LogLevel log_level ()
 
void log_level (const CF::LogLevel newLevel)
 
void setLogLevel (const char *logger_id, const CF::LogLevel newLevel) throw (CF::UnknownIdentifier)
 
LOGGER getLogger ()
 
LOGGER getLogger (const std::string &logger_name, const bool assignToResource=false)
 
CF::LogEventSequence * retrieve_records (CORBA::ULong &howMany, CORBA::ULong startingRecord)
 
CF::LogEventSequence * retrieve_records_by_date (CORBA::ULong &howMany, CORBA::ULongLong to_timeStamp)
 
CF::LogEventSequence * retrieve_records_from_date (CORBA::ULong &howMany, CORBA::ULongLong from_timeStamp)
 
void setLoggingMacros (ossie::logging::MacroTable &tbl, bool applyCtx)
 
void setResourceContext (ossie::logging::ResourceCtxPtr ctx)
 
void setLoggingContext (ossie::logging::ResourceCtxPtr ctx)
 
void setLoggingContext (const std::string &url, int loglevel, ossie::logging::ResourceCtxPtr ctx)
 
void saveLoggingContext (const std::string &url, int loglevel, ossie::logging::ResourceCtxPtr ctx)
 

Protected Member Functions

virtual void set_resource_affinity (const CF::Properties &options, const pid_t rsc_pid, const char *rsc_name, const std::vector< int > &bl=std::vector< int >(0))
 
- Protected Member Functions inherited from LoadableDevice_impl
void incrementFile (std::string)
 
void decrementFile (std::string)
 
void removeDuplicateFiles (std::string fileName)
 
void update_ld_library_path (CF::FileSystem_ptr fs, const char *fileName, CF::LoadableDevice::LoadType loadKind) throw (CORBA::SystemException, CF::Device::InvalidState, CF::LoadableDevice::InvalidLoadKind, CF::InvalidFileName, CF::LoadableDevice::LoadFail)
 
void update_octave_path (CF::FileSystem_ptr fs, const char *fileName, CF::LoadableDevice::LoadType loadKind) throw (CORBA::SystemException, CF::Device::InvalidState, CF::LoadableDevice::InvalidLoadKind, CF::InvalidFileName, CF::LoadableDevice::LoadFail)
 
void merge_front_environment_path (const char *environment_variable, const std::string &path) const
 
void update_path (sharedLibraryStorage &packageDescription)
 
void update_selected_paths (std::vector< sharedLibraryStorage > &paths)
 
- Protected Member Functions inherited from Device_impl
virtual void postConstruction (std::string &softwareProfile, std::string &registrar_ior, const std::string &idm_channel_ior="", const std::string &nic="", const int sigfd=-1)
 
void resolveDomainContext ()
 
void sendStateChange (StandardEvent::StateChangeType &fromState, StandardEvent::StateChangeType &toState, StandardEvent::StateChangeCategoryType category)
 
void connectIDMChannel (const std::string &idm_ior="")
 
void deallocate (CORBA::Any &deviceCapacity, const CORBA::Any &resourceRequest)
 
bool allocate (CORBA::Any &deviceCapacity, const CORBA::Any &resourceRequest)
 
Device_impl::AnyComparisonType compareAnyToZero (CORBA::Any &first)
 
Device_impl::AnyComparisonType compareAnys (CORBA::Any &first, CORBA::Any &second)
 
void setUsageState (CF::Device::UsageType newUsageState)
 
void updateUsageState ()
 
template<typename T >
void setAllocationImpl (const std::string &id, bool(*alloc)(const T &), void(*dealloc)(const T &))
 
template<class C , typename T >
void setAllocationImpl (const std::string &id, C *target, bool(C::*alloc)(const T &), void(C::*dealloc)(const T &))
 
template<typename Alloc , typename Dealloc >
void setAllocationImpl (const char *id, Alloc alloc, Dealloc dealloc)
 
template<typename Target , typename Alloc , typename Dealloc >
void setAllocationImpl (const char *id, Target target, Alloc alloc, Dealloc dealloc)
 
template<typename T >
PropertyWrapper< T > * getAllocationPropertyById (const std::string &id)
 
template<typename T , typename Alloc , typename Dealloc >
void setAllocationImpl (T &value, Alloc alloc, Dealloc dealloc)
 
template<typename T , typename Target , typename Alloc , typename Dealloc >
void setAllocationImpl (T &value, Target target, Alloc alloc, Dealloc dealloc)
 
redhawk::DeviceManagerContainer * getDeviceManager ()
 
- Protected Member Functions inherited from PropertySet_impl
CF::DataType getProperty (CORBA::String_var id)
 
void validate (CF::Properties property, CF::Properties &validProps, CF::Properties &invalidProps)
 
template<typename T >
PropertyInterface * addProperty (T &value, const std::string &id, const std::string &name, const std::string &mode, const std::string &units, const std::string &action, const std::string &kinds)
 
template<typename T , typename T2 >
PropertyInterface * addProperty (T &value, const T2 &initial_value, const std::string &id, const std::string &name, const std::string &mode, const std::string &units, const std::string &action, const std::string &kinds)
 
template<class C , typename T >
void addPropertyChangeListener (const std::string &id, C *target, void(C::*func)(const T *, const T *))
 
template<typename T >
void addPropertyChangeListener (const std::string &id, void(*func)(const T *, const T *))
 
template<typename Func >
void addPropertyChangeListener (const char *id, Func func)
 
template<typename Target , typename Func >
void addPropertyChangeListener (const char *id, Target target, Func func)
 
template<typename T , typename Target , typename Func >
void addPropertyListener (T &value, Target target, Func func)
 
template<typename T , typename Func >
void addPropertyListener (T &value, Func func)
 
template<typename T , typename Target , typename Func >
void setPropertyQueryImpl (T &value, Target target, Func func)
 
template<typename T , typename Func >
void setPropertyQueryImpl (T &value, Func func)
 
template<typename T , typename Target , typename Func >
void setPropertyConfigureImpl (T &value, Target target, Func func)
 
template<typename T , typename Func >
void setPropertyConfigureImpl (T &value, Func func)
 
template<class T >
void setPropertyChangeListener (const std::string &id, T &target, void(T::*func)(const std::string &))
 
template<class T >
void setPropertyChangeListener (const std::string &id, T *target, void(T::*func)(const std::string &))
 
template<class T >
PropertyWrapper< T > * getPropertyWrapperById (const std::string &id)
 
template<class T >
PropertyWrapper< T > * getPropertyWrapper (T &value)
 
PropertyInterface * getPropertyFromAddress (const void *address)
 
void setPropertyChangeListener (const std::string &id, PropertyCallbackFn func)
 
void executePropertyCallback (const std::string &id)
 
- Protected Member Functions inherited from PortSupplier_impl
void addPort (const std::string &name, PortBase *servant)
 
void addPort (const std::string &name, const std::string &description, PortBase *servant)
 
void releasePorts ()
 
void startPorts ()
 
void stopPorts ()
 
void registerInPort (Port_Provides_base_impl *port)
 
void registerOutPort (Port_Uses_base_impl *port, CF::Port_ptr ref)
 
void releaseInPorts ()
 
void releaseOutPorts ()
 
void deactivateOutPorts ()
 
void deactivateInPorts ()
 
- Protected Member Functions inherited from Logging_impl
template<typename T >
void setLogConfigListener (T &target, void(T::*func)(const char *config_data))
 
template<typename T >
void setLogConfigListener (T *target, void(T::*func)(const char *config_data))
 
template<typename T >
void setLogLevelListener (T &target, void(T::*func)(const char *logid, const CF::LogLevel &level))
 
template<typename T >
void setLogLevelListener (T *target, void(T::*func)(const char *logid, const CF::LogLevel &level))
 
virtual void setLogConfigCallback (LogConfigListener *func)
 
virtual void setLogConfigCallback (LogConfigCallbackFn func)
 
virtual void setLogLevelCallback (LogLevelListener *func)
 
virtual void setLogLevelCallback (LogLevelCallbackFn func)
 

Static Protected Member Functions

static std::string get_component_name_from_exec_params (const CF::Properties &params)
 
static std::string component_name_from_profile_name (const std::string &profile_name)
 

Additional Inherited Members

- Public Types inherited from Logging_impl
typedef void(* LogConfigCallbackFn) (const char *config_data)
 
typedef void(* LogLevelCallbackFn) (const char *logid, const CF::LogLevel &)
 
- Static Public Member Functions inherited from Device_impl
static std::string getLogConfig (const char *devmgr_ior, const char *log_config, std::string &devmgr_label)
 
template<class T >
static void start_device (T **devPtr, struct sigaction sa, int argc, char *argv[])
 
- Static Public Member Functions inherited from Resource_impl
template<class T >
static void start_component (T *&component, int argc, char *argv[])
 
- Public Attributes inherited from Resource_impl
std::string _identifier
 
std::string naming_service_name
 
std::string _parent_id
 
- Protected Types inherited from Device_impl
enum  AnyComparisonType {
  FIRST_BIGGER, SECOND_BIGGER, BOTH_EQUAL, POSITIVE,
  NEGATIVE, ZERO, UNKNOWN
}
 
- Protected Types inherited from PropertySet_impl
typedef void(* PropertyCallbackFn) (const std::string &)
 
typedef std::map< std::string, PropertyInterface * > PropertyMap
 
- Protected Types inherited from PortSupplier_impl
typedef std::map< std::string, PortBase * > PortServantMap
 
typedef std::map< std::string, Port_Uses_base_impl * > RH_UsesPortMap
 
typedef std::map< std::string, Port_Provides_base_impl * > RH_ProvidesPortMap
 
- Protected Types inherited from Logging_impl
typedef boost::shared_ptr< LogConfigListenerLogConfigListenerPtr
 
typedef boost::shared_ptr< LogLevelListenerLogLevelListenerPtr
 
- Protected Attributes inherited from LoadableDevice_impl
std::map< std::string, int > loadedFiles
 
std::map< std::string, CF::FileSystem::FileType > fileTypeTable
 
copiedFiles_type copiedFiles
 
boost::recursive_mutex load_execute_lock
 
std::map< std::string, sharedLibraryStoragesharedPkgs
 
envStateContainer initialState
 
CORBA::LongLong transferSize
 
- Protected Attributes inherited from Device_impl
CF::Device::AdminType _adminState
 
CF::Device::UsageType _usageState
 
CF::Device::OperationalType _operationalState
 
CF::AggregateDevice_ptr _aggregateDevice
 
std::string _label
 
std::string _compositeDev_ior
 
CF::DeviceManager_ptr _deviceManager
 
redhawk::events::PublisherPtr idm_publisher
 
int sig_fd
 
bool initialConfiguration
 
CF::Properties originalCap
 
std::string _devMgr_ior
 
- Protected Attributes inherited from Resource_impl
bool _started
 
std::string _softwareProfile
 
omni_mutex component_running_mutex
 
omni_condition component_running
 
- Protected Attributes inherited from PropertySet_impl
boost::mutex propertySetAccess
 
PropertyEventSupplier * propertyChangePort
 
std::vector< PropertyInterface * > ownedWrappers
 
PropertyMap propTable
 
- Protected Attributes inherited from PortSupplier_impl
PortServantMap _portServants
 
RH_UsesPortMap outPorts
 
std::map< std::string, CF::Port_var > outPorts_var
 
RH_ProvidesPortMap inPorts
 
- Protected Attributes inherited from Logging_impl
std::string _logName
 
CF::LogLevel _logLevel
 
LOGGER _logger
 
ossie::logging::MacroTable _loggingMacros
 

Constructor & Destructor Documentation

ExecutableDevice_impl::ExecutableDevice_impl ( char *  ,
char *  ,
char *  ,
char *   
)
ExecutableDevice_impl::ExecutableDevice_impl ( char *  ,
char *  ,
char *  ,
char *  ,
CF::Properties  capacities 
)
ExecutableDevice_impl::ExecutableDevice_impl ( char *  ,
char *  ,
char *  ,
char *  ,
char *   
)
ExecutableDevice_impl::ExecutableDevice_impl ( char *  ,
char *  ,
char *  ,
char *  ,
CF::Properties  capacities,
char *   
)
ExecutableDevice_impl::~ExecutableDevice_impl ( )
inline
ExecutableDevice_impl::ExecutableDevice_impl ( )
ExecutableDevice_impl::ExecutableDevice_impl ( ExecutableDevice_impl )

Member Function Documentation

static std::string ExecutableDevice_impl::component_name_from_profile_name ( const std::string &  profile_name)
staticprotected
void ExecutableDevice_impl::configure ( const CF::Properties &  configProperties)
throw (CF::PropertySet::PartialConfiguration,
CF::PropertySet::InvalidConfiguration,
CORBA::SystemException
)
CF::ExecutableDevice::ProcessID_Type ExecutableDevice_impl::do_execute ( const char *  name,
const CF::Properties &  options,
const CF::Properties &  parameters,
const std::vector< std::string >  prepend_args 
)
throw (CF::ExecutableDevice::ExecuteFail,
CF::InvalidFileName,
CF::ExecutableDevice::InvalidOptions,
CF::ExecutableDevice::InvalidParameters,
CF::ExecutableDevice::InvalidFunction,
CF::Device::InvalidState,
CORBA::SystemException
)
CF::ExecutableDevice::ProcessID_Type ExecutableDevice_impl::execute ( const char *  name,
const CF::Properties &  options,
const CF::Properties &  parameters 
)
throw (CF::ExecutableDevice::ExecuteFail,
CF::InvalidFileName,
CF::ExecutableDevice::InvalidOptions,
CF::ExecutableDevice::InvalidParameters,
CF::ExecutableDevice::InvalidFunction,
CF::Device::InvalidState,
CORBA::SystemException
)
CF::ExecutableDevice::ProcessID_Type ExecutableDevice_impl::executeLinked ( const char *  name,
const CF::Properties &  options,
const CF::Properties &  parameters,
const CF::StringSequence &  deps 
)
throw (CF::ExecutableDevice::ExecuteFail,
CF::InvalidFileName,
CF::ExecutableDevice::InvalidOptions,
CF::ExecutableDevice::InvalidParameters,
CF::ExecutableDevice::InvalidFunction,
CF::Device::InvalidState,
CORBA::SystemException
)
static std::string ExecutableDevice_impl::get_component_name_from_exec_params ( const CF::Properties &  params)
staticprotected
virtual void ExecutableDevice_impl::set_resource_affinity ( const CF::Properties &  options,
const pid_t  rsc_pid,
const char *  rsc_name,
const std::vector< int > &  bl = std::vector< int >(0) 
)
protectedvirtual
void ExecutableDevice_impl::terminate ( CF::ExecutableDevice::ProcessID_Type  processId)
throw (CF::Device::InvalidState,
CF::ExecutableDevice::InvalidProcess,
CORBA::SystemException
)

The documentation for this class was generated from the following file: