public enum MEMORY_POLICY extends Enum<MEMORY_POLICY>
PepperJobs. More specific, it
determines the way of loading and storing SDocumentGraph objects
during the processing. The behavior of the DocumentBus is described
as follows:
THRIFTY - each time, a PepperModule is
setting a SDocument to DOCUMENT_STATUS.COMPLETED and no other
PepperModule is currently working on it, it will be send to
sleep.MODERATE - each time, a PepperModule is
setting a SDocument to DOCUMENT_STATUS.COMPLETED, no other
PepperModule is currently working on it and no other
PepperModule is waiting on it, it will be send to sleep.GREEDY - A SDocumentGraph will never be
send to sleep. In case of the number of maximal processed documents is
limited, and was reached, no further SDocumentGraphs will be imported
until one was finished somehow.| Modifier and Type | Method and Description |
|---|---|
static MEMORY_POLICY |
valueOf(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.
|
public static final MEMORY_POLICY THRIFTY
public static final MEMORY_POLICY MODERATE
public static final MEMORY_POLICY GREEDY
public static MEMORY_POLICY[] values()
for (MEMORY_POLICY c : MEMORY_POLICY.values()) System.out.println(c);
public static MEMORY_POLICY valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullCopyright © 2009–2021 Humboldt-Universität zu Berlin, INRIA. All rights reserved.