Package mxaccess_gateway.v1
Class MxAccessGatewayGrpc.MxAccessGatewayStub
java.lang.Object
io.grpc.stub.AbstractStub<S>
io.grpc.stub.AbstractAsyncStub<MxAccessGatewayGrpc.MxAccessGatewayStub>
mxaccess_gateway.v1.MxAccessGatewayGrpc.MxAccessGatewayStub
- Enclosing class:
- MxAccessGatewayGrpc
public static final class MxAccessGatewayGrpc.MxAccessGatewayStub
extends io.grpc.stub.AbstractAsyncStub<MxAccessGatewayGrpc.MxAccessGatewayStub>
A stub to allow clients to do asynchronous rpc calls to service MxAccessGateway.
Public client API for MXAccess sessions hosted by the gateway.
-
Nested Class Summary
Nested classes/interfaces inherited from class io.grpc.stub.AbstractStub
io.grpc.stub.AbstractStub.StubFactory<T extends io.grpc.stub.AbstractStub<T>> -
Method Summary
Modifier and TypeMethodDescriptionvoidacknowledgeAlarm(MxaccessGateway.AcknowledgeAlarmRequest request, io.grpc.stub.StreamObserver<MxaccessGateway.AcknowledgeAlarmReply> responseObserver) protected MxAccessGatewayGrpc.MxAccessGatewayStubbuild(io.grpc.Channel channel, io.grpc.CallOptions callOptions) voidcloseSession(MxaccessGateway.CloseSessionRequest request, io.grpc.stub.StreamObserver<MxaccessGateway.CloseSessionReply> responseObserver) voidinvoke(MxaccessGateway.MxCommandRequest request, io.grpc.stub.StreamObserver<MxaccessGateway.MxCommandReply> responseObserver) voidopenSession(MxaccessGateway.OpenSessionRequest request, io.grpc.stub.StreamObserver<MxaccessGateway.OpenSessionReply> responseObserver) voidqueryActiveAlarms(MxaccessGateway.QueryActiveAlarmsRequest request, io.grpc.stub.StreamObserver<MxaccessGateway.ActiveAlarmSnapshot> responseObserver) Point-in-time snapshot of the currently-active alarm set served from the gateway's always-on alarm monitor cache (session-less).voidstreamAlarms(MxaccessGateway.StreamAlarmsRequest request, io.grpc.stub.StreamObserver<MxaccessGateway.AlarmFeedMessage> responseObserver) Session-less central alarm feed.voidstreamEvents(MxaccessGateway.StreamEventsRequest request, io.grpc.stub.StreamObserver<MxaccessGateway.MxEvent> responseObserver) Methods inherited from class io.grpc.stub.AbstractAsyncStub
newStub, newStubMethods inherited from class io.grpc.stub.AbstractStub
getCallOptions, getChannel, withCallCredentials, withChannel, withCompression, withDeadline, withDeadlineAfter, withDeadlineAfter, withExecutor, withInterceptors, withMaxInboundMessageSize, withMaxOutboundMessageSize, withOnReadyThreshold, withOption, withWaitForReady
-
Method Details
-
build
protected MxAccessGatewayGrpc.MxAccessGatewayStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) - Specified by:
buildin classio.grpc.stub.AbstractStub<MxAccessGatewayGrpc.MxAccessGatewayStub>
-
openSession
public void openSession(MxaccessGateway.OpenSessionRequest request, io.grpc.stub.StreamObserver<MxaccessGateway.OpenSessionReply> responseObserver) -
closeSession
public void closeSession(MxaccessGateway.CloseSessionRequest request, io.grpc.stub.StreamObserver<MxaccessGateway.CloseSessionReply> responseObserver) -
invoke
public void invoke(MxaccessGateway.MxCommandRequest request, io.grpc.stub.StreamObserver<MxaccessGateway.MxCommandReply> responseObserver) -
streamEvents
public void streamEvents(MxaccessGateway.StreamEventsRequest request, io.grpc.stub.StreamObserver<MxaccessGateway.MxEvent> responseObserver) -
acknowledgeAlarm
public void acknowledgeAlarm(MxaccessGateway.AcknowledgeAlarmRequest request, io.grpc.stub.StreamObserver<MxaccessGateway.AcknowledgeAlarmReply> responseObserver) -
streamAlarms
public void streamAlarms(MxaccessGateway.StreamAlarmsRequest request, io.grpc.stub.StreamObserver<MxaccessGateway.AlarmFeedMessage> responseObserver) Session-less central alarm feed. The stream opens with the current active-alarm snapshot (one `active_alarm` per alarm), then a single `snapshot_complete`, then a `transition` for every subsequent change. Served by the gateway's always-on alarm monitor; any number of clients fan out from the single monitor without opening a worker session.
-
queryActiveAlarms
public void queryActiveAlarms(MxaccessGateway.QueryActiveAlarmsRequest request, io.grpc.stub.StreamObserver<MxaccessGateway.ActiveAlarmSnapshot> responseObserver) Point-in-time snapshot of the currently-active alarm set served from the gateway's always-on alarm monitor cache (session-less). Used after a reconnect to seed Part 9 client state, or to reconcile alarms that may have been missed during a transport blip. Streamed so callers can begin processing without buffering the full set. `QueryActiveAlarmsRequest.alarm_filter_prefix` optionally narrows the snapshot to alarms whose `alarm_full_reference` starts with the given prefix; an empty prefix returns the full set.
-