Package org.corpus_tools.pepper.common
Enum MEMORY_POLICY
- java.lang.Object
-
- java.lang.Enum<MEMORY_POLICY>
-
- org.corpus_tools.pepper.common.MEMORY_POLICY
-
- All Implemented Interfaces:
Serializable,Comparable<MEMORY_POLICY>
public enum MEMORY_POLICY extends Enum<MEMORY_POLICY>
Describes the main memory policy ofPepperJobs. More specific, it determines the way of loading and storingSDocumentGraphobjects during the processing. The behavior of theDocumentBusis described as follows:THRIFTY- each time, aPepperModuleis setting aSDocumenttoDOCUMENT_STATUS.COMPLETEDand no otherPepperModuleis currently working on it, it will be send to sleep.MODERATE- each time, aPepperModuleis setting aSDocumenttoDOCUMENT_STATUS.COMPLETED, no otherPepperModuleis currently working on it and no otherPepperModuleis waiting on it, it will be send to sleep.GREEDY- ASDocumentGraphwill never be send to sleep. In case of the number of maximal processed documents is limited, and was reached, no furtherSDocumentGraphs will be imported until one was finished somehow.
- Author:
- Florian Zipser
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static MEMORY_POLICYvalueOf(String name)Returns the enum constant of this type with the specified name.static MEMORY_POLICY[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
THRIFTY
public static final MEMORY_POLICY THRIFTY
-
MODERATE
public static final MEMORY_POLICY MODERATE
-
GREEDY
public static final MEMORY_POLICY GREEDY
-
-
Method Detail
-
values
public static MEMORY_POLICY[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (MEMORY_POLICY c : MEMORY_POLICY.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static MEMORY_POLICY valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
-