Package com.gigaspaces.client.protective
Class ProtectiveMode
java.lang.Object
com.gigaspaces.client.protective.ProtectiveMode
Protective mode setup class, holds the current protective mode setup
- Since:
- 9.1
- Author:
- eitany
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringstatic final StringSystem property key to enable/disable protective mode entirely, defaults to true,static final Stringstatic final Integerstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final StringSystem property key to enable/disable wrong routing usage when writing/updating an entry in a co-located space. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic booleanstatic booleanstatic booleanstatic booleanstatic booleanisQueryWithoutIndexProtectionViolated(long tableSize, long maxEntries) static booleanstatic booleanstatic booleanstatic booleanshouldIgnoreWrongRoutingProtectiveMode(String typeName)
-
Field Details
-
PROTECTIVE_MODE
System property key to enable/disable protective mode entirely, defaults to true,- See Also:
-
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
- See Also:
-
TYPE_WITHOUT_ID
- See Also:
-
PRIMITIVE_WITHOUT_NULL_VALUE
- See Also:
-
QUERY_WITHOUT_INDEX
- See Also:
-
QUERY_WITHOUT_INDEX_LIMIT_VALUE
- See Also:
-
QUERY_WITHOUT_INDEX_ERROR_MESSAGE
- See Also:
-
QUERY_WITHOUT_INDEX_WARNING_MESSAGE
- See Also:
-
QUERY_WITHOUT_INDEX_DISABLE_PROTECTION_MESSAGE
- See Also:
-
QUERY_WITHOUT_INDEX_DEFAULT_LIMIT_VALUE
-
-
Constructor Details
-
ProtectiveMode
public ProtectiveMode()
-
-
Method Details
-
isEnabled
public static boolean isEnabled() -
isWrongRoutingUsageProtectionEnabled
public static boolean isWrongRoutingUsageProtectionEnabled() -
shouldIgnoreWrongRoutingProtectiveMode
-
isAmbiguousQueryRoutingUsageProtectionEnabled
public static boolean isAmbiguousQueryRoutingUsageProtectionEnabled() -
isTypeWithoutIdProtectionEnabled
public static boolean isTypeWithoutIdProtectionEnabled() -
shouldIgnoreTypeWithoutIdProtectiveMode
-
isPrimitiveWithoutNullValueProtectionEnabled
public static boolean isPrimitiveWithoutNullValueProtectionEnabled() -
isQueryWithoutIndexProtectionViolated
public static boolean isQueryWithoutIndexProtectionViolated(long tableSize, long maxEntries) -
isQueryWithoutIndexProtectionEnabled
public static boolean isQueryWithoutIndexProtectionEnabled()
-