Search in sources :

Example 1 with RestartDomainCommand

use of com.sun.enterprise.v3.admin.RestartDomainCommand in project Payara by payara.

the class RuntimeRootImpl method restartDomain.

public void restartDomain() {
    final ModulesRegistry registry = InjectedValues.getInstance().getModulesRegistry();
    final AdminCommandContext ctx = new AdminCommandContextImpl(AMXLoggerInfo.getLogger(), new PlainTextActionReporter());
    final AdminCommand cmd = new RestartDomainCommand(registry);
    cmd.execute(ctx);
}
Also used : AdminCommandContextImpl(org.glassfish.api.admin.AdminCommandContextImpl) ModulesRegistry(com.sun.enterprise.module.ModulesRegistry) AdminCommand(org.glassfish.api.admin.AdminCommand) RestartDomainCommand(com.sun.enterprise.v3.admin.RestartDomainCommand) AdminCommandContext(org.glassfish.api.admin.AdminCommandContext) PlainTextActionReporter(com.sun.enterprise.v3.common.PlainTextActionReporter)

Aggregations

ModulesRegistry (com.sun.enterprise.module.ModulesRegistry)1 RestartDomainCommand (com.sun.enterprise.v3.admin.RestartDomainCommand)1 PlainTextActionReporter (com.sun.enterprise.v3.common.PlainTextActionReporter)1 AdminCommand (org.glassfish.api.admin.AdminCommand)1 AdminCommandContext (org.glassfish.api.admin.AdminCommandContext)1 AdminCommandContextImpl (org.glassfish.api.admin.AdminCommandContextImpl)1