|
GATE
C/C++ Framework
|
Generic microservice interfaces. More...
#include "gate/tech/gate_tech_api.h"#include "gate/strings.h"#include "gate/objects.h"#include "gate/properties.h"#include "gate/values.h"Functions | |
| GATE_INTERFACE (gate_microservice) | |
Generic microservice interfaces.
| #define GATE_MICROSERVICE_STATUS_UNKNOWN 0x00 |
service is in unknown state
| #define GATE_MICROSERVICE_STATUS_OFFLINE 0x01 |
service is stopped
| #define GATE_MICROSERVICE_STATUS_ONLINE 0x02 |
service is running
| #define GATE_MICROSERVICE_STATUS_ERROR 0x04 |
service is in error state
| #define GATE_MICROSERVICE_STATUS_SWITCHING 0x08 |
service is currently in status switching mode
| #define GATE_MICROSERVICE_STATUS_STARTING (GATE_MICROSERVICE_STATUS_SWITCHING | GATE_MICROSERVICE_STATUS_ONLINE) |
service is switching from offline to running
| #define GATE_MICROSERVICE_STATUS_STOPPING (GATE_MICROSERVICE_STATUS_SWITCHING | GATE_MICROSERVICE_STATUS_OFFLINE) |
service is switching from running to offline
| #define GATE_MICROSERVICE_STATUS_CONFIGURE 0x10 |
service is reconfigured
| #define GATE_MICROSERVICE_CONDITION_INITIALIZING 0x0001 |
service is initializing, other status values may be wrong
| #define GATE_MICROSERVICE_CONDITION_INIT_ERROR 0x0002 |
initialization has failed, service possible malfunctioning
| #define GATE_MICROSERVICE_CONDITION_PARAM_ERROR 0x0004 |
parameter values are invalid, service possible malfunctioning
| #define GATE_MICROSERCICE_CONDITION_ACCESS_ERROR 0x0008 |
access to a required resource was denied, service possible malfunctioning
| #define GATE_MICROSERVICE_CONDITION_FULL_OPERATIONAL 0x0100 |
service is fully functional
| #define GATE_MICROSERVICE_CONDITION_PARTIAL_OPERATIONAL 0x0200 |
service is partially functional, some features are unavailable
| #define GATE_MICROSERVICE_CONDITION_DISCONNECTED 0x0400 |
service is disconnected from a required resource
| #define GATE_MICROSERVICE_CONDITION_TEMPORARY_DOWN 0x0800 |
service is temporary unavailable but tries to recover
| #define GATE_MICROSERVICE_CONDITION_MALFUNCTION 0x1000 |
service is failing
| GATE_INTERFACE | ( | gate_microservice | ) |
< connects service with a host
< returns service address
< get internal operational status flags
< deliver a communication message
< deliver a communication object
< execute a remote procedure call
< return all supported parameter names
< return the property data type of a parameter
< return a parameter as a property value
< update a parameter with a property value