RunningServicesMonitor¶
-
class
kanzi::connect::RunningServicesMonitor: public ServiceClientObserver¶ Class that monitors the running services in a server.
Public Types
-
typedef function<void(const string&, bool)>
ServicePresenceChangedCallback¶
-
typedef shared_ptr<void>
ServicePresenceChangedCallbackToken¶
Public Functions
C++ constructor.
- Parameters
client: the client
-
~RunningServicesMonitor()¶ C++ destructor.
-
ServicePresenceChangedCallbackToken
addServicePresenceSubscription(ServicePresenceChangedCallback callback)¶
-
int
countServices() const¶ amount of registered services.
- Return
amount
-
void
removeServicePresenceSubscription(ServicePresenceChangedCallbackToken token)¶
-
const string
serviceAt(int index) const¶ retrieve service at specific index
- Return
service name.
-
bool
serviceIsRegistered(const string name) const¶ Checks whether specific service is registered.
- Return
true if service is available in the server.
- Parameters
name: name of the service. E.g. “Cluster”
-
typedef function<void(const string&, bool)>