Search in sources :

Example 1 with PoweroffJob

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"));
}
Also used : PoweroffJob(jobs.PoweroffJob) Restrictions(controllers.deadbolt.Restrictions)

Aggregations

Restrictions (controllers.deadbolt.Restrictions)1 PoweroffJob (jobs.PoweroffJob)1