use of jobs.PoweroffJob in project coprhd-controller by CoprHD.
the class AdminDashboard method clusterPoweroff.
@Restrictions({ @Restrict("SYSTEM_ADMIN"), @Restrict("SECURITY_ADMIN"), @Restrict("RESTRICTED_SECURITY_ADMIN") })
public static void clusterPoweroff() {
new PoweroffJob(getSysClient()).in(3);
flash.success(MessagesUtils.get("adminDashboard.clusterPoweroff.description"));
flash("isShuttingDown", true);
Maintenance.maintenance(Common.reverseRoute(AdminDashboard.class, "dashboard"));
}
Aggregations