Package org.onosproject.net.behaviour
Interface BasicSystemOperations
-
- All Superinterfaces:
Behaviour
,HandlerBehaviour
public interface BasicSystemOperations extends HandlerBehaviour
Handler behaviour capable of device reboot execution and getting system time since UNIX epoch.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description CompletableFuture<Boolean>
reboot()
Causes the target to reboot immediately.CompletableFuture<Long>
time()
Returns the current time on the target.-
Methods inherited from interface org.onosproject.net.driver.HandlerBehaviour
handler, setHandler
-
-
-
-
Method Detail
-
reboot
CompletableFuture<Boolean> reboot()
Causes the target to reboot immediately.- Returns:
- true if the operation was successful, false otherwise
-
time
CompletableFuture<Long> time()
Returns the current time on the target.- Returns:
- Current time in nanoseconds since UNIX epoch.
-
-