GATE
gate::tech::ServiceHost Class Reference
Inheritance diagram for gate::tech::ServiceHost:
gate::ObjectImpl< gate_servicehost_t > gate::Object

Classes

class  Config
 
class  ConfigService
 

Public Types

typedef ObjectImpl< gate_servicehost_t > object_impl_t
 
- Public Types inherited from gate::ObjectImpl< gate_servicehost_t >
typedef gate_servicehost_t impl_t
 
typedef ObjectImpl< gate_servicehost_t > object_impl_t
 

Public Member Functions

 ServiceHost (gate_servicehost_t *host)
 
 ServiceHost (ServiceHost const &src)
 
ServiceHostoperator= (ServiceHost const &src)
 
void publishMessage (String const &sourceServiceAddress, String const &publishChannel, String const &msgId, String const &message)
 
void publishObject (String const &sourceServiceAddress, String const &publishChannel, String const &objId, Object &obj)
 
void subscribeMessages (String const &sourceServiceAddress, String const &publishChannel, String const &msgId, MicroService &subScriber, void *userData)
 
void unsubscribeMessages (String const &sourceServiceAddress, String const &publishChannel, String const &msgId, MicroService &subScriber, void *userData)
 
void subscribeOjbects (String const &sourceServiceAddress, String const &publishChannel, String const &objId, MicroService &subscriber, void *userData)
 
void unsubscribeObjects (String const &sourceServiceAddress, String const &publishChannel, String const &objId, MicroService &subscriber, void *userData)
 
void removeInvoke (String const &destinationAddress, String const &method, Struct const &inputData, Struct &outputData)
 
void log (uint32_t logType, result_t resultCode, int32_t nativeCode, String const &origin, String const &message)
 
void addFactory (MicroFactory &factory, String const &factoryName)
 
void removeFactory (String const &factoryName)
 
Array< StringgetFactoryServiceNames ()
 
String createService (String const &serviceName, String const &serviceInstance)
 returns service address
 
Array< StringgetServiceAddresses ()
 
MicroService getService (String const &serviceAddress)
 
Value getServiceConfig (String const &serviceAddress, uint32_t configType)
 
void setServiceConfig (String const &serviceAddress, uint32_t configType, Value const &value)
 
void startService (String const &serviceAddress)
 
void stopService (String const &serviceAddress)
 
void releaseService (String const &serviceAddress)
 
void startup ()
 
void shutdown ()
 
void importConfig (Config const &cfg)
 
void exportConfig (Config &cfg)
 
void releaseServices ()
 
- Public Member Functions inherited from gate::ObjectImpl< gate_servicehost_t >
 ObjectImpl (impl_t *impl) noexcept
 
 ObjectImpl (ObjectImpl const &src) noexcept
 
ObjectImploperator= (ObjectImpl const &that) noexcept
 
impl_t * c_impl () const noexcept
 
- Public Member Functions inherited from gate::Object
 Object (gate_object_ptr_t obj_ptr) noexcept
 
 Object (Object const &obj) noexcept
 
Objectoperator= (Object const &obj) noexcept
 
String getInterfaceName ()
 
gate_object_ptr_t c_impl () noexcept
 
bool_t operator! () const noexcept
 
bool_t empty () const noexcept
 

Static Public Member Functions

static ServiceHost create ()
 
static void loadConfig (Stream &sourceStream, uint32_t format, Config &targetConfig)
 
static void saveConfig (Config const &sourceConfig, uint32_t format, Stream &targetStream)
 
static MicroFactory getEssentialsFactory ()
 

Additional Inherited Members

- Protected Member Functions inherited from gate::ObjectImpl< gate_servicehost_t >
void swap (object_impl_t &that) noexcept
 
- Protected Member Functions inherited from gate::Object
void swap (Object &that) noexcept
 
- Protected Attributes inherited from gate::ObjectImpl< gate_servicehost_t >
impl_t * impl_ptr
 

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