Package org.onosproject.gnoi.api
Interface GnoiClient
-
- All Superinterfaces:
org.onosproject.grpc.api.GrpcClient
@Beta public interface GnoiClient extends org.onosproject.grpc.api.GrpcClientClient 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.
-
-
-
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
-
-