public class WindowsSession
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static boolean |
logoff(boolean isNotify)
Logs off the current user.
|
static boolean |
powerOff(boolean isNotify)
Shuts the system down and power off.
|
static boolean |
reboot(boolean isNotify)
Shuts the system down and restarts the system.
|
static boolean |
shutdown(boolean isNotify)
Shuts the system down.
|
public static boolean logoff(boolean isNotify)
isNotify
- if true then notify other application about shutdown else don't notifypublic static boolean shutdown(boolean isNotify)
isNotify
- if true then notify other application about shutdown else don't notifypublic static boolean powerOff(boolean isNotify)
isNotify
- if true then notify other application about shutdown else don't notifypublic static boolean reboot(boolean isNotify)
isNotify
- if true then notify other application about shutdown else don't notify