All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.jboss.as.console.client.domain.hosts.LoadServerCmd Maven / Gradle / Ivy

Go to download

Bundles the core AS7 console as a GWT module. Includes minor customizations to support extensions.

There is a newer version: 0.7.0.Final
Show newest version
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);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy