Class MonitordGrpc.MonitordStub
java.lang.Object
io.grpc.stub.AbstractStub<S>
io.grpc.stub.AbstractAsyncStub<MonitordGrpc.MonitordStub>
de.serosystems.proto.v3.grx.monitord.MonitordGrpc.MonitordStub
- Enclosing class:
- MonitordGrpc
public static final class MonitordGrpc.MonitordStub
extends io.grpc.stub.AbstractAsyncStub<MonitordGrpc.MonitordStub>
A stub to allow clients to do asynchronous rpc calls to service Monitord.
Monitor daemon service definition. Port 5305.
-
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 TypeMethodDescriptionprotected MonitordGrpc.MonitordStub
build
(io.grpc.Channel channel, io.grpc.CallOptions callOptions) void
clearResetReasons
(com.google.protobuf.Empty request, io.grpc.stub.StreamObserver<com.google.protobuf.Empty> responseObserver) Clear all reset resons (see SystemInformation message).void
getCPUUsage
(com.google.protobuf.Empty request, io.grpc.stub.StreamObserver<MonitorDProto.CPUUsage> responseObserver) Get current CPU usage.void
getCPUUsageHistory
(com.google.protobuf.Empty request, io.grpc.stub.StreamObserver<MonitorDProto.GetCPUUsageHistoryReply> responseObserver) Get history of CPU usage.void
getFullSystemStatus
(com.google.protobuf.Empty request, io.grpc.stub.StreamObserver<MonitorDProto.GetFullSystemStatusReply> responseObserver) Get full system status (single call for 7 most used calls).void
getGNSSInformation
(com.google.protobuf.Empty request, io.grpc.stub.StreamObserver<MonitorDProto.GNSSInformation> responseObserver) Get information related to the Global Navigation Satellite System (GNSS).void
getLogMessages
(MonitorDProto.GetLogMessagesRequest request, io.grpc.stub.StreamObserver<MonitorDProto.GetLogMessagesReply> responseObserver) Get log messages (without streaming/waiting for new ones).void
getMemoryUsage
(com.google.protobuf.Empty request, io.grpc.stub.StreamObserver<MonitorDProto.MemoryUsage> responseObserver) Get current memory usage.void
getMemoryUsageHistory
(com.google.protobuf.Empty request, io.grpc.stub.StreamObserver<MonitorDProto.GetMemoryUsageHistoryReply> responseObserver) Get history of memory usage.void
getMountedFilesystemUsage
(com.google.protobuf.Empty request, io.grpc.stub.StreamObserver<MonitorDProto.GetMountedFilesystemUsageReply> responseObserver) Get current file system usage.void
getNetworkCounters
(com.google.protobuf.Empty request, io.grpc.stub.StreamObserver<MonitorDProto.GetNetworkCountersReply> responseObserver) Get counters (in contrast to the rates) of the network usage.void
getNetworkUsage
(com.google.protobuf.Empty request, io.grpc.stub.StreamObserver<MonitorDProto.GetNetworkUsageReply> responseObserver) Get current network usage.void
getNetworkUsageHistory
(com.google.protobuf.Empty request, io.grpc.stub.StreamObserver<MonitorDProto.GetNetworkUsageHistoryReply> responseObserver) Get history of network usage.void
getProcessList
(com.google.protobuf.Empty request, io.grpc.stub.StreamObserver<MonitorDProto.GetProcessListReply> responseObserver) Get a list of processes.void
getSwapUsage
(com.google.protobuf.Empty request, io.grpc.stub.StreamObserver<MonitorDProto.SwapUsage> responseObserver) Get current swap usage.void
getSwapUsageHistory
(com.google.protobuf.Empty request, io.grpc.stub.StreamObserver<MonitorDProto.GetSwapUsageHistoryReply> responseObserver) Get history of swap usage.void
getSystemHealth
(com.google.protobuf.Empty request, io.grpc.stub.StreamObserver<MonitorDProto.SystemHealth> responseObserver) Get current system health.void
getSystemHealthHistory
(com.google.protobuf.Empty request, io.grpc.stub.StreamObserver<MonitorDProto.GetSystemHealthHistoryReply> responseObserver) Get history of system health.void
getSystemInformation
(com.google.protobuf.Empty request, io.grpc.stub.StreamObserver<MonitorDProto.SystemInformation> responseObserver) Get (lower level) information about the system, like e.g.void
getSystemLoad
(com.google.protobuf.Empty request, io.grpc.stub.StreamObserver<MonitorDProto.SystemLoad> responseObserver) Get current system load.void
getSystemLoadHistory
(com.google.protobuf.Empty request, io.grpc.stub.StreamObserver<MonitorDProto.GetSystemLoadHistoryReply> responseObserver) Get history of system load.void
getSystemPackages
(com.google.protobuf.Empty request, io.grpc.stub.StreamObserver<MonitorDProto.GetSystemPackagesReply> responseObserver) Get a list of (installed) system packages.void
getUnitList
(com.google.protobuf.Empty request, io.grpc.stub.StreamObserver<MonitorDProto.GetUnitListReply> responseObserver) Get a list (with states) of systemd units.Methods inherited from class io.grpc.stub.AbstractAsyncStub
newStub, newStub
Methods inherited from class io.grpc.stub.AbstractStub
getCallOptions, getChannel, withCallCredentials, withChannel, withCompression, withDeadline, withDeadlineAfter, withExecutor, withInterceptors, withMaxInboundMessageSize, withMaxOutboundMessageSize, withOption, withWaitForReady
-
Method Details
-
build
- Specified by:
build
in classio.grpc.stub.AbstractStub<MonitordGrpc.MonitordStub>
-
getCPUUsage
public void getCPUUsage(com.google.protobuf.Empty request, io.grpc.stub.StreamObserver<MonitorDProto.CPUUsage> responseObserver) Get current CPU usage.
-
getCPUUsageHistory
public void getCPUUsageHistory(com.google.protobuf.Empty request, io.grpc.stub.StreamObserver<MonitorDProto.GetCPUUsageHistoryReply> responseObserver) Get history of CPU usage.
-
getMemoryUsage
public void getMemoryUsage(com.google.protobuf.Empty request, io.grpc.stub.StreamObserver<MonitorDProto.MemoryUsage> responseObserver) Get current memory usage.
-
getMemoryUsageHistory
public void getMemoryUsageHistory(com.google.protobuf.Empty request, io.grpc.stub.StreamObserver<MonitorDProto.GetMemoryUsageHistoryReply> responseObserver) Get history of memory usage.
-
getSwapUsage
public void getSwapUsage(com.google.protobuf.Empty request, io.grpc.stub.StreamObserver<MonitorDProto.SwapUsage> responseObserver) Get current swap usage.
-
getSwapUsageHistory
public void getSwapUsageHistory(com.google.protobuf.Empty request, io.grpc.stub.StreamObserver<MonitorDProto.GetSwapUsageHistoryReply> responseObserver) Get history of swap usage.
-
getMountedFilesystemUsage
public void getMountedFilesystemUsage(com.google.protobuf.Empty request, io.grpc.stub.StreamObserver<MonitorDProto.GetMountedFilesystemUsageReply> responseObserver) Get current file system usage.
-
getProcessList
public void getProcessList(com.google.protobuf.Empty request, io.grpc.stub.StreamObserver<MonitorDProto.GetProcessListReply> responseObserver) Get a list of processes.
-
getSystemPackages
public void getSystemPackages(com.google.protobuf.Empty request, io.grpc.stub.StreamObserver<MonitorDProto.GetSystemPackagesReply> responseObserver) Get a list of (installed) system packages.
-
getLogMessages
public void getLogMessages(MonitorDProto.GetLogMessagesRequest request, io.grpc.stub.StreamObserver<MonitorDProto.GetLogMessagesReply> responseObserver) Get log messages (without streaming/waiting for new ones).
-
getUnitList
public void getUnitList(com.google.protobuf.Empty request, io.grpc.stub.StreamObserver<MonitorDProto.GetUnitListReply> responseObserver) Get a list (with states) of systemd units.
-
getNetworkUsage
public void getNetworkUsage(com.google.protobuf.Empty request, io.grpc.stub.StreamObserver<MonitorDProto.GetNetworkUsageReply> responseObserver) Get current network usage.
-
getNetworkUsageHistory
public void getNetworkUsageHistory(com.google.protobuf.Empty request, io.grpc.stub.StreamObserver<MonitorDProto.GetNetworkUsageHistoryReply> responseObserver) Get history of network usage.
-
getNetworkCounters
public void getNetworkCounters(com.google.protobuf.Empty request, io.grpc.stub.StreamObserver<MonitorDProto.GetNetworkCountersReply> responseObserver) Get counters (in contrast to the rates) of the network usage.
-
getSystemHealth
public void getSystemHealth(com.google.protobuf.Empty request, io.grpc.stub.StreamObserver<MonitorDProto.SystemHealth> responseObserver) Get current system health.
-
getSystemHealthHistory
public void getSystemHealthHistory(com.google.protobuf.Empty request, io.grpc.stub.StreamObserver<MonitorDProto.GetSystemHealthHistoryReply> responseObserver) Get history of system health.
-
getSystemLoad
public void getSystemLoad(com.google.protobuf.Empty request, io.grpc.stub.StreamObserver<MonitorDProto.SystemLoad> responseObserver) Get current system load.
-
getSystemLoadHistory
public void getSystemLoadHistory(com.google.protobuf.Empty request, io.grpc.stub.StreamObserver<MonitorDProto.GetSystemLoadHistoryReply> responseObserver) Get history of system load.
-
getSystemInformation
public void getSystemInformation(com.google.protobuf.Empty request, io.grpc.stub.StreamObserver<MonitorDProto.SystemInformation> responseObserver) Get (lower level) information about the system, like e.g. uptime, reset reasons or low-level version information.
-
clearResetReasons
public void clearResetReasons(com.google.protobuf.Empty request, io.grpc.stub.StreamObserver<com.google.protobuf.Empty> responseObserver) Clear all reset resons (see SystemInformation message). This can be used to "acknowledge" certain events, such as a watchdog reset (or also a simple "power on reset").
-
getGNSSInformation
public void getGNSSInformation(com.google.protobuf.Empty request, io.grpc.stub.StreamObserver<MonitorDProto.GNSSInformation> responseObserver) Get information related to the Global Navigation Satellite System (GNSS). Note: if the information is not available or outdated, the gRPC call will fail with status code ABORTED.
-
getFullSystemStatus
public void getFullSystemStatus(com.google.protobuf.Empty request, io.grpc.stub.StreamObserver<MonitorDProto.GetFullSystemStatusReply> responseObserver) Get full system status (single call for 7 most used calls). Note: submessages may be omitted if the "sub calls" fail, e.g. if GNSS information are invalid, the `gnss_information` submessage will not be included.
-