Enum Class OpenFlags
- All Implemented Interfaces:
Serializable,Comparable<OpenFlags>,Constable
flags for opening the Journal access. These are intended to be used in an EnumSet - multiple of these can be combined.
see https://www.freedesktop.org/software/systemd/man/sd_journal_open.html#
the SD_JOURNAL_ prefix is omitted here, because the enum provides the namespace.
- Version:
- $Id: $Id
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionShow all namespaces, not just the default or specified oneopen journal files of the current user.Show default namespace in addition to specified oneopen only journal files generated on the local machine, no remote ones.journal files are searched for below the usual /var/log/journal and /run/log/journal relative to the specified path, instead of directly beneath it.only volatile journal files will be opened, excluding those which are stored on persistent storage.open journals of system services and the kernel (as opposed to user session processes). -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic intgetCombinedFlagValue(EnumSet<OpenFlags> flagset) bitwise combine flag values to an int.intgetValue()get the numerical value of the flag.static OpenFlagsReturns the enum constant of this class with the specified name.static OpenFlags[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
LOCAL_ONLY
open only journal files generated on the local machine, no remote ones. -
RUNTIME_ONLY
only volatile journal files will be opened, excluding those which are stored on persistent storage. -
SYSTEM
open journals of system services and the kernel (as opposed to user session processes). If neither SD_JOURNAL_SYSTEM nor SD_JOURNAL_CURRENT_USER are specified, all journal file types will be opened. -
CURRENT_USER
open journal files of the current user. If neither SD_JOURNAL_SYSTEM nor SD_JOURNAL_CURRENT_USER are specified, all journal file types will be opened. -
OS_ROOT
journal files are searched for below the usual /var/log/journal and /run/log/journal relative to the specified path, instead of directly beneath it. -
ALL_NAMESPACES
Show all namespaces, not just the default or specified one -
INCLUDE_DEFAULT_NAMESPACE
Show default namespace in addition to specified one
-
-
Field Details
-
value
private final int value
-
-
Constructor Details
-
OpenFlags
private OpenFlags(int value)
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException- if the argument is null
-
getValue
public int getValue()get the numerical value of the flag.- Returns:
- the numerical bit value of the flag.
-
getCombinedFlagValue
bitwise combine flag values to an int.- Parameters:
flagset- the set of flags to combine- Returns:
- integer or-ing the numerical values of the set flag bits.
-