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. 
 
  • Method Details

    • build

      protected MonitordGrpc.MonitordStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions)
      Specified by:
      build in class io.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.