Loading src/automation/.env.example +5 −0 Original line number Diff line number Diff line # Define the host for the Context Service quarkus.kubernetes.env.vars.context-service-host=context # Define the host for the Device Service quarkus.kubernetes.env.vars.device-service-host=device No newline at end of file src/automation/src/main/java/eu/teraflow/automation/context/ContextGatewayImpl.java +2 −1 Original line number Diff line number Diff line Loading @@ -14,7 +14,8 @@ import javax.enterprise.context.ApplicationScoped; @ApplicationScoped public class ContextGatewayImpl implements ContextGateway { @GrpcClient ContextService delegate; @GrpcClient("context") ContextService delegate; @Override public Multi<DeviceEvent> getDeviceEvents() { Loading src/automation/src/main/java/eu/teraflow/automation/device/DeviceGatewayImpl.java +2 −1 Original line number Diff line number Diff line Loading @@ -14,7 +14,8 @@ import javax.enterprise.context.ApplicationScoped; @ApplicationScoped public class DeviceGatewayImpl implements DeviceGateway { @GrpcClient DeviceService deviceDelegate; @GrpcClient("device") DeviceService deviceDelegate; @Override public Uni<eu.teraflow.automation.device.model.DeviceConfig> getInitialConfiguration( Loading src/automation/src/main/resources/application.yaml +10 −1 Original line number Diff line number Diff line automation: should-subscribe-to-context-component: false should-subscribe-to-context-component: true quarkus: grpc: server: port: 9999 enable-reflection-service: true clients: context: host: ${quarkus.kubernetes.env.vars.context-service-host} device: host: ${quarkus.kubernetes.env.vars.device-service-host} http: port: 8080 container-image: Loading @@ -31,3 +36,7 @@ quarkus: grpc-server: host-port: 9999 container-port: 9999 env: vars: context-service-host: context device-service-host: device No newline at end of file src/automation/target/generated-sources/grpc/context/ContextOuterClass.java +36 −0 Original line number Diff line number Diff line Loading @@ -28708,11 +28708,19 @@ public final class ContextOuterClass { context.ContextOuterClass.EndPointIdOrBuilder getEndpointIdOrBuilder(); /** * <pre> *repeated kpi_sample_types.KpiSampleType kpi_sample_types = 3; * </pre> * * <code>string endpoint_type = 2;</code> * @return The endpointType. */ java.lang.String getEndpointType(); /** * <pre> *repeated kpi_sample_types.KpiSampleType kpi_sample_types = 3; * </pre> * * <code>string endpoint_type = 2;</code> * @return The bytes for endpointType. */ Loading Loading @@ -28845,6 +28853,10 @@ public final class ContextOuterClass { public static final int ENDPOINT_TYPE_FIELD_NUMBER = 2; private volatile java.lang.Object endpointType_; /** * <pre> *repeated kpi_sample_types.KpiSampleType kpi_sample_types = 3; * </pre> * * <code>string endpoint_type = 2;</code> * @return The endpointType. */ Loading @@ -28862,6 +28874,10 @@ public final class ContextOuterClass { } } /** * <pre> *repeated kpi_sample_types.KpiSampleType kpi_sample_types = 3; * </pre> * * <code>string endpoint_type = 2;</code> * @return The bytes for endpointType. */ Loading Loading @@ -29333,6 +29349,10 @@ public final class ContextOuterClass { private java.lang.Object endpointType_ = ""; /** * <pre> *repeated kpi_sample_types.KpiSampleType kpi_sample_types = 3; * </pre> * * <code>string endpoint_type = 2;</code> * @return The endpointType. */ Loading @@ -29349,6 +29369,10 @@ public final class ContextOuterClass { } } /** * <pre> *repeated kpi_sample_types.KpiSampleType kpi_sample_types = 3; * </pre> * * <code>string endpoint_type = 2;</code> * @return The bytes for endpointType. */ Loading @@ -29366,6 +29390,10 @@ public final class ContextOuterClass { } } /** * <pre> *repeated kpi_sample_types.KpiSampleType kpi_sample_types = 3; * </pre> * * <code>string endpoint_type = 2;</code> * @param value The endpointType to set. * @return This builder for chaining. Loading @@ -29381,6 +29409,10 @@ public final class ContextOuterClass { return this; } /** * <pre> *repeated kpi_sample_types.KpiSampleType kpi_sample_types = 3; * </pre> * * <code>string endpoint_type = 2;</code> * @return This builder for chaining. */ Loading @@ -29391,6 +29423,10 @@ public final class ContextOuterClass { return this; } /** * <pre> *repeated kpi_sample_types.KpiSampleType kpi_sample_types = 3; * </pre> * * <code>string endpoint_type = 2;</code> * @param value The bytes for endpointType to set. * @return This builder for chaining. Loading
src/automation/.env.example +5 −0 Original line number Diff line number Diff line # Define the host for the Context Service quarkus.kubernetes.env.vars.context-service-host=context # Define the host for the Device Service quarkus.kubernetes.env.vars.device-service-host=device No newline at end of file
src/automation/src/main/java/eu/teraflow/automation/context/ContextGatewayImpl.java +2 −1 Original line number Diff line number Diff line Loading @@ -14,7 +14,8 @@ import javax.enterprise.context.ApplicationScoped; @ApplicationScoped public class ContextGatewayImpl implements ContextGateway { @GrpcClient ContextService delegate; @GrpcClient("context") ContextService delegate; @Override public Multi<DeviceEvent> getDeviceEvents() { Loading
src/automation/src/main/java/eu/teraflow/automation/device/DeviceGatewayImpl.java +2 −1 Original line number Diff line number Diff line Loading @@ -14,7 +14,8 @@ import javax.enterprise.context.ApplicationScoped; @ApplicationScoped public class DeviceGatewayImpl implements DeviceGateway { @GrpcClient DeviceService deviceDelegate; @GrpcClient("device") DeviceService deviceDelegate; @Override public Uni<eu.teraflow.automation.device.model.DeviceConfig> getInitialConfiguration( Loading
src/automation/src/main/resources/application.yaml +10 −1 Original line number Diff line number Diff line automation: should-subscribe-to-context-component: false should-subscribe-to-context-component: true quarkus: grpc: server: port: 9999 enable-reflection-service: true clients: context: host: ${quarkus.kubernetes.env.vars.context-service-host} device: host: ${quarkus.kubernetes.env.vars.device-service-host} http: port: 8080 container-image: Loading @@ -31,3 +36,7 @@ quarkus: grpc-server: host-port: 9999 container-port: 9999 env: vars: context-service-host: context device-service-host: device No newline at end of file
src/automation/target/generated-sources/grpc/context/ContextOuterClass.java +36 −0 Original line number Diff line number Diff line Loading @@ -28708,11 +28708,19 @@ public final class ContextOuterClass { context.ContextOuterClass.EndPointIdOrBuilder getEndpointIdOrBuilder(); /** * <pre> *repeated kpi_sample_types.KpiSampleType kpi_sample_types = 3; * </pre> * * <code>string endpoint_type = 2;</code> * @return The endpointType. */ java.lang.String getEndpointType(); /** * <pre> *repeated kpi_sample_types.KpiSampleType kpi_sample_types = 3; * </pre> * * <code>string endpoint_type = 2;</code> * @return The bytes for endpointType. */ Loading Loading @@ -28845,6 +28853,10 @@ public final class ContextOuterClass { public static final int ENDPOINT_TYPE_FIELD_NUMBER = 2; private volatile java.lang.Object endpointType_; /** * <pre> *repeated kpi_sample_types.KpiSampleType kpi_sample_types = 3; * </pre> * * <code>string endpoint_type = 2;</code> * @return The endpointType. */ Loading @@ -28862,6 +28874,10 @@ public final class ContextOuterClass { } } /** * <pre> *repeated kpi_sample_types.KpiSampleType kpi_sample_types = 3; * </pre> * * <code>string endpoint_type = 2;</code> * @return The bytes for endpointType. */ Loading Loading @@ -29333,6 +29349,10 @@ public final class ContextOuterClass { private java.lang.Object endpointType_ = ""; /** * <pre> *repeated kpi_sample_types.KpiSampleType kpi_sample_types = 3; * </pre> * * <code>string endpoint_type = 2;</code> * @return The endpointType. */ Loading @@ -29349,6 +29369,10 @@ public final class ContextOuterClass { } } /** * <pre> *repeated kpi_sample_types.KpiSampleType kpi_sample_types = 3; * </pre> * * <code>string endpoint_type = 2;</code> * @return The bytes for endpointType. */ Loading @@ -29366,6 +29390,10 @@ public final class ContextOuterClass { } } /** * <pre> *repeated kpi_sample_types.KpiSampleType kpi_sample_types = 3; * </pre> * * <code>string endpoint_type = 2;</code> * @param value The endpointType to set. * @return This builder for chaining. Loading @@ -29381,6 +29409,10 @@ public final class ContextOuterClass { return this; } /** * <pre> *repeated kpi_sample_types.KpiSampleType kpi_sample_types = 3; * </pre> * * <code>string endpoint_type = 2;</code> * @return This builder for chaining. */ Loading @@ -29391,6 +29423,10 @@ public final class ContextOuterClass { return this; } /** * <pre> *repeated kpi_sample_types.KpiSampleType kpi_sample_types = 3; * </pre> * * <code>string endpoint_type = 2;</code> * @param value The bytes for endpointType to set. * @return This builder for chaining.