Interface GnoiClient

  • All Superinterfaces:
    org.onosproject.grpc.api.GrpcClient

    @Beta
    public interface GnoiClient
    extends org.onosproject.grpc.api.GrpcClient
    Client to control a gNOI server.
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      java.util.concurrent.CompletableFuture<gnoi.system.SystemOuterClass.RebootResponse> reboot​(gnoi.system.SystemOuterClass.RebootRequest request)
      Causes the target to reboot immediately.
      java.util.concurrent.CompletableFuture<gnoi.system.SystemOuterClass.TimeResponse> time()
      Returns the current time on the target.
      • Methods inherited from interface org.onosproject.grpc.api.GrpcClient

        isServerReachable, probeService, shutdown
    • Method Detail

      • time

        java.util.concurrent.CompletableFuture<gnoi.system.SystemOuterClass.TimeResponse> time()
        Returns the current time on the target.
        Returns:
        the TimeResponse result
      • reboot

        java.util.concurrent.CompletableFuture<gnoi.system.SystemOuterClass.RebootResponse> reboot​(gnoi.system.SystemOuterClass.RebootRequest request)
        Causes the target to reboot immediately.
        Parameters:
        request - RebootRequest
        Returns:
        the RebootResponse result