org.jboss.as.console.client.domain.hosts.LoadServerCmd Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of switchyard-console-as7-core
Show all versions of switchyard-console-as7-core
Bundles the core AS7 console as a GWT module. Includes minor customizations to support extensions.
package org.jboss.as.console.client.domain.hosts;
import com.google.gwt.user.client.rpc.AsyncCallback;
import org.jboss.as.console.client.domain.model.HostInformationStore;
import org.jboss.as.console.client.domain.model.ServerInstance;
import org.jboss.as.console.client.shared.dispatch.AsyncCommand;
import java.util.List;
/**
* @author Heiko Braun
* @date 12/9/11
*/
public class LoadServerCmd implements AsyncCommand> {
private HostInformationStore hostInfoStore;
public LoadServerCmd(HostInformationStore hostInfoStore) {
this.hostInfoStore = hostInfoStore;
}
@Override
public void execute(final AsyncCallback> callback) {
throw new IllegalArgumentException("Use the overridden method instead");
}
public void execute(final String hostName, final AsyncCallback> callback) {
hostInfoStore.getServerInstances(hostName, callback);
}
}