blob: 641e2e6195c216e272f87357752bfdf655ae1a19 [file] [log] [blame]
/*********************************************************************
* Copyright (c) 2009, 2012 SpringSource, a division of VMware, Inc.
*
* This program and the accompanying materials are made
* available under the terms of the Eclipse Public License 2.0
* which is available at https://www.eclipse.org/legal/epl-2.0/
*
* SPDX-License-Identifier: EPL-2.0
**********************************************************************/
package org.eclipse.virgo.ide.runtime.internal.core.command;
import java.io.IOException;
import java.util.concurrent.TimeoutException;
/**
* Represents a state-full server command to control remote SpringSource dm Server instances.
* <p>
* Each server command should only be executed once.
*
* @author Christian Dupuis
* @since 1.0.1
*/
public interface IServerCommand<T> {
/**
* Execute this server command.
*
* @return returns the generified return value of the command
* @throws IOException
* @throws TimeoutException
*/
T execute() throws IOException, TimeoutException;
}