Class ProtectiveMode

java.lang.Object
com.gigaspaces.client.protective.ProtectiveMode

public class ProtectiveMode extends Object
Protective mode setup class, holds the current protective mode setup
Since:
9.1
Author:
eitany
  • Field Details

    • PROTECTIVE_MODE

      public static final String PROTECTIVE_MODE
      System property key to enable/disable protective mode entirely, defaults to true,
      See Also:
    • WRONG_ENTRY_ROUTING_USAGE

      public static final String WRONG_ENTRY_ROUTING_USAGE
      System property key to enable/disable wrong routing usage when writing/updating an entry in a co-located space. If an entry is written/updated to/in the co-located space without a routing value or with a routing value which does not match the space, an exception will be thrown. This is done in order to avoid user error that later on when a remote proxy will try to read this object he will not locate it because the routing value is wrong.
      See Also:
    • AMBIGUOUS_QUERY_ROUTING_USAGE

      public static final String AMBIGUOUS_QUERY_ROUTING_USAGE
      See Also:
    • TYPE_WITHOUT_ID

      public static final String TYPE_WITHOUT_ID
      See Also:
    • PRIMITIVE_WITHOUT_NULL_VALUE

      public static final String PRIMITIVE_WITHOUT_NULL_VALUE
      See Also:
    • QUERY_WITHOUT_INDEX

      public static final String QUERY_WITHOUT_INDEX
      See Also:
    • QUERY_WITHOUT_INDEX_LIMIT_VALUE

      public static final String QUERY_WITHOUT_INDEX_LIMIT_VALUE
      See Also:
    • QUERY_WITHOUT_INDEX_ERROR_MESSAGE

      public static final String QUERY_WITHOUT_INDEX_ERROR_MESSAGE
      See Also:
    • QUERY_WITHOUT_INDEX_WARNING_MESSAGE

      public static final String QUERY_WITHOUT_INDEX_WARNING_MESSAGE
      See Also:
    • QUERY_WITHOUT_INDEX_DISABLE_PROTECTION_MESSAGE

      public static final String QUERY_WITHOUT_INDEX_DISABLE_PROTECTION_MESSAGE
      See Also:
    • QUERY_WITHOUT_INDEX_DEFAULT_LIMIT_VALUE

      public static final Integer QUERY_WITHOUT_INDEX_DEFAULT_LIMIT_VALUE
  • Constructor Details

    • ProtectiveMode

      public ProtectiveMode()
  • Method Details

    • isEnabled

      public static boolean isEnabled()
    • isWrongRoutingUsageProtectionEnabled

      public static boolean isWrongRoutingUsageProtectionEnabled()
    • shouldIgnoreWrongRoutingProtectiveMode

      public static boolean shouldIgnoreWrongRoutingProtectiveMode(String typeName)
    • isAmbiguousQueryRoutingUsageProtectionEnabled

      public static boolean isAmbiguousQueryRoutingUsageProtectionEnabled()
    • isTypeWithoutIdProtectionEnabled

      public static boolean isTypeWithoutIdProtectionEnabled()
    • shouldIgnoreTypeWithoutIdProtectiveMode

      public static boolean shouldIgnoreTypeWithoutIdProtectiveMode(String typeName)
    • isPrimitiveWithoutNullValueProtectionEnabled

      public static boolean isPrimitiveWithoutNullValueProtectionEnabled()
    • isQueryWithoutIndexProtectionViolated

      public static boolean isQueryWithoutIndexProtectionViolated(long tableSize, long maxEntries)
    • isQueryWithoutIndexProtectionEnabled

      public static boolean isQueryWithoutIndexProtectionEnabled()