Class MonitordGrpc.MonitordFutureStub
java.lang.Object
io.grpc.stub.AbstractStub<S>
io.grpc.stub.AbstractFutureStub<MonitordGrpc.MonitordFutureStub>
de.serosystems.proto.v3.grx.monitord.MonitordGrpc.MonitordFutureStub
- Enclosing class:
- MonitordGrpc
public static final class MonitordGrpc.MonitordFutureStub
extends io.grpc.stub.AbstractFutureStub<MonitordGrpc.MonitordFutureStub>
A stub to allow clients to do ListenableFuture-style 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.MonitordFutureStub
build
(io.grpc.Channel channel, io.grpc.CallOptions callOptions) com.google.common.util.concurrent.ListenableFuture<com.google.protobuf.Empty>
clearResetReasons
(com.google.protobuf.Empty request) Clear all reset resons (see SystemInformation message).com.google.common.util.concurrent.ListenableFuture<MonitorDProto.CPUUsage>
getCPUUsage
(com.google.protobuf.Empty request) Get current CPU usage.com.google.common.util.concurrent.ListenableFuture<MonitorDProto.GetCPUUsageHistoryReply>
getCPUUsageHistory
(com.google.protobuf.Empty request) Get history of CPU usage.com.google.common.util.concurrent.ListenableFuture<MonitorDProto.GetFullSystemStatusReply>
getFullSystemStatus
(com.google.protobuf.Empty request) Get full system status (single call for 7 most used calls).com.google.common.util.concurrent.ListenableFuture<MonitorDProto.GNSSInformation>
getGNSSInformation
(com.google.protobuf.Empty request) Get information related to the Global Navigation Satellite System (GNSS).com.google.common.util.concurrent.ListenableFuture<MonitorDProto.GetLogMessagesReply>
Get log messages (without streaming/waiting for new ones).com.google.common.util.concurrent.ListenableFuture<MonitorDProto.MemoryUsage>
getMemoryUsage
(com.google.protobuf.Empty request) Get current memory usage.com.google.common.util.concurrent.ListenableFuture<MonitorDProto.GetMemoryUsageHistoryReply>
getMemoryUsageHistory
(com.google.protobuf.Empty request) Get history of memory usage.com.google.common.util.concurrent.ListenableFuture<MonitorDProto.GetMountedFilesystemUsageReply>
getMountedFilesystemUsage
(com.google.protobuf.Empty request) Get current file system usage.com.google.common.util.concurrent.ListenableFuture<MonitorDProto.GetNetworkCountersReply>
getNetworkCounters
(com.google.protobuf.Empty request) Get counters (in contrast to the rates) of the network usage.com.google.common.util.concurrent.ListenableFuture<MonitorDProto.GetNetworkUsageReply>
getNetworkUsage
(com.google.protobuf.Empty request) Get current network usage.com.google.common.util.concurrent.ListenableFuture<MonitorDProto.GetNetworkUsageHistoryReply>
getNetworkUsageHistory
(com.google.protobuf.Empty request) Get history of network usage.com.google.common.util.concurrent.ListenableFuture<MonitorDProto.GetProcessListReply>
getProcessList
(com.google.protobuf.Empty request) Get a list of processes.com.google.common.util.concurrent.ListenableFuture<MonitorDProto.SwapUsage>
getSwapUsage
(com.google.protobuf.Empty request) Get current swap usage.com.google.common.util.concurrent.ListenableFuture<MonitorDProto.GetSwapUsageHistoryReply>
getSwapUsageHistory
(com.google.protobuf.Empty request) Get history of swap usage.com.google.common.util.concurrent.ListenableFuture<MonitorDProto.SystemHealth>
getSystemHealth
(com.google.protobuf.Empty request) Get current system health.com.google.common.util.concurrent.ListenableFuture<MonitorDProto.GetSystemHealthHistoryReply>
getSystemHealthHistory
(com.google.protobuf.Empty request) Get history of system health.com.google.common.util.concurrent.ListenableFuture<MonitorDProto.SystemInformation>
getSystemInformation
(com.google.protobuf.Empty request) Get (lower level) information about the system, like e.g.com.google.common.util.concurrent.ListenableFuture<MonitorDProto.SystemLoad>
getSystemLoad
(com.google.protobuf.Empty request) Get current system load.com.google.common.util.concurrent.ListenableFuture<MonitorDProto.GetSystemLoadHistoryReply>
getSystemLoadHistory
(com.google.protobuf.Empty request) Get history of system load.com.google.common.util.concurrent.ListenableFuture<MonitorDProto.GetSystemPackagesReply>
getSystemPackages
(com.google.protobuf.Empty request) Get a list of (installed) system packages.com.google.common.util.concurrent.ListenableFuture<MonitorDProto.GetUnitListReply>
getUnitList
(com.google.protobuf.Empty request) Get a list (with states) of systemd units.Methods inherited from class io.grpc.stub.AbstractFutureStub
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
protected MonitordGrpc.MonitordFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) - Specified by:
build
in classio.grpc.stub.AbstractStub<MonitordGrpc.MonitordFutureStub>
-
getCPUUsage
public com.google.common.util.concurrent.ListenableFuture<MonitorDProto.CPUUsage> getCPUUsage(com.google.protobuf.Empty request) Get current CPU usage.
-
getCPUUsageHistory
public com.google.common.util.concurrent.ListenableFuture<MonitorDProto.GetCPUUsageHistoryReply> getCPUUsageHistory(com.google.protobuf.Empty request) Get history of CPU usage.
-
getMemoryUsage
public com.google.common.util.concurrent.ListenableFuture<MonitorDProto.MemoryUsage> getMemoryUsage(com.google.protobuf.Empty request) Get current memory usage.
-
getMemoryUsageHistory
public com.google.common.util.concurrent.ListenableFuture<MonitorDProto.GetMemoryUsageHistoryReply> getMemoryUsageHistory(com.google.protobuf.Empty request) Get history of memory usage.
-
getSwapUsage
public com.google.common.util.concurrent.ListenableFuture<MonitorDProto.SwapUsage> getSwapUsage(com.google.protobuf.Empty request) Get current swap usage.
-
getSwapUsageHistory
public com.google.common.util.concurrent.ListenableFuture<MonitorDProto.GetSwapUsageHistoryReply> getSwapUsageHistory(com.google.protobuf.Empty request) Get history of swap usage.
-
getMountedFilesystemUsage
public com.google.common.util.concurrent.ListenableFuture<MonitorDProto.GetMountedFilesystemUsageReply> getMountedFilesystemUsage(com.google.protobuf.Empty request) Get current file system usage.
-
getProcessList
public com.google.common.util.concurrent.ListenableFuture<MonitorDProto.GetProcessListReply> getProcessList(com.google.protobuf.Empty request) Get a list of processes.
-
getSystemPackages
public com.google.common.util.concurrent.ListenableFuture<MonitorDProto.GetSystemPackagesReply> getSystemPackages(com.google.protobuf.Empty request) Get a list of (installed) system packages.
-
getLogMessages
public com.google.common.util.concurrent.ListenableFuture<MonitorDProto.GetLogMessagesReply> getLogMessages(MonitorDProto.GetLogMessagesRequest request) Get log messages (without streaming/waiting for new ones).
-
getUnitList
public com.google.common.util.concurrent.ListenableFuture<MonitorDProto.GetUnitListReply> getUnitList(com.google.protobuf.Empty request) Get a list (with states) of systemd units.
-
getNetworkUsage
public com.google.common.util.concurrent.ListenableFuture<MonitorDProto.GetNetworkUsageReply> getNetworkUsage(com.google.protobuf.Empty request) Get current network usage.
-
getNetworkUsageHistory
public com.google.common.util.concurrent.ListenableFuture<MonitorDProto.GetNetworkUsageHistoryReply> getNetworkUsageHistory(com.google.protobuf.Empty request) Get history of network usage.
-
getNetworkCounters
public com.google.common.util.concurrent.ListenableFuture<MonitorDProto.GetNetworkCountersReply> getNetworkCounters(com.google.protobuf.Empty request) Get counters (in contrast to the rates) of the network usage.
-
getSystemHealth
public com.google.common.util.concurrent.ListenableFuture<MonitorDProto.SystemHealth> getSystemHealth(com.google.protobuf.Empty request) Get current system health.
-
getSystemHealthHistory
public com.google.common.util.concurrent.ListenableFuture<MonitorDProto.GetSystemHealthHistoryReply> getSystemHealthHistory(com.google.protobuf.Empty request) Get history of system health.
-
getSystemLoad
public com.google.common.util.concurrent.ListenableFuture<MonitorDProto.SystemLoad> getSystemLoad(com.google.protobuf.Empty request) Get current system load.
-
getSystemLoadHistory
public com.google.common.util.concurrent.ListenableFuture<MonitorDProto.GetSystemLoadHistoryReply> getSystemLoadHistory(com.google.protobuf.Empty request) Get history of system load.
-
getSystemInformation
public com.google.common.util.concurrent.ListenableFuture<MonitorDProto.SystemInformation> getSystemInformation(com.google.protobuf.Empty request) Get (lower level) information about the system, like e.g. uptime, reset reasons or low-level version information.
-
clearResetReasons
public com.google.common.util.concurrent.ListenableFuture<com.google.protobuf.Empty> clearResetReasons(com.google.protobuf.Empty request) 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 com.google.common.util.concurrent.ListenableFuture<MonitorDProto.GNSSInformation> getGNSSInformation(com.google.protobuf.Empty request) 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 com.google.common.util.concurrent.ListenableFuture<MonitorDProto.GetFullSystemStatusReply> getFullSystemStatus(com.google.protobuf.Empty request) 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.
-