Enum Param.ExecutionMode

    • Enum Constant Detail

      • ALL

        public static final Param.ExecutionMode ALL
        Command is executed on its owners, in transactional mode in the context, too, but there it is not persisted. The result of the command is backed up to all sites configured for backup. Note: under some circumstances it may be necessary to transfer full value instead of executing the command on some owners; the application must not rely on any side effects of command execution.
      • LOCAL

        public static final Param.ExecutionMode LOCAL
        Command is executed only locally, it is not sent to remote nodes. If the command is a write and this node is not an owner of given entry, the entry is not stored in the cache; if the node is an owner the entry is stored (even without contacting the primary owner, if this is a backup). If the command reads a value and the entry is not available locally, null entry is provided instead.
      • LOCAL_SITE

        public static final Param.ExecutionMode LOCAL_SITE
        Command is executed only in the current site (same as ALL, but it is not sent for backup to other sites)
    • Method Detail

      • values

        public static Param.ExecutionMode[] 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 (Param.ExecutionMode c : Param.ExecutionMode.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static Param.ExecutionMode 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 name
        NullPointerException - if the argument is null
      • id

        public int id()
        Description copied from interface: Param
        A parameter's identifier. Each parameter must have a different id.

        A numeric id makes it flexible enough to be stored in collections that take up low resources, such as arrays.

        Specified by:
        id in interface Param<Param.ExecutionMode>
      • valueOf

        public static Param.ExecutionMode valueOf​(int ordinal)
        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:
        ordinal - 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 name
        NullPointerException - if the argument is null