org.wildfly.clustering.singleton.server.StartCommand Maven / Gradle / Ivy
/*
* Copyright The WildFly Authors
* SPDX-License-Identifier: Apache-2.0
*/
package org.wildfly.clustering.singleton.server;
import org.wildfly.clustering.server.dispatcher.Command;
import org.wildfly.clustering.server.manager.Service;
/**
* Command to start a singleton service.
* @author Paul Ferraro
*/
public enum StartCommand implements Command {
INSTANCE;
@Override
public Void execute(Service service) {
service.start();
return null;
}
}