lrgs.ldds.LddsCommand Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of opendcs Show documentation
Show all versions of opendcs Show documentation
A collection of software for aggregatting and processing environmental data such as from NOAA GOES satellites.
The newest version!
/*
* $Id$
*/
package lrgs.ldds;
import java.io.IOException;
import lrgs.common.*;
/**
Base class for all server request commands.
*/
public abstract class LddsCommand
{
/**
* @return the command type as a string.
*/
public abstract String cmdType();
/**
Executes the command.
@param ldds the server thread object holding connection to client.
@throws ArchiveException on request processing error.
@throws IOException if error returning response to user (hangup).
*/
public abstract int execute(LddsThread ldds)
throws ArchiveException, IOException;
/**
* @return one of the valid DDS command codes.
*/
public abstract char getCommandCode();
}