|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.esa.beam.framework.processor.Request
Graph Processing Framework instead.
@Deprecated public class Request
The request class is a memory image of a single request in a request file. It is used to trigger processors and supply the information neede to perform the processing.
A request can contain the following entities:
| Field Summary | |
|---|---|
static String |
METADATA_ATTRIB_NAME_PREFIX_INPUT_PRODUCT
Deprecated. |
static String |
METADATA_ATTRIB_NAME_PREFIX_OUTPUT_PRODUCT
Deprecated. |
static String |
METADATA_ATTRIB_NAME_VALUE
Deprecated. |
static String |
METADATA_ELEM_NAME_INPUT_PRODUCTS
Deprecated. |
static String |
METADATA_ELEM_NAME_OUTPUT_PRODUCTS
Deprecated. |
static String |
METADATA_ELEM_NAME_PARAMETERS
Deprecated. |
static String |
METADATA_ELEM_NAME_PROCESSING_REQUEST
Deprecated. |
static String |
PREFIX_QUALIFIER
Deprecated. |
| Constructor Summary | |
|---|---|
Request()
Deprecated. Constructs a new and empty request. |
|
Request(ProductRef[] inputProducts,
ProductRef[] outputProducts,
Parameter[] parameters)
Deprecated. Constructs a new request with the given input products, output products and processing parameters. |
|
| Method Summary | |
|---|---|
void |
addInputProduct(ProductRef product)
Deprecated. Adds an input product to the request. |
void |
addLogFileLocation(File logFile)
Deprecated. Adds a logging file location to the curreent request. |
void |
addOutputProduct(ProductRef product)
Deprecated. Adds an output product to the request. |
void |
addParameter(Parameter parameter)
Deprecated. Adds a parameter to the request. |
static void |
addProductAttribs(MetadataElement inputProductsElem,
String s,
ProductRef productRef)
Deprecated. |
static void |
checkRequestType(Request request,
String requestType)
Deprecated. Checks if the given processing request is of the given request type and throws a processor exception if not. |
void |
clearInputProducts()
Deprecated. Removes all input products from the request |
void |
clearLogFileLocations()
Deprecated. Removes all logging file locations set in the request |
MetadataElement |
convertToMetadata()
Deprecated. Converts this request to a metadata element. |
Parameter[] |
getAllParameters()
Deprecated. Retrieves an array of all the parameters of this request. |
File |
getFile()
Deprecated. Retrieves the request file from where this request originates. |
ProductRef |
getInputProductAt(int index)
Deprecated. Retrieves the input product at a given index. |
File |
getLogFileLocationAt(int index)
Deprecated. Retrieves the logging file location at a given index. |
int |
getNumInputProducts()
Deprecated. Returns the number of input products contained in the request. |
int |
getNumLogFileLocations()
Deprecated. Returns the number of logging file locations contained in the request. |
int |
getNumOutputProducts()
Deprecated. Returns the number of output products contained in the request. |
int |
getNumParameters()
Deprecated. Returns the number of parameters contained in the request. |
ProductRef |
getOutputProductAt(int index)
Deprecated. Retrieves the output product at a given index. |
Parameter |
getParameter(String name)
Deprecated. Retrieves a parameter by name. |
Parameter |
getParameterAt(int index)
Deprecated. Retrieves the parameter at a given index. |
String |
getType()
Deprecated. Retrieves the type of request. |
boolean |
isRequestType(String requestType)
Deprecated. Tests whether or not this request is for the given request type. |
void |
removeInputProduct(ProductRef product)
Deprecated. Removes an input product from the request. |
void |
removeLogFileLocation(File logFile)
Deprecated. Removes a logging file location from the request. |
void |
removeOutputProduct(ProductRef product)
Deprecated. Removes an output product from the request. |
void |
removeParameter(Parameter parameter)
Deprecated. Removes a parameter from the request. |
void |
setFile(File requestFile)
Deprecated. Sets the request file where this request originates |
void |
setType(String type)
Deprecated. Sets the type of request. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String METADATA_ELEM_NAME_PROCESSING_REQUEST
public static final String METADATA_ELEM_NAME_INPUT_PRODUCTS
public static final String METADATA_ATTRIB_NAME_PREFIX_INPUT_PRODUCT
public static final String METADATA_ATTRIB_NAME_PREFIX_OUTPUT_PRODUCT
public static final String METADATA_ELEM_NAME_OUTPUT_PRODUCTS
public static final String METADATA_ELEM_NAME_PARAMETERS
public static final String PREFIX_QUALIFIER
public static final String METADATA_ATTRIB_NAME_VALUE
| Constructor Detail |
|---|
public Request()
public Request(ProductRef[] inputProducts,
ProductRef[] outputProducts,
Parameter[] parameters)
inputProducts - array of input productsoutputProducts - array of output productsparameters - array of parameters| Method Detail |
|---|
public void addInputProduct(ProductRef product)
product - the product to be added
IllegalArgumentException - when null is addedpublic void removeInputProduct(ProductRef product)
product - the product to be removedpublic void clearInputProducts()
public int getNumInputProducts()
public ProductRef getInputProductAt(int index)
index - the product index
ArrayIndexOutOfBoundsExceptionpublic void addOutputProduct(ProductRef product)
product - the product to be added
IllegalArgumentException - when null is addedpublic void removeOutputProduct(ProductRef product)
product - the product to be removedpublic int getNumOutputProducts()
public ProductRef getOutputProductAt(int index)
index - the product index
ArrayIndexOutOfBoundsExceptionpublic void addLogFileLocation(File logFile)
logFile - the logging file location.
IllegalArgumentException - on null argumentpublic void removeLogFileLocation(File logFile)
logFile - the logging file location to be removedpublic void clearLogFileLocations()
public int getNumLogFileLocations()
public File getLogFileLocationAt(int index)
index - the logging file location index
ArrayIndexOutOfBoundsExceptionpublic void addParameter(Parameter parameter)
parameter - the parameter to be added
IllegalArgumentException - when adding null parameterpublic void removeParameter(Parameter parameter)
parameter - the parameter to be removedpublic int getNumParameters()
public Parameter getParameterAt(int index)
index - the parameter index
ArrayIndexOutOfBoundsExceptionpublic Parameter getParameter(String name)
name - the parameter name to be found. Must not be null or empty
null if no parameter with the given name is found.public Parameter[] getAllParameters()
public String getType()
public void setType(String type)
type - the request type
IllegalArgumentException - when passing null as argumentpublic File getFile()
public void setFile(File requestFile)
requestFile - the file
public static void checkRequestType(Request request,
String requestType)
throws ProcessorException
request - the request for checking typerequestType - the request type for check
ProcessorException - if the given request to check is null
ProcessorException - on invalid request type
IllegalArgumentException - if the given requestType is null or emptypublic boolean isRequestType(String requestType)
requestType - the request type for check
public MetadataElement convertToMetadata()
null.
public static void addProductAttribs(MetadataElement inputProductsElem,
String s,
ProductRef productRef)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||